Skip to content

Instantly share code, notes, and snippets.

View plusplus's full-sized avatar
🚲

Julian Russell plusplus

🚲
  • Hobart, Tasmania, Australia
View GitHub Profile
@plusplus
plusplus / warnings.xml
Created September 30, 2011 05:10
Warning test file for RFS
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>NSW Rural Fire Service Current Incidents</title>
<description>Fire Incidents as at Monday, 19 September 2011</description>
<link>http://www.rfs.nsw.gov.au/dsp_content.cfm?cat_id=683</link>
<language>en-AU</language>
<webMaster>[email protected] (RFS Webmaster)</webMaster>
<docs>http://www.rssboard.org/rss-specification</docs>
<atom:link href="http://www.rfs.nsw.gov.au/feeds/majorIncidents.xml" rel="self" type="application/rss+xml" />
@plusplus
plusplus / mongo-chef.rb
Created July 21, 2011 00:45 — forked from veryhappythings/mongo-chef.rb
A chef recipe for installing mongoDB from apt-get on ubuntu.
execute 'apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10' do
user 'root'
end
ubuntu_version = node[:platform_version]
ubuntu_version.gsub! '.0', '.'
execute "echo 'deb http://downloads.mongodb.org/distros/ubuntu #{ubuntu_version} 10gen' >> /etc/apt/sources.list" do
user 'root'
not_if 'grep mongodb /etc/apt/sources.list'
end
@plusplus
plusplus / mongo-chef.rb
Created July 21, 2011 00:45 — forked from veryhappythings/mongo-chef.rb
A chef recipe for installing mongoDB from apt-get on ubuntu.
execute 'apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10' do
user 'root'
end
ubuntu_version = node[:platform_version]
ubuntu_version.gsub! '.0', '.'
execute "echo 'deb http://downloads.mongodb.org/distros/ubuntu #{ubuntu_version} 10gen' >> /etc/apt/sources.list" do
user 'root'
not_if 'grep mongodb /etc/apt/sources.list'
end
require 'date'
#
# My infinite monkeys just wrote the complete works of Shakespeare. Just can't find it
# amongst these infinite monkeys.
#
# That's right MONKEY PATCHING.....
#
class Date