Skip to content

Instantly share code, notes, and snippets.

Justin Fortier jfortier

Block or report user

Report or block jfortier

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
@jfortier
jfortier / deploy-using-target-groups.sh
Last active Aug 13, 2018
Swap instances on AWS LB using blue/green environment
View deploy-using-target-groups.sh
#!/bin/bash -x
role=players-api
env=prod
longEnv=Production
region=us-east-1
targetFilter="players"
# Check if in running state
is_running() {
View WordPressPermissions.php
<?php
/*
List of available WordPress permissions as of version 4.3.1
Copied, and cleaned from: https://codex.wordpress.org/Roles_and_Capabilities
*/
$allPermissions = array(
'manage_network',
'manage_sites',
'manage_network_users',
@jfortier
jfortier / example.php
Last active Aug 29, 2015
GN21Cookie Managment
View example.php
<?php
require_once 'gn21cookie.php';
//Encrypt and set the cookie
\GN21Session::encrypt( array(
'networkId'=>123,
'membershipLevel'=>'gold',
'clubId'=>2,
), true);
You can’t perform that action at this time.