Skip to content

Instantly share code, notes, and snippets.


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 / 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 / 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.