forked from chriskuehl/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell-aliases
133 lines (112 loc) · 4.28 KB
/
shell-aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
alias rr=". ~/.zshrc"
alias mm='make minimal'
# mercury
alias mercury="ssh root@mercury.techxonline.net"
alias nitrogen="ssh -L 5000:localhost:5000 -L 5001:localhost:5001 ckuehl@nitrogen.techxonline.net"
alias chris="ssh chris@mercury.techxonline.net"
alias lynn="ssh lynn@mercury.techxonline.net"
alias fluffy="ssh fluffy@mercury.techxonline.net"
# helium
alias helium="ssh -A -p 23 root@helium.techxonline.net"
alias hv="ssh -t -p 23 root@helium.techxonline.net ssh"
alias heliumc="ssh root@helium.techxonline.net"
alias 19="ssh -t -p 23 root@helium.techxonline.net ssh nineteen@manager"
alias 19c="ssh -XC nineteen@helium.techxonline.net"
# random
alias trenders="ssh root@trenders.org"
alias sheep="ssh root@sheep.fluffy.cc"
# design19
alias d19="ssh root@d19.me"
alias nux="ssh root@nuxusa.com"
alias nuxn="ssh nuxusa@nuxusa.com"
# courses
alias 61a="TERM=xterm; ssh cs61a-aop@star.cs.berkeley.edu"
alias 61b="TERM=xterm; ssh cs61b-wn@pulsar.eecs.berkeley.edu"
alias 61c="TERM=xterm; ssh cs61c-ase@pulsar.eecs.berkeley.edu"
alias 70="TERM=xterm; ssh cs70-bi@hive17.cs.berkeley.edu"
alias 161="TERM=xterm; ssh cs161-fo@hive17.cs.berkeley.edu"
alias 16a="TERM=xterm; ssh ee16a-uy@cory.eecs.berkeley.edu"
alias 186="TERM=xterm; ssh cs186-cj@cory.eecs.berkeley.edu"
alias 168="TERM=xterm; ssh cs168-hi@cory.eecs.berkeley.edu"
alias 16b="TERM=xterm ssh ee16b-akp@cory.eecs.berkeley.edu"
alias 162="TERM=xterm ssh cs162-cf@cory.eecs.berkeley.edu"
alias c8='TERM=xterm ssh cs8-aib@cory.eecs.berkeley.edu'
alias 170='TERM=xterm ssh cs170-wc@cory.eecs.berkeley.edu'
# ocf
alias ocf="ssh ckuehl@ssh.ocf.berkeley.edu"
alias ocfs="ssh ckuehl@supernova.ocf.berkeley.edu"
alias ocfa="sudo -u atool /opt/ocf/packages/create/create.py -i"
alias ocfr="ssh ckuehl@raptors.ocf.berkeley.edu"
alias phost="ssh -L 8443:printhost:443 ckuehl@supernova.ocf.berkeley.edu"
alias whiteout="ssh -L 8443:whiteout:443 ckuehl@supernova.ocf.berkeley.edu"
alias dphost="ssh -L 8443:dev-printhost:443 ckuehl@supernova.ocf.berkeley.edu"
alias bsheep="ssh ckuehl@blacksheep.ocf.berkeley.edu"
alias ocfp="ssh -D 2020 ckuehl@supernova.ocf.berkeley.edu"
alias chromep="google-chrome --proxy-server='socks5://localhost:2020'"
alias dev='ssh -A dev45-uswest1adevc'
alias devp='ssh -A -p 2222 localhost'
alias bastp="ssh -A -D 2020 -L 44322:dev45-uswest1adevc:44322 -L 2222:dev45-uswest1adevc:22 bastion.yelpcorp.com"
alias bast="ssh -A bastion.yelpcorp.com"
# non-ssh
alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"
alias yelp="sudo cp /etc/resolv.conf{.yelp,}"
alias mine="sudo cp /etc/resolv.conf{.mine,}"
alias deploy-prod="deploy-prod --i-like-to-live-dangerously"
alias seagull-run="seagull-run -f --not-again"
alias seagull-ruin="seagull-run"
alias ymt-run="ymt-run -f --not-again"
alias badssh="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
alias smallpdf="convert -density 300 -quality 25 -compress jpeg"
alias venv='T=$(mktemp -d) && { virtualenv -p python3 "$T" && . "${T}/bin/activate" }'
alias venv2='T=$(mktemp -d) && { virtualenv -p python2 "$T" && . "${T}/bin/activate" }'
alias tmp='cd $(mktemp -d)'
alias nenv='T2=$(mktemp -d) && { venv && pip install nodeenv && nodeenv --prebuilt "${T2}/nenv" && . "${T2}/nenv/bin/activate" }'
alias youtube-mp3='youtube-dl --extract-audio --audio-format mp3 --prefer-ffmpeg'
# git
alias ga="git add -A"
alias gaa="git add"
alias gp="git push"
alias gl="git log --decorate"
alias gll="git log --decorate --pretty=fuller"
alias gls='git ls-files'
alias gs="git status"
alias gd="git diff -M"
alias gdh="git diff HEAD -M"
alias gdc="git diff --cached -M"
alias gc="git commit -v"
alias gco="git commit"
alias gb="git branch -vv"
alias gch="git checkout"
alias gpu="git pull"
alias gcp="git cherry-pick"
alias gm="git merge"
alias gso="git show --pretty=fuller --decorate -M"
alias gg="git grep -n"
alias gr="git rgrep -n"
alias gst="git stash"
alias gss="git stash show -p"
# core utils
alias ls="ls -h --color=auto"
alias ll="ls -l"
alias la="ls -lA"
alias grep="grep --line-buffered --color=auto"
# typos
alias l="ls"
alias sl="ls"
alias s="ls"
alias dc="cd"
alias c="cd"
alias d="cd"
alias gti="git"
alias Gerp="grep"
alias gerp="grep"
alias Grep='grep'
alias Less='less'
# other stuff
alias pc="pre-commit run --all-files"
# functions
showcolors() {
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour${i}\n"
done
}