Last active
February 21, 2022 09:17
-
-
Save mertvetsky/72c5379caed571a040a46a0851ecb76d to your computer and use it in GitHub Desktop.
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
# port forwarding 9991-9999 | |
xports='ssh vm -v `for i in {1..9}; do echo "-R 999$i:127.1:999$i "; done`' | |
# tmux exists or new | |
tmux='tmux attach || tmux new' | |
# switch submodule to ref (in submodule dir) | |
subm_co='git checkout master; git fetch; git checkout' | |
# !!! | |
nano=vim | |
# amend | |
camend='git commit --amend --no-edit' | |
# checkout s | |
co='git checkout' | |
com='git checkout master' | |
# pull master | |
gpom='git pull origin master' | |
# status | |
gst='git status' | |
# sync submodules | |
git submodule sync && git submodule update --recursive --init | |
# pretty print docker containers | |
docker ps $1 --format "{{ .ID }}\t{{ .Image }}\t{{ .Status }}\t{{ .Names }}" | column -t -s $'\t' | |
# sshfs mount | |
sshfs -oreconnect,ServerAliveInterval=15,Compression=no,sshfs_sync,no_readahead,auto_cache,Ciphers=chacha20-poly1305@openssh.com -C vm: ~/workdir | |
# replace icon | |
xseticon -id $(wmctrl -l | egrep 'site-2-0 .* – ' | head -n1 | cut -f1 -d' ') $HOME/.icons/st.png | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment