This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module parse-sql | |
| go 1.22.2 | |
| require ( | |
| github.com/BurntSushi/toml v0.3.1 // indirect | |
| github.com/pingcap/errors v0.11.4 // indirect | |
| github.com/pingcap/log v0.0.0-20191012051959-b742a5d432e9 // indirect | |
| github.com/pingcap/parser v0.0.0-20200623164729-3a18f1e5dceb // indirect | |
| go.uber.org/atomic v1.5.0 // indirect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const readline = require('readline'); | |
| const vm = require('vm'); | |
| // JSONPのコールバック関数名 | |
| const callbackName = process.argv[2]; | |
| if (!callbackName) { | |
| console.error('Usage: jsonp-parser <callbackName>'); | |
| process.exit(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git rev-list HEAD...master --left-only | git diff-tree --no-commit-id --name-only --stdin | uniq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setup_my_tmp() { | |
| TMPDIR=/private/my_tmp | |
| sudo mkdir -p "${TMPDIR}" | |
| sudo mount_tmpfs "${TMPDIR}" | |
| sudo chmod 1777 "${TMPDIR}" | |
| export TMPDIR | |
| } | |
| if [[ $(stat -c '%a' '/private/my_tmp') = 1777 ]]; then | |
| export TMPDIR='/private/my_tmp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " set debug=throw | |
| " git ls-files | grep -Ev 'init.vim|.gitignore' | xargs rm | |
| language message C | |
| scriptencoding utf-8 | |
| set shell=/bin/sh | |
| let g:netrw_nogx = 1 | |
| let g:loaded_node_provider = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function g:RubyBlockOneline(strs, cnt, def) abort | |
| s/\v\s*do\s*(\|.*\|)?\_s*(.*)\_s*end/{\1 \2} | |
| endfunction | |
| function g:RubyBlockMultiline(strs, cnt, def) abort | |
| let save_pos = getpos('.') | |
| s/\v\s*\{(\|.*\|)?\_s*(.*)\_s*\}$/ do \1\r\2\rend | |
| call feedkeys('3==') | |
| call setpos('.', save_pos) | |
| endfunction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| colorso () { | |
| local c | |
| echo | |
| for c in {000..255} | |
| do | |
| echo -n "\e[38;5;${c}m $c" | |
| [ $(($c%16)) -eq 15 ] && echo | |
| done | |
| echo | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo_color(){ | |
| color="${1}" | |
| shift | |
| echo -e "\e[38;5;${color}m${*}\e[00m" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proxy-on () { | |
| proxy="${1:? server:port}" | |
| export http_proxy="${proxy}" | |
| export https_proxy="${proxy}" | |
| export ftp_proxy="${proxy}" | |
| export rsync_proxy="${proxy}" | |
| export all_proxy="${proxy}" | |
| export HTTP_PROXY="${proxy}" | |
| export HTTPS_PROXY="${proxy}" | |
| export FTP_PROXY="${proxy}" |
NewerOlder