Skip to content

Instantly share code, notes, and snippets.

View jrouleau's full-sized avatar

Jon Rouleau jrouleau

  • Halifax, NS, Canada
View GitHub Profile
@jrouleau
jrouleau / InstallHaProxy.sh
Last active February 1, 2022 00:34 — forked from ChrisMcKee/InstallHaProxy.sh
Amazon Linux AMI Install HAProxy From Source (1.7.0 release pre configured). chmod +x InstallHaProxy.sh then ./InstallHaProxy.sh
#!/bin/bash
### VARIABLES ###
PRE_PACK="openssl-devel pcre-devel make gcc"
VER="1.7.0"
# Setup Colours
black='\E[30;40m'
red='\E[31;40m'
green='\E[32;40m'
@jrouleau
jrouleau / md_colors.xml
Created October 6, 2015 22:11
Android Material Design Colors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Google's material design colors from
https://www.google.com/design/spec/style/color.html#color-color-palette
Last updated: 2015-10-06 -->
<!-- Red -->
<color name="red_50">#FFEBEE</color>
<color name="red_100">#FFCDD2</color>
@jrouleau
jrouleau / routes.js
Created September 15, 2015 02:48
Split Index with react-router 1.0.0
import auth from "../utils/auth";
function logout(nextState, replaceState) {
auth.logout();
replaceState(null, "/");
}
function redirectToLogin(nextState, replaceState) {
if (!auth.isLoggedIn()) {
replaceState({