Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Rouleau jrouleau

View GitHub Profile
@jrouleau
jrouleau / InstallHaProxy.sh
Last active Feb 3, 2020 — 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
View 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 Oct 6, 2015
Android Material Design Colors
View md_colors.xml
<?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 Sep 15, 2015
Split Index with react-router 1.0.0
View routes.js
import auth from "../utils/auth";
function logout(nextState, replaceState) {
auth.logout();
replaceState(null, "/");
}
function redirectToLogin(nextState, replaceState) {
if (!auth.isLoggedIn()) {
replaceState({
You can’t perform that action at this time.