This file contains 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
if $DEV_VIM == 1 | |
exe "set runtimepath^=" . getcwd() | |
autocmd! BufWritePost *.vim source % | |
nnoremap <Space><Space> :DEVELOPMENT_CMD<CR> | |
endif | |
test |
This file contains 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
# Prefix | |
set-option -g prefix C-q | |
# Options | |
set-option -g status-left '#H:[#P]' | |
set-option -g status-right '#(get_ssid) #(battery -c tmux) [%Y-%m-%d(%a) %H:%M]' | |
set-option -g status-interval 1 | |
set-option -g default-terminal screen-256color | |
# Window options |
This file contains 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
[ -z "$PS1" ] && return | |
HISTCONTROL=ignoredups:ignorespace | |
shopt -s histappend | |
HISTSIZE=10000000 | |
HISTFILESIZE=2000000 | |
shopt -s checkwinsize |
This file contains 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
:h index.txt |
This file contains 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
history | awk '{ print $1 }' | sort | uniq -c | sort -nr | less |
This file contains 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
curl <registry>/v2/_catalog |
This file contains 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
migrate -path . -database 'postgres://root@localhost:26257/bank?sslmode=disable' up |
This file contains 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 show :1:hoge.go > hoge.common.go | |
git show :2:hoge.go > hoge.ours.go | |
git show :3:hoge.go > hoge.theirs.go | |
git merge-file hoge.ours.go hoge.common.go hoge.theirs.go > hoge.go |
This file contains 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
import sys | |
import requests | |
# default arg is the demo url | |
def req(url='https://bit.ly/1cY78RZ'): | |
res = requests.head(url) | |
if int(res.status_code / 100) != 3: | |
return res.url | |
else: |
This file contains 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 bash | |
set -e | |
if [ "$#" -ne 2 ]; then | |
echo "usage: ./script <dst> <duration (m)>" | |
exit 1 | |
fi | |
echo "start after 3 seconds" |
OlderNewer