Skip to content

Instantly share code, notes, and snippets.

View demophoon's full-sized avatar
🌮
🔔

Britt Gresham demophoon

🌮
🔔
View GitHub Profile
/opt/puppetlabs/server/bin/initdb --encoding 'UTF8' --pgdata '/opt/puppetlabs/server/data/postgresql/9.4/data' --locale=en_US.UTF-8 --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'
python::virtualenv { '/opt/monmon':
ensure => present,
requirements => '/local/requirements.txt',
owner => 'vagrant',
group => 'vagrant',
}
@demophoon
demophoon / Vagrantfile
Created June 5, 2015 18:49
Vagrant Pooler Helpers
# vi: set ft=ruby :
# This file will need to be modified to meet your requirements
BASE_IP = "192.168.33"
BOXES = [
#{:box => "puppetlabs/ubuntu-14.04-64-nocm", :name => "ubuntu14"},
#{:box => "puppetlabs/ubuntu-12.04-64-nocm", :name => "ubuntu12"},
#{:box => "puppetlabs/centos-6.6-64-nocm", :name => "centos6"},
@demophoon
demophoon / Higgs Auto Installer
Created May 22, 2015 18:27
Higgs Auto Installer
// ==UserScript==
// @name Higgs auto-installer
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://localhost:3000/*
// @match https://master.vm:3000/*
// @match https://*.master.vm:3000/*
// @match https://*.delivery.puppetlabs.net:3000/*
@demophoon
demophoon / monkeyscript
Created May 22, 2015 18:16
MERGE ME NOW
// ==UserScript==
// @name MERGE ME DAMNIT
// @namespace http://brittg.com/
// @version 1.0.0
// @description It is tempting to merge things. Lets make it even more tempting
// @author Britt Gresham
// @match https://github.com/*pull*
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am demophoon on github.
  • I am demophoon (https://keybase.io/demophoon) on keybase.
  • I have a public key whose fingerprint is 5D11 9973 6DD7 5CE9 6D89 95CB 083B 3535 EC5E 3ABA

To claim this, I am signing this object:

@demophoon
demophoon / ddns.py
Created January 11, 2015 05:22
Namecheap DDNS Script
#!/usr/bin/env python
# encoding: utf-8
import urllib
NAMECHEAP_BASE_URL = "https://dynamicdns.park-your-domain.com/update?"
def get_public_ip():
"""
#!/usr/bin/env ruby
#wat
describe some::namespace do
it "should not expect the spanish inquisition" do
{}.expects(:thespanishinquesition).returns(false)
end
end
@demophoon
demophoon / Smoke-test-Facter-2.3.0-Fedora-19
Created October 30, 2014 22:57
Facter 2.3.0 Smoke Tests
[root@d8915btpb91tlqz ~]# facter --version
2.3.0
[root@d8915btpb91tlqz ~]# facter
architecture => x86_64
bios_release_date => 07/30/2013
bios_vendor => Phoenix Technologies LTD
bios_version => 6.00
blockdevice_sda_model => Virtual disk
blockdevice_sda_size => 8589934592
blockdevice_sda_vendor => VMware
@demophoon
demophoon / run.sh
Created July 10, 2014 20:44
Docker Multi-container Linking
docker run -itd --name="database" $DOCKER_DB_CONTAINER
docker run -itd --link=["database:db"] --port 8080:80 $DOCKER_APP_CONTAINER # I cannot remember if the port sharing is right on this line or not