Skip to content

Instantly share code, notes, and snippets.

Tom Kersten tomkersten

Block or report user

Report or block tomkersten

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomkersten on github.
  • I am tomkersten ( on keybase.
  • I have a public key whose fingerprint is DA11 D702 B2C4 822B BBC4 33CE CBE8 A014 62E9 51ED

To claim this, I am signing this object:

tomkersten / orig.json
Last active Aug 29, 2015
JS Object -> UBER
View orig.json
'identifier': '3220l',
'name': 'Deck chair',
'tidbit': 'You sit on it'
'description': '1-2 sentences of descriptive text. Right here.'
'specification': '[...a really long chunk of structured text...]'
'related_products': [
id: 'c7028k',


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


tomkersten / gist:4978810
Created Feb 18, 2013
Hubot script for "agreed", "I agree", or "+1" in room
View gist:4978810
# Description:
# "I agree" gifs
# Dependencies:
# None
# Configuration:
# None
# Commands:
View phone_searcher.rb
#!/usr/bin/env ruby
# Do this:
# gem install httparty nokogiri
# Then run this file...
require 'httparty'
require 'nokogiri'
View Gemfile
source ''
gem 'rails', '~> 3.2'
gem 'haml'
gem 'jquery-rails'
gem 'puma'
gem 'devise'
gem 'person-name', require: 'person-name', git: ''
tomkersten / .aliases
Created Oct 31, 2012
Auto-associated ticket number with commit based on branch name
View .aliases
# If you have a branch named "tSOME_NUMBER" (eg: 't332'), this will open that
# ticket in a web browser for review.
# eg:
# $ git co t332
# $ review
# ...browser opens to ticket #332 page
# replace SOME_URL with the URL up-to the ticket number in your issue/ticket-management system
# eg: ""
tomkersten / gist:3948758
Created Oct 24, 2012
Maintaing GEM_HOME with rbenv + omg
View gist:3948758
# Trying to use
# When I run "omg sample" and install a gem (via "gem install" or "bundle install"), it
# is still going into the "global" directory though.
# I may be doing something wrong, but, it seems like GEM_HOME is not being maintained
# in rbenv's shim commands.
# What am I doing wrong?
tomkersten / custom_vlad_tasks.rake
Created Mar 1, 2012
Vlad(/rake) task to let you know what you'd be deploying if you were to do so now...(based off your repo's 'origin' server master branch)
View custom_vlad_tasks.rake
namespace :deploy do
desc "Show which commits would be deployed right now"
remote_task :what do
print "(Locally) Fetching current state of origin..."
`git fetch origin`
origin_master_head = `cat .git/refs/remotes/origin/master`.chomp
origin_head_details = `git log #{origin_master_head} --pretty=oneline -n 1`
puts origin_master_head
print "Current commit on server is..."
You can’t perform that action at this time.