This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql.server start | |
mysql.server stop | |
mysql.server restart | |
If not sym linked use path: | |
sudo /usr/local/mysql/support-files/mysql.server restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure we're on master | |
$ git checkout master | |
# add a remote ref for the development site | |
$ git remote add dev-site https://sitename-dev.dev.squarespace.com/template.git | |
# force push our live site to the dev site | |
$ git push -f dev-site master | |
# add a dev tracking branch from the dev site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# soft delete | |
git branch -d -r remote_name/branch_name | |
# hard delete | |
git push origin :branchname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su gsadmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dump: | |
mysqldump -uUSERNAME -pPASSWORD DBTODUMP > /path/to/DUMPFILE.sql | |
Import: | |
mysql -uUSERNAME -pPASSWORD DBTOIMPORTTO < /path/to/DUMPFILE.sql/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp username@remotecomputer:/path/to/file/you/want/to/copy where/to/put/file/on/laptop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp source_file_name username@destination_host:destination_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle clean --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -h --max-depth=1 | sort -hr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill $(ps aux | grep '[d]elayed_job' | awk '{print $2}') | |
Credit: | |
http://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex |
OlderNewer