Skip to content

Instantly share code, notes, and snippets.

Edmund Turbin spicecadet

Block or report user

Report or block spicecadet

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
View gist:71d65fab0480812bc66b09b69d056253
#get siteurl option from prod and dev
PROD_SITEURL=$(wp @prod option get siteurl);
DEV_SITEURL=$(wp @dev option get siteurl);
#Export database from prod and import to dev
wp @prod db export - > prod.sql
wp @dev db import /srv/www/edmund/prod.sql

Keybase proof

I hereby claim:

  • I am spicecadet on github.
  • I am spicecadet ( on keybase.
  • I have a public key ASCC52FurGf2ViwJgzlK_AgtWUv73GE9xni_rser_gHULgo

To claim this, I am signing this object:

spicecadet / 1. Codeship Deployment
Last active May 2, 2019
This is my deployment script for pushing from Github to a WP Engine WordPress install. The scripts below can be added as custom scripts to Codeship's Deployment Pipelines.
View 1. Codeship Deployment
# Environment Variables
spicecadet /
Created Oct 7, 2015
This is a quick bash script I built to handle db export and docroot backup for my local vagrant box. Potentially useful if you are using a Vagrant box that does not backup files and db on Vagrant Destroy. Note that you'll need to add your password to run the copy command on line 31.
#! /bin/bash
# create variables for directories
today="$(date +'%m-%d-%Y')"_daily_backup
# print directories to screen for testing
echo ----------: Main backup dir: $main_backup_dir
spicecadet / Gulpfile.js Example
Last active Oct 8, 2015
This is an example gulp workflow that I run locally which handles sass compiling, image optimization, minification and reloading.
View Gulpfile.js Example
// gulp plugins
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var livereload = require('gulp-livereload');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minify = require('gulp-minify-css');
var imageop = require('gulp-image-optimization');
var livereload = require('gulp-livereload');
spicecadet / composer.json
Created Sep 1, 2015
Here's the composer file used in my demo during my talk at WordCamp Norrkoping
View composer.json
"name": "edmund.turbin/wordpress-starter",
"description": "This is a basic wordpress install with some changes to the wp-content and core file locations",
"type": "dev",
"license": "GPL",
"authors": [
"name": "Edmund Turbin",
"email": ""
You can’t perform that action at this time.