Skip to content

Instantly share code, notes, and snippets.

View ErnieAtLYD's full-sized avatar

Ernie Hsiung ErnieAtLYD

View GitHub Profile
@ErnieAtLYD
ErnieAtLYD / WPEngine Script
Created November 14, 2018 18:30 — forked from leglesslizard/WPEngine Script
Script to setup WPEngine site locally on VVV. This takes a backup.zip of a WPEngine install and creates a local VVV install. It extracts wp-content and database from the backup and installs locally. It also points the local install to a git repo of your choosing. Uses composer to handle dependencies.
1. download backup of live WPEngine site
2. change directory to vagrant/www
3. git clone [email protected]:pie/vvv-init-wpengine.git "sitename"
4. run search and replace on "sitename" directory (replace site-name with wpengine install name)
5. move WPEngine backup.zip into "sitename" directory (DO NOT RENAME IT)
6. run this script (./wpengine-init.sh) and follow the instructions (site name = wpengine install name = "sitename" directory)
7. before vagrant provision is run script notifies you to update the composer.json, make any required changes
8. either provision now or later and after it has run check all loaded properly
@ErnieAtLYD
ErnieAtLYD / 0_reuse_code.js
Created October 18, 2016 12:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console