Skip to content

Instantly share code, notes, and snippets.

View cbschuld's full-sized avatar

Chris Schuld cbschuld

View GitHub Profile
@cbschuld
cbschuld / install_bash4.md
Created July 10, 2018 22:17
Update MacOS / OSX to latest Bash from Brew (installing Bash 4 to MacOS)

First, install the latest bash using brew:

brew install bash

Next, add the local bash installation to the list of available shells by adding /usr/local/bin/bash to /etc/shells

sudo sh -c 'echo /usr/local/bin/bash >> /etc/shells'
@cbschuld
cbschuld / gist:cdcaf062da5b34eede37
Last active August 29, 2015 14:05
install haproxy 1.5.6 on ec2 amazon ami - updated 2014-10-28
#!/bin/sh
yum update -y
yum install -y wget git
wget "http://www.haproxy.org/download/1.5/src/haproxy-1.5.6.tar.gz"
yum groupinstall -y 'Development Tools'
yum install -y openssl-devel
yum install -y rpmdevtools pcre-devel
rpmdev-setuptree
mv haproxy-1.5.6.tar.gz ~/rpmbuild/SOURCES/