Skip to content

Instantly share code, notes, and snippets.


Duncan Bayne duncan-bayne

View GitHub Profile
duncan-bayne / gist:74d6e38c506000982237
Last active Aug 29, 2015
Transcript of IKEA support chat re. C&D
View gist:74d6e38c506000982237
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 / index.html
Created Jul 16, 2014
Simple charting demo
View index.html
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>14 days @ 5 minute resolution</title>
<script type="text/javascript" src=""></script>
<style type="text/css">
body { font: 13px sans-serif; }
rect { fill: #fff; }
ul {
duncan-bayne / gist:772d36c63e9e2638ef87
Created Oct 30, 2014
Simultaneous messages from same originator
View gist:772d36c63e9e2638ef87
<datestamp>2014-10-30 15:43:40</datestamp>
View gist:25c1e1721f507ef0136e
S: <wait for connection on TCP port 110>
C: <open connection>
S: +OK POP3 server ready <>
C: APOP mrose c4c9334bac560ecc979e58001b3e22fb
S: +OK mrose's maildrop has 2 messages (320 octets)
S: +OK 2 320
S: +OK 2 messages (320 octets)
S: 1 120
duncan-bayne / gist:9daa251ab5a507b3099d
Created Apr 21, 2015
Open letter to Spotify re. Accessibility
View gist:9daa251ab5a507b3099d
I'm writing to let you know that the Spotify client for OSX (and possibly
other OSs too) is inaccessible to people who are blind and otherwise disabled.
Several people, myself included, have raised this issue in an attempt to
have it fixed but we've been consistently ignored by Spotify staff.
View gist:cfb0bb727111373f69eb
➜ uhoh tree
├── foo
│   └── bar
│   └── baz
│   └── qux
└── -rf
3 directories, 2 files
➜ uhoh rm *
duncan-bayne / xlsx-snippet.xml
Created Sep 3, 2015
Rounding issue in XLSX date cells
View xlsx-snippet.xml
<row r="1" customFormat="false" ht="12.8" hidden="false" customHeight="false" outlineLevel="0" collapsed="false">
<c r="A1" s="1" t="n">
<row r="2" customFormat="false" ht="12.8" hidden="false" customHeight="false" outlineLevel="0" collapsed="false">
<c r="A2" s="1" t="n">
duncan-bayne / development.rb
Created Sep 26, 2012
Development configuration
View development.rb
Atlas::Application.configure do
config.cache_classes = false
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.active_support.deprecation = :log
config.action_dispatch.best_standards_support = :builtin
config.active_record.mass_assignment_sanitizer = :strict
config.active_record.auto_explain_threshold_in_seconds = 0.5
config.assets.compress = false
View No More Giphy™.user.js
// ==UserScript==
// @name No More Giphy™
// @namespace
// @description Hides all Slack messages from /giphy
// @include /https:\/\/.*\.slack\.com\/messages\/.*/
// @version 2
// @grant GM_log
// @require
// @require
// ==/UserScript==