Skip to content

Instantly share code, notes, and snippets.

@jonathanclarke
jonathanclarke / 0-readme.md
Created May 25, 2021 11:49 — forked from toolmantim/0-readme.md
Using rvm and node on Ubuntu with Buildkite Agent

Firstly, you'll need to install rvm as the buildkite-agent user:

sudo su buildkite-agent
curl -sSL https://get.rvm.io | bash -s stable
source /var/lib/buildkite-agent/.rvm/scripts/rvm
rvm install 2.4.0 && rvm use 2.4.0 && gem install bundler

Secondly, make rvm available to your build commands by adding the following pre-command Buildkite Agent hook:

@jonathanclarke
jonathanclarke / gist:3197355
Created July 29, 2012 10:27 — forked from danparsons/gist:3195652
How to stream the London 2012 Olympics

How to stream the London 2012 Olympics

There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.

@jonathanclarke
jonathanclarke / daily_deal_rss_feed
Created August 8, 2011 09:20 — forked from davemorro/daily_deal_rss_feed
Recommended Daily Deal RSS Feed
<?xml version="1.0" encoding="UTF-8" ?>
<deals>
<deal>
<title>A perfect daily deal feed for just $17.50</title>
<link>http://www.dailydealsite/deals/1</link>
<guid>http://www.dailydealsite/deals/1</guid>
<description><![CDATA[Set your daily deal site up for maximum distribution effectiveness. Many deal sites include HTML within the description however, we recommend you remove all formatting, enabling the aggregator to more easily integrate your information. If you do include HTML, be sure wrap the description in CDATA sequences.]]></description>
<highlights><![CDATA[Usually a list of the deal highlights. Like the description, you should wrap the highlights in CDATA sequences.]]></highlights>
<image>http://www.dailydealsite.com/images/image.jpg</image>
<price>17.50</price>
# Factory girl, relaxed.
#
# Factory.define :user do |f|
# f.login 'johndoe%d' # Sequence.
# f.email '%{login}@example.com' # Interpolate.
# f.password f.password_confirmation('foobar') # Chain.
# end
#
# Factory.define :post do |f|
# f.user { Factory :user } # Blocks, if you must.
#! /bin/sh
### BEGIN INIT INFO
# Provides: mongodb
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the mongodb data-store
# Description: starts mongodb using start-stop-daemon