Skip to content

Instantly share code, notes, and snippets.

@huanglong-zz
Last active December 31, 2015 15:29
Show Gist options
  • Save huanglong-zz/8007211 to your computer and use it in GitHub Desktop.
Save huanglong-zz/8007211 to your computer and use it in GitHub Desktop.
# rename file's name:
for f in *.eco;do base=${f/.eco/};mv $f $base;done
# Pretty mongodb output:
db.collection.find().pretty()
# Pretty mongodb output by default:
DBQuery.prototype._prettyShell = true
to $HOME/.mongorc.js
# Generate ssh keys
cd ~/.ssh
ssh-keygen -t rsa -C "[email protected]"
pbcopy < ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment