Skip to content

Instantly share code, notes, and snippets.

View nickpelton's full-sized avatar

Nick Pelton nickpelton

  • Rocketgenius/Gravityforms
  • Minneapolis, MN
View GitHub Profile
@nickpelton
nickpelton / Dockerfile
Created August 3, 2016 20:24 — forked from jbrinley/Dockerfile
PHP7 FPM dockerfile
# Use Alpine Linux
FROM alpine:latest
# Environments
ENV TIMEZONE Etc/UTC
ENV PHP_MEMORY_LIMIT 512M
ENV MAX_UPLOAD 50M
ENV PHP_MAX_FILE_UPLOAD 200
ENV PHP_MAX_POST 100M
@nickpelton
nickpelton / localwp-no-conflict.sh
Created July 20, 2022 20:43
zsh avoid conflicts with localwp shell and custom php, mysql, or other custom binaries
# Don't load custom stuff if LocalWP shell
if [[ -z ${PHPRC+z} ]]
then
echo "Export custom binaries"
# Eg.
# export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
# export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"
fi
@nickpelton
nickpelton / install-gravity-forms-and-all-add-ons.sh
Created July 20, 2022 21:56
Install and Activate Gravity Forms and all add-ons via Gravity Forms CLI
#!/bin/zsh
# Script to force install Gravity Forms and All Add-ons via Gravity Forms CLI (https://docs.gravityforms.com/category/add-ons-gravity-forms/wp-cli-add-on/)
# Note: You must `define('GF_LICENSE_KEY','your_license_key')` with a valid Elite or higher License key
# Install Gravity Forms Core Plugin
wp gf install --force --activate
addons=(
"gravityforms2checkout"