Skip to content

Instantly share code, notes, and snippets.

PHP Dev Available For Hire!

Joshua Copeland OGProgrammer

PHP Dev Available For Hire!
View GitHub Profile
View gist:e2a586d663fd9f50685bc2c8441c97bf
#!/usr/bin/env bash
#usage ./ <domain name≥ <subdomain> <short name>
# Short name is for when domain name is too long for mysql username.
echo "===Creating New EasyEngine WordPress Site==="
if [ -z "${newSiteDomain}" ]; then
echo "Site param missing! Script needs the domain name of the site. Ex:"
OGProgrammer /
Last active Oct 14, 2018
Terraform+Jenkins+AWS+Docker Tutorial Prep


This tutorial will walk you through setting up a Jenkins Pipeline to Deploy a Docker app to AWS ECS using Terraform. If you are looking to use docker then this is the perfect choice for high traffic microservice infrastucture. The tutorial will show you the power of Terraform to provision your cloud infrastructure, how jenkins can help speed up deployments, and how AWS Elastic Container Service can be a great solution for hosting your Enterpise level applications. Be aware this tutorial will spin up infrastructure in AWS and you must run the destroy scripts at the end so you aren't leaving the example running.


Please read the following and install/sign up for what you need before the tutorial for the best experience.

  • Use a *nix bash/zsh terminal (Mac/Linux)
View php 7.2 with ast phan argon support
FROM php:7.2-fpm-stretch
# needed PHAN and ast ext so I found this and copied some stuff
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y unzip git curl
RUN curl -sS | php -- --install-dir=/usr/local/bin --filename=composer
OGProgrammer / .gitignore_global
Last active Nov 3, 2017 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore_global
# IDE Files #
# IntelliJ
# Eclipse
OGProgrammer /
Created Apr 15, 2017
ZendCon Talk Submissions

Joshua Copeland

Tech Conference Talks

45-60 min presentations

Create your own dependancies!

Do you have multiple PHP projects with the same or similar logic? Are you sick of your team copy pasting code from one project to another? Let's talk about pulling all that shared code into one (or more) libraries and how to implement them in your projects via composer. We'll also be touching on related topics like statis, packagist, toran proxy, composer settings, code structure, autoloading, and strategies to use when refactoring classes into your new library. Quit duplicating code and come check out this talk!

OGProgrammer / utag.318.js
Created Feb 21, 2017
350v2 bred hmac source
View utag.318.js
//tealium universal tag - utag.318 ut4.0.201701161351, Copyright 2017 Inc. All Rights Reserved.
try{(function(id,loader){var u={"id":id};utag.o[loader].sender[id]=u;if(utag.ut===undefined){utag.ut={};}
var match=/ut\d\.(\d*)\..*/.exec(utag.cfg.v);if(utag.ut.loader===undefined||!match||parseInt(match[1])<41){u.loader=function(o,a,b,c,l,m){utag.DB(o);a=document;if(o.type=="iframe"){m=a.getElementById(;if(m&&m.tagName=="IFRAME"){b=m;}else{b=a.createElement("iframe");}o.attrs=o.attrs||{};utag.ut.merge(o.attrs,{"height":"1","width":"1","style":"display:none"},0);}else if(o.type=="img"){utag.DB("Attach img: "+o.src);b=new Image();}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";}if({;}for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l]);}b.setAttribute("src",o.src);if(typeof o.cb=="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb();},false);}else{b.onreadystatechange=function(){if(this.r
View d3stryr-3stripes.php
<meta charset="UTF-8">
<title>d3stryr 3stripes</title>
<script src=""></script>
View gist:89cbd7bd19c1b07c0c16b9cfae77c066
* Vagrant
* Virtual Box
* Composer
Setup a bashrc and bash_profile
* brew
* php70 keg from brew
View CF->s3 bucket policy
"Version": "2012-10-17",
"Id": "Policy1478288369041",
"Statement": [
"Sid": "Stmt1478288367501",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::meadows-dev-uploads/*"
OGProgrammer / d3stryr-3stripes-atc-cs.php
Created Sep 25, 2016
Helper script for d3stryr-3stripes.php
View d3stryr-3stripes-atc-cs.php