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
/etc/nginx/sbin/nginx -t -c /etc/nginx/conf/nginx.conf |
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
gem install mysql -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config | |
OR | |
bundle config build.mysql --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config |
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
^((?!DONT FIND THESE LINES).)*$ |
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
to delete the remote branch named branch_tobe_deleted: | |
git push origin :branch_tobe_deleted | |
to delete your local copy of that branch: | |
git branch -d branch_tobe_deleted |
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
apt-get install tzdata | |
dpkg-reconfigure tzdata | |
apt-get install ntp |
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
if you get the following error: | |
"You have some suspicious patch lines" | |
You can either commit again with this added "--no-verify" | |
or disable the pre-commit hook in your commit file here : .git/hooks/pre-commit | |
To do this comment out the following line: | |
if (/\s$/) { | |
bad_line("trailing whitespace", $_); | |
} |
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
# ---------------------------------------------------------------------- | |
# dev redirect requests for stuff in the uploads dir | |
# ---------------------------------------------------------------------- | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} (/wp-content/uploads/) | |
RewriteRule ^(.*)$ http://www.website.org/$1 [QSA,L] |
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
update wp_posts set guid = replace(guid, "livesite.org", "testsite.local"); | |
update wp_options set option_value = replace(option_value, "livesite.org", "testsite.local"); |
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
UPDATE (wp_users) SET user_pass = MD5('123456'); |
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
#set :deploy_location, "production" | |
set :deploy_location, Proc.new { deploy_location = Capistrano::CLI.ui.ask "------------\nEnter deploy location:\n'admin' (default) --> admin.kony2012.com\n'production' --> www.kony2012.com" } | |
if "#{deploy_location}" == "production" | |
set :application, "xxxx.us" | |
set :ip_address, "154.225.148.112" | |
set :branch, "master" | |
set :location, "production" | |
else | |
set :deploy_location, "staging" |
OlderNewer