Skip to content

Instantly share code, notes, and snippets.

@kenmickles
Created November 7, 2012 15:44
Show Gist options
  • Save kenmickles/4032351 to your computer and use it in GitHub Desktop.
Save kenmickles/4032351 to your computer and use it in GitHub Desktop.
Useful shell commands that I'll never remember
# tail log file with timestamp
tail -f log/production.log | awk '{now=strftime("%F %T%z\t");sub(/^/, now);print}' | grep something
# determine when a git branch was created
git show --summary `git merge-base new_map master`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment