Skip to content

Instantly share code, notes, and snippets.

View lmduc's full-sized avatar

Duc Le lmduc

View GitHub Profile
//Add script here
const targetElementQuery = "td.buchbar";
// Check for the existence of the target element
const targetElement = document.querySelectorAll(targetElementQuery);
if (targetElement.length > 0) {
document.getElementsByClassName("title")[3].innerHTML = "Co lich roi ban oi"
}

Keybase proof

I hereby claim:

  • I am lmduc on github.
  • I am lmduc (https://keybase.io/lmduc) on keybase.
  • I have a public key ASAMn5gOb7Ntgo3PBf1gxz1t6yqQbS4Q6YUyEvSBUzsOKgo

To claim this, I am signing this object:

  1. 1 req/sec ~ 2.5 mil reqs/month
@lmduc
lmduc / ruby-self-klass.md
Last active September 3, 2019 14:24
Ruby self and klass
set-option -ug buffer-limit
set-option -ug default-terminal
set-option -ug escape-time
set-option -ug exit-unattached
set-option -ug focus-events
set-option -ug history-file
set-option -ug message-limit
set-option -ug set-clipboard
set-option -ug assume-paste-time
set-option -ug base-index
@lmduc
lmduc / .tmux.conf
Last active September 7, 2022 16:16
## Themes
### Default statusbar colors
set -g status-style bg=colour235,fg=colour6
### Default window title colors
setw -g window-status-style bg=default,fg=colour15
### Active window title colors
setw -g window-status-current-style bg=default,fg=red
@lmduc
lmduc / .zshrc
Last active July 12, 2019 09:19
_gpo() {
git push origin $(git rev-parse --abbrev-ref HEAD)
}
alias gpo="_gpo"
_goto() {
files=( $(ls /Users/$(whoami)/Code) )
for ((i=1; i <= ${#files[@]}; ++i)); do
echo "$i - ${files[$i]}"
  1. Create a volume: docker volume create <name>

  2. Elasticsearch: docker run -d --name es6.5.4 -p 9200:9200 -v es6.5.4:/usr/share/elasticsearch/data elasticsearch:6.5.4

  3. PostgreSQL: docker run -d --name psql9.6 -p 5432:5432 -v psql9.6:/var/lib/postgresql/data -e POSTGRES_USER=ducle -e POSTGRES_PASSWORD=123456 -e POSTGRES_DB=ducle postgres:9.6

  4. Redis: docker run --name redis3.2.4 -d -v redis3.2.4:/data -p 6379:6379 redis:3.2.4

@lmduc
lmduc / .vimrc
Last active July 19, 2019 09:15
set nocompatible
filetype off
let mapleader=" "
set t_Co=256
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'