Last active
March 29, 2016 15:33
-
-
Save tuscanicz/063eb9591524f412f808 to your computer and use it in GitHub Desktop.
Symfony2/Tracy - bash profile helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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