Skip to content

Instantly share code, notes, and snippets.

@ptotaram
ptotaram / shell.md
Created March 13, 2014 22:19
Useful Terminal Commands

#Useful Terminal Commands ###Random Color per log line tail -f syslog | while read -r line; do printf "\e[38;5;%dm%s\e[0m\n" $(($RANDOM%255)) "$line"; done;

@ptotaram
ptotaram / git.md
Last active January 26, 2016 16:50
Helpful Git Commands

#Helpful Git Commands

###Add to previous commit git commit --amend --reuse-message

###Change the commit message git commit --amend

###Stash Specific File git stash -p