Skip to content

Instantly share code, notes, and snippets.

@kholloway
kholloway / keybase.md
Created March 25, 2015 00:31
Keybase.IO Proof statement

Keybase proof

I hereby claim:

  • I am kholloway on github.
  • I am kholloway (https://keybase.io/kholloway) on keybase.
  • I have a public key whose fingerprint is 73FA 6582 D94E 896D CA17 7F6D 061F 955D 2B1D 529D

To claim this, I am signing this object:

@kholloway
kholloway / Vagrantfile
Created February 24, 2015 22:20
ChefSoloInstall-VagrantFile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "chef/centos-6.6"
# Bootstrap for the vim cookbook
# mkdir -p ~/vagrant_stuff/cheflab/cookbooks
# cd !$
# git clone git://github.com/opscode-cookbooks/vim.git
#!/usr/bin/python
# NOTE: We need the system wide Python(2.6) because that's where
# the guestfs libs are installed (RHEL6.X)
# rpm package python-libguestfs is required for this to work
#
# yum install python-libguestfs
#
# Provide the disk image name as the only argument to this script
#
@kholloway
kholloway / garagdoor.ino
Created June 29, 2014 19:48
SparkCore Garage door relay controller
int garageDoor(String command);
// Need to use the analog pins because the digital pins (D0 for example) gets triggered on boot/power up of the core
// with no way to disable it and we don't want the door to open just because we lost power or rebooted.
int zone15 = A0; // garage door 1
int zone16 = A1; // garage door 2
void setup()
{
pinMode(zone15, OUTPUT); // setup as output
pinMode(zone16, OUTPUT);
@kholloway
kholloway / config.ini
Last active August 29, 2015 13:55
PuppetDB config
# See README.md for more thorough explanations of each section and
# option.
[global]
# Store mq/db data in a custom directory
vardir = /var/lib/puppetdb
# Use an external log4j config file
logging-config = /etc/puppetdb/log4j.properties