Skip to content

Instantly share code, notes, and snippets.

@billmote
Last active August 29, 2015 14:15
Show Gist options
  • Save billmote/a5d4cc7fc3741a2b46bd to your computer and use it in GitHub Desktop.
Save billmote/a5d4cc7fc3741a2b46bd to your computer and use it in GitHub Desktop.
Helpful Commands
# Search & Replace contents of a file -- in this case we're searching for jb4ASDK@ in all files and replacing with ~!
grep -IRlr jb4ASDK@ . | xargs sed -i "" -e 's/jb4ASDK@/~!/g'
# Human readable folder utilization from current folder
sudo du -sh $(ls -d $(pwd)/*)
# When git doesn't know who we are:
eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment