ssh-copy-id -i ~/.ssh/my_public_key user@host
16 June 2020
13 April 2020
mongodump and mongorestore
Dump and compress a MongoDB database collection.
mongodump username password --db database -c collection admin --gzipRestore the compressed MongoDB database collection.
mongorestore -d database -c collection --gzip collection.bson.gz
12 March 2020
Revert changes made to your working copy
Here's how you can revert all uncommitted changes you have made to your working copy.
git checkout .
Subscribe to:
Posts (Atom)