forked from giulionf/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
26 lines (20 loc) · 1.25 KB
/
.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
# Navigation
alias ..="cd .."
alias ...="cd ../.."
alias e="exit"
# Hide/show all desktop icons (useful when presenting)
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
# Lock the screen (when going AFK)
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
alias flutter="fvm flutter"
alias dart="fvm dart"
alias whoruns='ps aux | grep "[a]utocrane-core_main"'
alias whorunsnodes='ps aux | grep "[s]ensornode"'
alias whobuilds='ps aux | grep "[m]ake" | tr -s " " | cut -d " " -f1 | uniq'
alias killnodes='ps aux | grep sensornode | tr -s " " | cut -d " " -f2 | xargs sudo kill -9'
alias killcore='ps aux | grep autocrane-core_main | tr -s " " | cut -d " " -f2 | xargs sudo kill -9'
alias cssh='~/opt/bin/tmux-cssh'
alias mastercontrol_portal="ulimit -n 1000 && ./mastercontrol -f ../config/crane_portal/Releases/core-production.yml"
alias mastercontrol_kemi_north="ulimit -n 1000 && ./mastercontrol -f ../config/crane_kemi/Releases/core-production-north.yml"
alias mastercontrol_kemi_south="ulimit -n 1000 && ./mastercontrol -f ../config/crane_kemi/Releases/core-production-south.yml"