Skip to content

Instantly share code, notes, and snippets.

Eating cheese

Sean Handley seanhandley

Eating cheese
View GitHub Profile
seanhandley / gist:9329303
Last active Aug 29, 2015
Bootstrap the Melbourne Dev Stack on CentOS
View gist:9329303
curl > && chmod +x && ./
seanhandley / gist:9328060
Last active Aug 29, 2015
Set up the Dev Stack for Cent OS 6.5
View gist:9328060
curl > ~/.bashrc
source ~/.bashrc
sudo yum update -y
sudo yum groupinstall -y 'Development tools'
sudo yum -y install openldap-devel mysql-server mysql-devel sqlite-devel sqlite openssl openssl-devel readline-devel readline compat-readline5 libxml2-devel libxslt-devel libcurl curl wget git
test -d ~/.rbenv || git clone ~/.rbenv
test -d ~/.ruby-build || git clone ~/.ruby-build

Keybase proof

I hereby claim:

  • I am seanhandley on github.
  • I am seanhandley ( on keybase.
  • I have a public key whose fingerprint is 3D5A 1E2C 0F9D 2EC2 C5F6 7AFE 07AB 1775 EF12 6F8D

To claim this, I am signing this object:

View gist:5828bdec830901e6bb16
/ /
/ \
| |
r \ \ r^-
|\---- | |---/|
/ | | | \
- - - - - ( / / ) - - - - - - -
seanhandley / hiera.yaml
Last active Aug 29, 2015
Hiera Credentials
View hiera.yaml
tag: user
uid: sean
givenName: Sean
sn: Handley
mail: ""
userPassword: "{CRYPT}$6$x4S0fjYU$GYERTUghjFTfTDFRYIDthgf456456GHJR="
View setup_ldap.pp
$defaults = {
ensure => present,
host => '',
port => 636,
base => hiera(ldap::server::suffix),
username => hiera(ldap::server::rootdn),
password => hiera(ldap::server::rootpw),
create_resources(ldap_entry, hiera(ldap_schema), $defaults)
View using_ldap_entry.pp
ldap_entry { 'cn=Foo,ou=Bar,dc=baz,dc=co,dc=uk':
ensure => present,
host => '',
port => 636,
base => 'dc=baz,dc=co,dc=uk',
username => 'cn=admin,dc=baz,dc=co,dc=uk',
password => 'password',
attributes => { givenName => 'Foo',
objectClass => ["top", "person", "inetorgPerson"]}
seanhandley / 0_brief.txt
Last active Aug 29, 2015
Given N sets, returns the set of all elements which occur in only one of those sets
View 0_brief.txt
TheHodge: anyone got any suggestions on how to compare
four arrays for unique elements
TheHodge: I want a count of the unique elements in each
array, elements that don't appear in any of the other
TheHodge: the four arrays could easily turn into 6 and
then 8 as they are files in a directory

Running Icinga Commands via the REST API

I'm trying to automatically have a host in Icinga be disabled temporarily while Foreman rebuilds it. This prevents dozens of unnecessary alerts being generated.

The API call is as follows:

The JSON result is:

seanhandley /
Last active Aug 29, 2015
Don't Take Nude Selfies - Adventures in Blame, Nudity, Privacy and Technology

Don't Take Nude Selfies - Adventures in Blame, Nudity, Privacy and Technology

Ok. Lots of news stories and opinion lately about nude selfies and digital privacy following a high profile theft of celebrity photos, revealing nude photos.

I think there's several things at play here:

  1. Nudity in our society. We're against it, apparently. If I walk around naked, peacefully, then I can be arrested and charged as a criminal. There's nothing wrong with nudity, per se, and we can be naked in private and in the company of consenting adults to our hearts content. I'm all for nakedness - I don't have any problem with it in principal whatsoever. I'd like a society where we could all be freely naked; I think it'd be healthier.
  2. Celebrities. Everything is exaggerated and heightened when discussing celebrities because they have an aura of admiration and ardulation that makes us treat them differently to ordinary non famous people. So I want to take them out of the argument for clarity.
  3. *Patriarchal control of