-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliases.sh
executable file
·339 lines (334 loc) · 13.1 KB
/
aliases.sh
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
#!/usr/bin/env sh
# tower
alias ta="ssh towerarch"
alias rta="ssh root@towerarch"
alias lta="ssh 192.168.0.3"
alias ehm="v ~/.config/home-manager/home.nix"
alias hm="home-manager"
# numeris
alias num="numeris"
alias numeris="ssh numeris"
alias gar="garage"
alias garage="ssh garage"
# je
alias phoenix="ssh phoenix"
alias phoenixstaging="ssh phoenix-staging"
alias edgix="ssh edgix"
alias boulimix="ssh boulimix"
alias idefix="ssh idefix"
alias pandemix="ssh pandemix"
alias memorix="ssh memorix"
alias aiflow="ssh airflow"
alias vpnix="ssh vpnix"
alias playground="ssh playground"
alias passepartix="ssh passepartix"
alias contabo="ssh contabo"
alias rcontabo=" ssh root@contabo"
alias hec="ssh hec"
alias vps="ssh vps"
alias mvps="ssh marc@vps"
alias ionos="ssh ionos"
alias tel="ssh tel"
alias tel3="ssh tel3"
alias tablette="ssh tablette"
alias mini="ssh mini"
alias tower="ssh tower"
alias minilocal="ssh minilocal"
alias towerlocal="ssh towerlocal"
alias kong="ssh kong"
alias cnje="ssh cnje"
alias pegasus="ssh pegasus"
alias prospectixback="ssh tower \"cd git/prospectix7-api; $SHELL\""
alias tw="tower"
alias twl="towerlocal"
alias roulezchampions="ssh roulezchampions"
# Navigation shortcuts
alias programs="p"
alias website="p website"
alias domination="p kingdomino"
alias esclave="p discord-bot"
alias web="p web"
alias colis21="p colis"
alias c21="p colis21"
alias tia21="p tia21"
alias t21="p tia21"
alias kraken="p tia21"
alias shell="p shell"
alias md="p markdown"
alias bdd="p database"
alias pd="p docker"
alias ds="p docker/services"
alias desktop="cd ~/desktop"
alias documents="cd ~/documents"
alias images="cd ~/images"
alias downloads="cd ~/downloads"
alias isep="cd /Volumes/$/isep"
alias marc="cd ~/desktop/Marc\ Partensky"
alias javascript='cd ~/programs/web/javascript'
alias canvas='cd ~/programs/web/javascript/canvas'
alias html='cd ~/programs/web/html'
alias css="cd ~/programs/web/css"
alias wadjet='cd ~/unity games/asteroids'
alias gitprojects="cd ~/git-projects"
alias brain="cd ~/programs/brainperformer"
alias asteroids="cd ~/programs/web/javascript/canvas/asteroids"
alias junior="cd ~/junior"
alias cv1="cd $MARCPARTENSKY_PATH/CV/cv-1p"
alias cv2="cd $MARCPARTENSKY_PATH/CV/cv-2p"
alias translator="p colis21/tools/Traduction/Translator"
alias py20="cd ~/programs/python/repository-2020"
alias pygames="cd ~/programs/python/repository-games"
alias pyml="cd ~/programs/python/machine-learning"
alias pyhome="p python"
# basic
alias v="$EDITOR"
alias l="ls"
alias c="cd"
alias s="sudo"
alias sy="systemctl"
alias m="make"
alias t="todo"
alias f="find"
alias d="docker"
alias e='v ~/.zshenv'
alias r="restart"
alias u="update"
alias g="grep"
alias j="jupyter-notebook"
alias x="v $DOTFILES_PATH/sxhkdrc"
alias restart="exec $SHELL"
alias finder="open ."
alias mcd="mkcdir"
alias desk="desktop"
alias pt="v $PROGRAMS_PATH/Markdown/todolist/pickup-todolist.md"
alias todo="v $PROGRAMS_PATH/markdown/todolist/todolist.md"
alias tpic="v $PROGRAMS_PATH/markdown/todolist/pickup-todolist.md"
alias db="docker build . -t"
alias dh="dhost"
alias dps="docker ps"
alias dcs="dc ps"
alias dcd="dc down"
alias dcu="dc up -d"
alias dcuf="dc up -d --force-recreate"
alias dk="docker-kit.sh"
alias dku="dk up -d"
alias dkd="dk down"
alias dkl="dk logs -f"
alias dkuf="dk up -d --force-recreate"
alias dcy="v docker-compose.yml"
alias dls="docker service ls"
alias dsr="docker service rm"
alias dsu="docker service update"
alias dvr="docker volume rm"
alias dvl="docker volume ls"
alias dil="docker image ls"
alias dsp="docker system prune -a"
alias dcl="docker-compose logs -f"
alias vd="v docker-compose.yml"
alias dsl="docker service logs --raw -f"
alias drm="docker rm -f"
alias dota="v $DOTFILES_PATH/aliases.sh"
alias dote="v $DOTFILES_PATH/exports.sh"
alias dotf="v $DOTFILES_PATH/functions.sh"
alias dots="v $DOTFILES_PATH/symlinks.sh"
alias dotm="v $DOTFILES_PATH/main.sh"
alias dotg="v $DOTFILES_PATH/git/.gitconfig"
alias dotu="v $DOTFILES_PATH/bin/.local/bin/update"
alias dott="v $DOTFILES_PATH/tmux/.tmux.conf"
alias dotz="v $DOTFILES_PATH/zsh/.zshenv"
alias doti="v $DOTFILES_PATH/git/.gitignore"
alias doth="v $HOME/.ssh/config"
alias dotq="v $HOME/.local/bin/quick"
alias dotp="dotpull"
alias dotl="dotfiles"
alias sshc="v $HOME/.ssh/config"
alias ssha="v $HOME/.ssh/authorized_keys"
alias ud="dotc"
alias dw="v $PROGRAMS_PATH/dwm/config.h"
alias vimrc='v $HOME/.vimrc'
alias ev="cd $HOME/.config/nvim"
alias eh="v $HOME/.config/hypr/hyprland.conf"
alias ez="v $HOME/.zshrc"
alias ei3="v $HOME/.config/i3/config"
alias epl="v $HOME/git/docker/data/yt-dlp/list.txt"
alias dotfiles="cd $DOTFILES_PATH"
alias dotpull="git -C $DOTFILES_PATH pull && restart"
alias dotssh="v $HOME/.ssh/config"
alias mampstart='/Applications/MAMP/bin/start.sh && echo http://localhost:8888/phpmyadmin'
alias mampstop='/Applications/MAMP/bin/stop.sh'
alias jsonbeautify="chrome https://jsonformatter.curiousconcept.com/"
alias github="open https://github.com/MarcPartensky/"
alias activate="source venv/bin/activate"
alias pypackages='cd /library/frameworks/python.framework/versions/3.8/lib/python3.8/site-packages/'
alias spaceinvader="ninvaders"
alias alacrittyrc="v $DOTFILES_PATH/alacritty/.config/alacritty/alacritty.toml"
alias yabairc="v $DOTFILES_PATH/yabai/.config/yabai/.yabairc"
alias skhdrc="v $DOTFILES_PATH/skhdrc/.config/skhd/skhdrc"
alias ports="lsof -Pn -i4"
alias ports2="netstat -ap tcp"
alias openports="netstat -plant"
alias network="watch -n 1 \"netstat -p tcp\""
alias root="sudo su"
# alias youtube='cd /Volumes/\$/Musique/Youtube'
# alias yt="youtube"
alias caddyfile="v ~/junior/caddix/Caddyfile"
alias pass="PASSWORD_STORE_ENABLE_EXTENSIONS=true pass"
alias preview="nvim +MarkdownPreview README.md"
alias dockerfile="v Dockerfile"
alias dkf="v Dockerfile"
alias mf="v Makefile"
alias mk="v Makefile"
alias sharkhttp="tshark -d tcp.port==443,http"
alias sharkwho="tshark -d tcp.port==22,ssh"
alias sharkssh="tshark -d udp.port==53,who"
alias redmatrix="cmatrix -C red"
alias sshp="cat ~/.ssh/id_rsa.pub"
alias sshps="ps aux | grep ssh"
alias sshk="v ~/.ssh/known_hosts"
alias gpgp="gpg --armor --export 516EAE18A5512CE9"
alias ipconf="curl ipconfig.io"
alias ipinfo="curl ipinfo.io"
alias ipdynamic="http://www.mon-ip.com/ip-dynamique.php"
alias ipi="http -b ipinfo.io"
alias ipb="ip -br a"
alias ipr="ip route"
alias updatepyenv="git -C $PYENV_ROOT pull"
alias vpsvpn="sudo openvpn --config ~/junior/macdemarc.ovpn"
alias osxupdate="softwareupdate --all --install --force"
alias to="v $PROGRAMS_PATH/markdown/oxivia.md"
alias planformation="open /Users/marcpartensky/Desktop/Marc\ Partensky/AutoEntreprise/Formation/plan_de_formation.docx"
alias cv="$MARCPARTENSKY_PATH/CV/cv-2p && open cv-2p.pages"
alias steph="ssh -t kong ping 192.168.0.31"
alias corinne="ssh -t kong ping 192.168.0.32"
alias didier="ssh -t kong ping 192.168.0.33"
alias boticellix="ssh -t kong ping 192.168.0.27"
alias did="docker ps -a | awk '{ print $2 }'"
alias iptel="arp -a | grep \$MAC_TEL | cut -d \"(\" -f2 | cut -d \")\" -f1"
alias iplocal="open http://net.ipcalf.com"
alias ipdns="cat /etc/resolv.conf | grep -v # | awk '{print \$2}'"
alias fm="v /tmp/fm.txt"
alias timestamp="date +%s"
alias appleshowhiddenfiles="defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder;"
alias zshrc="v $HOME/.zshrc"
alias zshenv="v $HOME/.zshrc"
alias bashrc="v $HOME/.bashrc"
alias profile="v $HOME/.profile"
alias wh="which"
alias bindcapslock="gsettings set org.gnome.desktop.input-sources xkb-options \"['caps:escape']\""
alias path="echo $PATH"
alias fkill="kill -9"
alias maxuserinstances="echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
alias vpn="openvpn"
alias vpn3="openvpn3"
alias insidegitdir="git rev-parse --is-inside-work-tree"
# alias robo3t="docker run --rm -d --network host -e DISPLAY -v $HOME/.config/3T:/root/.config/3T -v $HOME/.3T:/root/.3T -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -v $HOME/.ssh/config:/root/.ssh/config -v /tmp/.X11-unix:/tmp/.X11-unix marcpartensky/robo3t"
alias robo="robo3t"
alias krakenrestore="mongorestore -v --host localhost --port 27017 --gzip --archive=krakendump.bzip"
alias vnc="sudo systemctl start vncserver@:1.service"
alias history="history -t'%F %T'"
alias aptu="sudo apt clean && sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y"
alias dnfu="sudo dnf update -y && sudo dnf autoremove -y"
alias dnfi="sudo dnf install -y"
alias brewu="brew upgrade"
alias spd="librespeed-cli"
alias bot="p discord-bot"
alias debian="docker run -it --rm debian"
alias alpine="docker run -it --rm alpine"
alias archlinux="docker run -it --rm archlinux"
alias spotifyplay="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play"
alias spotifystop="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause"
alias spotifytoggle="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
alias spotifyprevious="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
alias spotifynext="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
alias previous="spotifypause"
alias nx="next"
alias next="spotifynext"
alias play="spotifyplay"
alias pause="spotifystop"
alias queue="spq"
alias q="spq"
alias pp="spotifytoggle"
alias lowbright="brightnessctl s 1%"
alias midbright="brightnessctl s 20%"
alias highbright="brightnessctl s 100%"
alias bright="brightnessctl"
alias pause="read -rsp $'Press any key to continue...\n' -n1 key"
alias lzd="lazydocker"
alias kj="kill -9 %"
alias getbrew='/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
alias vpn="openvpn3"
alias vpnvps="openvpn3 session-start --config vps-mi.ovpn"
alias vpnvpsstop="openvpn3 session-manage --config vps-mi.ovpn --disconnect"
alias vpnje="openvpn3 session-start --config je.ovpn"
alias vpnjestop="openvpn3 session-manage --config je.ovpn --disconnect"
alias vpnlist="openvpn3 sessions-list"
alias vpn-je="sshuttle -r ubnt@edgix 192.168.42.0/24"
alias vpn-jetech="sshuttle -r kong 192.168.0.0/24"
alias vpn-proxmox="sshuttle -r idefix 10.10.0.0/24"
alias gnomeimportovpn="sudo nmcli connection import type openvpn file"
[ -z upower ] && alias battery="upower -i `upower -e | grep 'BAT'`"
alias battery="cat /sys/class/power_supply/BAT0/capacity"
alias dotpickup="v $DOTFILES_PATH/c21mongo.sh"
alias c21index="dotnet $PROGRAMS_PATH/colis21/src/Pssa.Colis21.Cli/bin/Debug/netcoreapp3.1/c21.dll search-index -d 5000"
alias c21cli="dotnet $PROGRAMS_PATH/colis21/src/Pssa.Colis21.Cli/bin/Debug/netcoreapp3.1/c21.dll"
alias c21dump="cd $C21_DUMP_PATH"
alias dumpgnome="dconf dump / > $DOTFILES_PATH/.gnome.conf"
alias restoregnome="dconf load / < $DOTFILES_PATH/.gnome.conf"
alias ipv6filter="modprobe ip6table_filter"
alias fk="fuck"
alias marcfreeport="/usr/bin/curl -L $WEBSITE_URL/api/port"
alias run="make run"
alias dev="make dev"
alias start="make start"
alias init="make init"
alias setup="make setup"
alias build="make build"
alias prod="make prod"
alias push="make push"
alias pull="make pull"
alias up="make up"
alias down="make down"
alias rsync="rsync -av --info=progress2"
alias phantomjs="OPENSSL_CONF=/dev/null phantomjs"
alias dnf="sudo dnf"
alias lgpl="curl -so LICENSE https://www.gnu.org/licenses/lgpl-3.0.txt"
alias gpl3="curl -so LICENSE https://www.gnu.org/licenses/lgpl-3.0.txt"
alias gpgkeys="gpgpvkeys"
alias gpgpvkeys="gpg -K --keyid-format LONG"
alias gpgpbkeys="gpg -k --keyid-format LONG"
alias gpgexport="gpg --armor --export 516EAE18A5512CE9"
alias kingdomino="docker run --rm --device /dev/dri -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -t marcpartensky/kingdomino"
alias pts="ls /dev/pts"
alias mypt="readlink /proc/self/fd/0"
alias caddix="ssh caddix"
alias dcaddix="ssh caddix docker-compose -f caddix/docker-compose.yml"
alias opti="jupyter-notebook $PROGRAMS_PATH/ia-optimisation"
alias jn="jupyter-notebook"
alias syr="systemctl restart"
alias sys="systemctl status"
alias syd="systemctl daemon-reload"
alias syu="systemctl --user"
alias syur="systemctl --user restart"
alias syus="systemctl --user status"
alias syud="systemctl --user daemon-reload"
alias syul="systemctl --user link"
alias syf="cd /etc/systemd/system"
alias syuf="cd ~/.config/systemd/user"
alias fk="fuck"
alias towervnc="syu start ltunneltowervnc"
alias stoptowervnc="syu stop ltunneltowervnc"
alias contabovnc="syu start ltunnelcontabovnc"
alias stopcontabovnc="syu stop ltunnelcontabovnc"
alias webedgix="syu start ltunneledgix && open https://localhost:8443"
alias stopwebedgix="syu stop ltunneledgix"
# alias password="date +%s | sha256sum | base64 | head -c 32 | xclip -sel clip"
alias password="date +%s | sha256sum | base64 | head -c 32 | wl-copy"
alias bs="v $DOTFILES_PATH/bspwmrc"
alias bl="bluetoothctl"
alias ports="nmap localhost -p 7120-7130"
alias ipy="ipython"
alias ngrepftp="ngrep -wi -d any 'user|pass' port 21"
alias randomwallpaper="find $WALLPAPERS_PATH -name '*.jpg' | shuf -n 1 | tee /tmp/wpp | tee /dev/tty | xargs -I % feh --bg-fill %"
alias switch="nixos-rebuild switch"
alias nvim="nvim --listen /tmp/nvim"
alias pc="podman-compose"