Skip to content

Instantly share code, notes, and snippets.

View duncan-bayne's full-sized avatar

Duncan Bayne duncan-bayne

View GitHub Profile
@duncan-bayne
duncan-bayne / gist:772d36c63e9e2638ef87
Created October 30, 2014 04:57
Simultaneous messages from same originator
<messages>
<message>
<datestamp>2014-10-30 15:43:40</datestamp>
<direction>MO</direction>
<originator>61420817082</originator>
<recipient>61419129159</recipient>
<messagetext>A</messagetext>
<campaign></campaign>
<reference></reference>
</message>
9
/ \
7 10
/ \
3 8
@duncan-bayne
duncan-bayne / index.html
Created July 16, 2014 06:31
Simple charting demo
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>14 days @ 5 minute resolution</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
body { font: 13px sans-serif; }
rect { fill: #fff; }
ul {
@duncan-bayne
duncan-bayne / gist:74d6e38c506000982237
Last active August 29, 2015 14:02
Transcript of IKEA support chat re. C&D
You are being assisted by IKEA Australia
10:46 Hi
10:46 Hi I'm Laura, how can I help?
10:46 Hi Laura
10:47 I'm writing about the Cease & Desist letter you (i.e. IKEA)
sent to IKEAHackers.
@duncan-bayne
duncan-bayne / gist:7111638
Created October 23, 2013 02:26
Trying to use pry-rescue and Cucumber with an Around hook.
Around do |scenario, block|
Pry::rescue do
block.call
end
end
client = RestClient::Resource.new(SATISFACTION_BOOKIES_URI,
:ssl_client_key => OpenSSL::PKey::RSA.new(File.read('client.pem'), 'mypassword'))
client.put(:object => data)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IPSec</key>
<dict>
<key>SystemConfig</key>
<dict>
<key>IPSec</key>
<dict>
@duncan-bayne
duncan-bayne / gist:4752329
Created February 11, 2013 03:35
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "atlas-dev-precise64-#{`hostname`.strip}"
config.vm.host_name = "atlas-dev-precise64-#{`hostname`.strip}"
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
config.vm.boot_mode = :gui
config.vm.network :bridged
@duncan-bayne
duncan-bayne / gist:4752282
Created February 11, 2013 03:30
ls -l ~/.rvm/archives/wayneeseguin-rvm-287a5f6/
vagrant@atlas-dev-precise64-devmac-1:~/.rvm/archives$ ls -l ~/.rvm/archives/wayneeseguin-rvm-287a5f6/
total 232
drwxr-xr-x 1 vagrant vagrant 408 Feb 9 02:42 binscripts
drwxr-xr-x 1 vagrant vagrant 272 Feb 9 02:42 config
drwxr-xr-x 1 vagrant vagrant 204 Feb 9 02:42 contrib
drwxr-xr-x 1 vagrant vagrant 204 Feb 9 02:42 docs
drwxr-xr-x 1 vagrant vagrant 102 Feb 9 02:42 examples
drwxr-xr-x 1 vagrant vagrant 204 Feb 9 02:42 gemsets
-rw-r--r-- 1 vagrant vagrant 2198 Feb 9 02:42 HACKING.md
drwxr-xr-x 1 vagrant vagrant 1632 Feb 9 02:42 help
/dev/mapper/precise64-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)