http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/
apachectl configtest
api_staging_magento-$(date +%d-%m-%Y_%H-%M-%S).sql
No need to look at your clock and/or calendar. Just use the above example to get down to the second file names.
grep -rl termyoursearchingforinafile ~/
mysqldump --opt -Q --order-by-primary -u mysql_user -p DATABASE_NAME > backup.sql
mysql -u mysql_user -p DATABASE < backup.sql
rsync -avrztp --progress --rsh="ssh -p33322" file.name user@123.456.78.90:/path/to/file
rsync -avrztp --progress --rsh="ssh -p33322" user@123.456.78.90:/path/to/file/file.name /path/to/file
rsync --exclude="file.name /folder-name" ...
git rm $(git ls-files --deleted)
git update-index --assume-unchanged <file>
For reverting said file to be committed.
git update-index --no-assume-unchanged <file>
#
# Basic process for merging two Git repositories while retaining commit history.
# - This seems to work pretty well for migrations to Pantheon
#
# Clone the repository that will be the final origin
git clone <repository_uri_1> <local_dir>
cd <local_dir>
# Add the second repository as a remote
git remote add <remote_name> <repository_uri_2>
git fetch <remote_name>
# Create a new branch based off the secondary repository
git branch <branch_name> <remote_name>/<remote_branch>
git checkout <branch_name>
#
# Perform any modifications to this branch that need to be done
# before merging into the final repository.
#
# Merge the secondary repository branch into the final repository and clean up.
git checkout master
git merge <branch_name>
git branch -D <branch_name>
git remote remove <remote_name>