Skip to content

Instantly share code, notes, and snippets.

View jasonrudolph's full-sized avatar

Jason Rudolph jasonrudolph

View GitHub Profile
@lenary
lenary / gitconfig.ini
Created February 18, 2011 01:21
a special excerpt of my gitconfig
$ git clone github:lenary/guides.git
Cloning into guides...
remote: Counting objects: 255, done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 255 (delta 111), reused 163 (delta 35)
Receiving objects: 100% (255/255), 1.49 MiB | 564 KiB/s, done.
Resolving deltas: 100% (111/111), done.
$ cd guides
$ git remote -v
@RobertAudi
RobertAudi / osascript_shebang.sh
Created June 30, 2010 03:56
AppleScript shebang
#!/usr/bin/osascript
@jasonrudolph
jasonrudolph / 00-about.md
Created September 21, 2012 18:42
Rough Notes from Strange Loop 2012
@tavisrudd
tavisrudd / kinesis.txt
Created March 2, 2013 18:10
A partial list of the Kinesis Advantage / Controllermate / Emacs keybinding tweaks I've done.
Remapped on kinesis itself
--------------------------------------------------------------------------------
caps lock -> backspace (freq use)
backspace -> right gui/windows (freq use)
left alt -> return/enter (very infreq use)
right ctrl -> return/enter (freq use)
right gui/windows -> left gui
enter -> right gui (infreq use)
keywords = {
["date"] = function() return os.date("%B %d, %Y") end,
["name"] = "my name is MISTER",
}
expander = hs.hotkey.bind({"alt"}, "d", nil, function() -- don't start watching until the keyUp -- don't want to capture an "extra" key at the begining
local what = ""
local keyMap = require"hs.keycodes".map -- shorthand... in a formal implementation, I'd do the same for all `hs.XXX` references, but that's me
local keyWatcher
keyWatcher = hs.eventtap.new({ hs.eventtap.event.types.keyUp, hs.eventtap.event.types.keyDown }, function(ev)
@pengwynn
pengwynn / git-contributors.sh
Created July 24, 2013 20:09
Git contributors example
$ git clone https://github.com/twitter/bootstrap
...
$ cd bootstrap
$ git --no-pager shortlog -s -n
2153 Mark Otto
781 Jacob Thornton
65 fat
30 Pete Hopkins
@jdpace
jdpace / api_example.rb
Created April 22, 2011 13:08
Collector API Example
class AbstractActivityCollector
def run
activities.each do |activity|
persist_activity(activity)
end
end
# To be implemented by subclasses
#
# Returns an array pending activities.
require 'capistrano/recipes/deploy/strategy/remote_cache'
module Capistrano
module Deploy
module Strategy
# Implements the deployment strategy that keeps a cached checkout of
# the source code on each remote server. Each deploy simply updates the
# cached checkout, and then does a copy from the cached copy to the
# final deployment location.