Skip to content

Instantly share code, notes, and snippets.

James White jamesfacts

Block or report user

Report or block jamesfacts

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 deploy
FOLDER=wp-content/themes/
if [ "production" == "${CI_ENVIRONMENT_NAME}" ]; then
WPE_INSTALL=prod_install
elif [ "staging" == "${CI_ENVIRONMENT_NAME}" ]; then
WPE_INSTALL=staging_install
else
WPE_INSTALL=dev_install
fi
View .gitlab-ci.yml
image: php:7.2-cli
before_script:
# Updates
- curl -sL https://deb.nodesource.com/setup_10.x | bash
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt-get update
- apt-get -y install yarn libpcre3-dev zlib1g-dev libbz2-dev libpng-dev libjpeg-dev nodejs git zip unzip curl rsync mysql-client
- docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr
View keybase.md

Keybase proof

I hereby claim:

  • I am jamesfacts on github.
  • I am jamesfacts (https://keybase.io/jamesfacts) on keybase.
  • I have a public key ASAbc-93kS2pgt0xAuJYR44fbSIl19SJLkP0D5tueLesUAo

To claim this, I am signing this object:

@jamesfacts
jamesfacts / css-colors.md
Created Feb 22, 2018
Attractive CSS colors
View css-colors.md

LightCoral FireBrick Coral DarkOrange Chocolate Khaki BlueViolet Indigo SlateBlue SpringGreen

@jamesfacts
jamesfacts / 1_env_setup.bash
Last active Sep 26, 2017
Codeship CI script for Sage + WPE, with hashed Blade templates
View 1_env_setup.bash
# ssh git@git.wpengine.com info
# get around restriction on shallow pushes by WP Engine
git filter-branch -- --all
git checkout master
git config --global user.name "${CI_COMMITTER_NAME}"
git config --global user.email "${CI_COMMITTER_EMAIL}"
# Combine remote git servers
git remote add servers $WPE_SERVERS
@jamesfacts
jamesfacts / 1-setup.bash
Created May 4, 2017
Deploy scripts for Sage + WPEngine through Codeship Raw
View 1-setup.bash
# Setup
# Get around restriction on shallow pushes by WP Engine
git filter-branch -- --all
git checkout staging [OR ANY OTHER BRANCH]
# Add User Data
git config --global user.name "codeship-username"
git config --global user.email "git@github.com"
You can’t perform that action at this time.