Commandline Cheatsheet for various command line commands that can be complex, but are used often enough you need to copy and paste.
git branch | grep -v "master" | xargs git branch -D
zcat database.sql.gz | mysql -u username databasename
mysql -u root database_name < file.sql
zcat file.sql.gz | mysql -uroot database_name
SELECT table_schema "database_name", sum( data_length + index_length ) / 1024 / 1024 "DataBase Size in MB" FROM information_schema.TABLES GROUP BY table_schema;
mysqldump -u username -p databasename | gzip > newfilename.sql.gz
scp /dir/on/local/with/file.here avaughan@servername.com:/path/on/server/to/place/file
scp username@sitedomain.com:/file/directory.here /home/alexander/place/file/here
scp -i ~/.ssh/key_file.pem username@sitedomain.com:/file/directory.here /home/alexander/place/file/here .
dig @8.8.8.8 domain.name.org
keytool -exportcert -list -alias aliasnamehere -keystore "directory/where/your/keystore/here.jks" -storepass storepasshere -keypass keypasshere