Skip to content

Instantly share code, notes, and snippets.

View jfortier-haptiq's full-sized avatar

Justin Fortier jfortier-haptiq

View GitHub Profile
@jfortier-haptiq
jfortier-haptiq / deploy-using-target-groups.sh
Last active August 13, 2018 00:42
Swap instances on AWS LB using blue/green environment
#!/bin/bash -x
role=players-api
env=prod
longEnv=Production
region=us-east-1
targetFilter="players"
# Check if in running state
is_running() {
<?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-haptiq
jfortier-haptiq / example.php
Last active August 29, 2015 14:18
GN21Cookie Managment
<?php
require_once 'gn21cookie.php';
//Encrypt and set the cookie
\GN21Session::encrypt( array(
'networkId'=>123,
'membershipLevel'=>'gold',
'clubId'=>2,
), true);