Skip to content

Instantly share code, notes, and snippets.

@porty
Last active August 29, 2015 13:57
Show Gist options
  • Save porty/9821917 to your computer and use it in GitHub Desktop.
Save porty/9821917 to your computer and use it in GitHub Desktop.
Contests .bash_aliases
# tail the apache logs without other cruft
alias log1="tail -f /var/log/apache2/error.log | egrep -v --line-buffered '(CSRF|Load existing customer|rotatelogs|Could not open log file)'"
# tail contests logs
alias log2="sudo supervisorctl tail -f contests-worker-dev"
# tail commerce logs
alias log3="sudo supervisorctl tail -f commerce-worker-dev"
# start the things that didn't start automatically
# also, create/chown files that would otherwise not be created properly
alias gogogo="sudo /etc/init.d/supervisor start && sudo supervisorctl start all && touch /tmp/commerce-error.log && chmod 0666 /tmp/commerce-error.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment