Skip to content

Instantly share code, notes, and snippets.

View dhgwilliam's full-sized avatar

David Gwilliam dhgwilliam

View GitHub Profile
@dhgwilliam
dhgwilliam / gist:3171227
Created July 24, 2012 17:05
Install Guide for Puppet Open Source

Converting Puppet Open Source Edition to Puppet Enterprise

Installing OSE - Ubuntu 10.04.4 LTS - Master

master# echo "10.16.1.2 master master.puppetlabs.lan" >> /etc/hosts
master# echo "master" > /etc/hostname
master# hostname -F /etc/hostname # log out & in
master# wget http://apt.puppetlabs.com/puppetlabs-release_1.0-3_all.deb
master# dpkg -i puppetlabs-release*.deb
master# apt-get update

master# vi /usr/sbin/policy-rc.d # paste the following

caker: dhgwilliam: I *think* /proc/xen/ will only ever exist in dom0 (or at maybe any privileged domain)
caker: HTH
caker: at least, it doesn't exist in pv_ops domUs kernels that I just checked
caker: grep control_d /proc/xen/capabilities <-- dom0 test, looks like
#!/usr/bin/env bash
# /home/david/.dropbox-dist/dropboxd &
gsynaptics-init &
urxvtd -q -o -f &
#urxvtc -e screen -R -d &
wicd-client &
export DISPLAY=:0.0 &
xsetroot -cursor_name left_ptr &
volwheel &
@dhgwilliam
dhgwilliam / IISY.rb
Created November 25, 2010 08:23
is it shabbos yet microsite
require 'sinatra'
require 'date'
require 'icalendar'
require 'net/https'
get '/' do
is_it_shabbos_yet
end
ip javascript:function%20iprl5(){var%20d=document,z=d.createElement('scr'+'ipt'),b=d.body;try{if(!b)throw(0);d.title='(Saving...)%20'+d.title;z.setAttribute('src','http://www.instapaper.com/j/nijrvpmNKlkV?u='+encodeURIComponent(d.location.href)+'&t='+(new%20Date().getTime()));b.appendChild(z);}catch(e){alert('Please%20wait%20until%20the%20page%20has%20loaded.');}}iprl5();void(0) Read Later
ip! http://instapaper.com/u Instapaper
read javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-wide';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';_reada