Skip to content

Instantly share code, notes, and snippets.

patrickjohnstevens

Block or report user

Report or block patrickjohnstevens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@patrickjohnstevens
patrickjohnstevens / gist:d6334a3068fe6ada05cbafc3004afac5
Created Aug 6, 2019
Manually migrate local wordpress website and database to the host server via ftp or sftp
View gist:d6334a3068fe6ada05cbafc3004afac5
https://localbyflywheel.com/community/t/once-finished-developing-locally-what-are-the-steps-to-replace-the-current-live-site-on-flywheel/1930/2
Step one - Replace WP-Content file from local to host server
Step two - Replace Database file from local to host server
Step three - Change the Database prefix to wp_
@patrickjohnstevens
patrickjohnstevens / wp.config
Created May 15, 2019
Fix when MAMP localhost url is redirecting to another URL
View wp.config
/** Stops MAMP redirect to another URL and opens the site via localhost when using MAMP. Placed just below DB_COLLATE within the wp.config Wordpress file. **/
define('WP_HOME', 'http' . '://' . $_SERVER['SERVER_NAME'] .
preg_replace('#(^(\\\\|/|\\.)$|/(wp-admin|wp-content).*)#', '', dirname($_SERVER['SCRIPT_NAME']))
);
define('WP_SITEURL', WP_HOME);
@patrickjohnstevens
patrickjohnstevens / 0_reuse_code.js
Created Jan 11, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.