forked from lewagon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
39 lines (31 loc) · 2.06 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
27
28
29
30
31
32
33
34
35
36
37
38
39
# Get External IP / local IPs
alias ip="curl ipinfo.io/ip"
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
alias speedtest="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
# Quickly serve the current directory as HTTP
alias serve='ruby -run -e httpd . -p 8000' # Or python -m SimpleHTTPServer :)
alias jup="cd ~/code/jupyter && source .venv/bin/activate && jupyter notebook"
alias drmc="docker rm \$(docker ps -aq)"
alias drmi="docker images | awk '\$2 == \"<none>\" { print \$3 }' | xargs docker rmi"
alias dcbash="docker-compose exec web bash"
alias dcup="docker-compose up -d"
alias dcupb="docker-compose up -d --build"
alias dclogs="docker-compose logs -f"
alias dcps="docker-compose ps"
alias dps="docker ps"
alias del_sym="gfind .venv -type l -xtype l -delete"
alias start_coord="pg_ctl -D citus/coordinator -o \"-p 9700\" -l coordinator_logfile start"
alias start_worker1="pg_ctl -D citus/worker1 -o \"-p 9701\" -l worker1_logfile start"
alias start_worker2="pg_ctl -D citus/worker2 -o \"-p 9702\" -l worker2_logfile start"
alias start_worker3="pg_ctl -D citus/worker3 -o \"-p 9703\" -l worker3_logfile start"
alias restart_coord="pg_ctl -D citus/coordinator -o \"-p 9700\" -l coordinator_logfile restart"
alias restart_worker1="pg_ctl -D citus/worker1 -o \"-p 9701\" -l worker1_logfile restart"
alias restart_worker2="pg_ctl -D citus/worker2 -o \"-p 9702\" -l worker2_logfile restart"
alias restart_worker3="pg_ctl -D citus/worker3 -o \"-p 9703\" -l worker3_logfile restart"
alias stop_coord="pg_ctl -D citus/coordinator -o \"-p 9700\" -l coordinator_logfile stop"
alias stop_worker1="pg_ctl -D citus/worker1 -o \"-p 9701\" -l worker1_logfile stop"
alias stop_worker2="pg_ctl -D citus/worker2 -o \"-p 9702\" -l worker2_logfile stop"
alias stop_worker3="pg_ctl -D citus/worker3 -o \"-p 9703\" -l worker3_logfile stop"
alias start="start_coord; start_worker1; start_worker2; start_worker3"
alias restart="restart_coord; restart_worker1; restart_worker2; restart_worker3"
alias stop="stop_coord; stop_worker1; stop_worker2; stop_worker3"