Skip to content

Instantly share code, notes, and snippets.



Last active Mar 29, 2016
What would you like to do?
Symfony2/Tracy - bash profile helpers
# error logs
alias err="cat var/logs/error.log"
alias exc="cat var/logs/exception.log"
alias logs="ls -la var/logs/"
alias lasterr="ls var/logs/exception--20* | tail -1 | xargs open"
exceptiondownloader() {
mkdir ~/Downloads/remote-exceptions
scp collabim-production:/vol/www/serpo/current/var/logs/$1 ~/Downloads/remote-exceptions/
open ~/Downloads/remote-exceptions/$1
alias exception=exceptiondownloader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment