Skip to content

Instantly share code, notes, and snippets.

View adonaldson's full-sized avatar

Andrew Donaldson adonaldson

View GitHub Profile
@schwuk
schwuk / Vagrantfile
Created January 30, 2014 14:58
Vagrantfile that installs the latest version of Puppet into the official Ubuntu 12.04 Vagrant image. Also opens up port 5000 (default Foreman port).
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
INITIAL_PROVISION=/var/cache/initial_provision
DISTRIB_CODENAME=$(lsb_release --codename --short)
DEB="puppetlabs-release-${DISTRIB_CODENAME}.deb"
@lukeredpath
lukeredpath / hsbc.rb
Created September 17, 2012 12:38
Automated HSBC business banking statement downloads
require 'rubygems'
require 'mechanize'
require 'keychain'
class Scraper
def initialize(url)
@url = url
@flows = []
end
@thechrisoshow
thechrisoshow / standard.rb
Created June 2, 2011 13:57
Rails Template
create_file '.rvmrc' do
'echo "RVM: Switching to Ruby 1.9.2"'
'rvm 1.9.2'
end
append_to_file '.gitignore', "*.sw?"
gem('formtastic')
gem('sass')
gem("mysql2", :group => "production")