Skip to content

Instantly share code, notes, and snippets.

@alexagranov
Created March 23, 2016 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexagranov/992e5aa31e4f74cabde9 to your computer and use it in GitHub Desktop.
Save alexagranov/992e5aa31e4f74cabde9 to your computer and use it in GitHub Desktop.
#!/bin/bash
alias ll='ls -al'
alias gimmeawindow="xterm -b 4 -sb -sl 5000 -geometry 110x60 -vb -fg yellow -bg black -fa \'Consolas\' -fs 16 &"
alias strace='dtruss'
alias start_postgres='pg_ctl -D /usr/local/var/postgres -l /var/log/postgres.log start'
alias stop_postgres='pg_ctl -D /usr/local/var/postgres stop -m fast'
alias ssh_to_master_db='ssh -o TCPKeepAlive=yes -o ServerAliveInterval=300 -L 5452:localhost:5432 root@master-db -p 22'
alias ssh_to_slave_db='ssh -o TCPKeepAlive=yes -o ServerAliveInterval=300 -L 5462:localhost:5432 root@slave-db -p 22'
alias docker_terminal="bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'"
alias strip_dos="perl -pi -e 's/\r\n?/\n/g'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment