View keybase.md

Keybase proof

I hereby claim:

  • I am cobyism on github.
  • I am cobyism (https://keybase.io/cobyism) on keybase.
  • I have a public key ASC_DegBn7CbCydRF-0Y8Fk9Vnu_A_OGt1kQqI4Q0B0_2Qo

To claim this, I am signing this object:

View dr-joan-chapple-nzherald-excerpt.md

Thinking outside the square (Joan Chapple)

Excerpt from: http://www.nzherald.co.nz/lifestyle/news/article.cfm?c_id=6&objectid=10517894
Author: Sarah Lang, for NZ Herald.
Originally published Monday Jun 23, 2008

Next door to Masson in a dark, decidedly-more-rudimentary house, Dr Joan Chapple sits, scanning the newspaper. Chapple's initial claim to consequence is as New Zealand's first hand surgeon and first female plastic surgeon. But at 78, with deep creases around her eyes, she couldn't be much more removed from the botoxed nip and tuck mercenaries.

View digital-ocean-swap.sh
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
swapon -s
free -m
View jsmap2coffee.rb
#!/usr/bin/env ruby
require "json"
require "fileutils"
# Find all *.js.map files in current directory
files = Dir["./**/*.js.map"]
# Parse out the JSON
mapfiles = files.map { |f| JSON.parse File.read(f) }
View dslchecker.rb
require 'rubygems'
require 'nokogiri'
require "net/http"
require "uri"
class DSLChecker
def check_phone_number(number)
params = { "TelNo" => number }
endpoint = URI.parse("http://www.dslchecker.bt.com/adsl/ADSLChecker.TelephoneNumberOutput")
response = Net::HTTP.post_form(endpoint, params)
View memory-bar.coffee
command: "memory_pressure && sysctl -a | grep memsize"
refreshFrequency: 2000
style: """
// Change bar height
bar-height = 6px
// Align contents left or right
widget-align = left
View cask-finder.rb
#!/usr/bin/env ruby
exact_matches = {}
partial_matches = {}
no_matches = []
puts "Searching /Applications for things that exist in cask…"
Dir.glob('/Applications/*.app').each do |app|
app_name = File.basename(app)
search_term = File.basename(app, ".*").downcase.split(/\s/)[0]
View toast.rb
#! /usr/bin/env ruby
require 'octokit'
require 'awesome_print'
require 'open-uri'
client = Octokit::Client.new(:login => ENV['GHUSER'], :oauth_token => ENV['GHTOKEN'])
repo = 'example/repo'
Dir.mkdir('build') if !File.exists?('build')
View remoteme.coffee
# make this URL an endpoint that returns something like the users.json file in this gist.
baseUrl = ""
robot.respond /remote me/i, (msg) ->
if Math.random() < 0.01
msg.send "https://f.cloud.github.com/assets/1476/552951/f1a15572-c370-11e2-8ddd-db568c36d27a.jpg"
return
msg.finish()
msg.http(baseUrl)
.headers(headers)
View gh-gmail-label-script.js
var my_teams = ["@github/css", "@github/design"] // Add any teams you want autodetected to this list
var base_label = ["GitHub"]
var my_teams_regex = new RegExp('(' + my_teams.join('|') + ')')
function GitHubThread(thread) {
this._thread = thread
// Determine why we got this message and label the thread accordingly.
//