Skip to content

Instantly share code, notes, and snippets.

@tuscanicz
Last active March 29, 2016 15:33
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 tuscanicz/063eb9591524f412f808 to your computer and use it in GitHub Desktop.
Save tuscanicz/063eb9591524f412f808 to your computer and use it in GitHub Desktop.
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