Skip to content

Instantly share code, notes, and snippets.

@prognostikos
prognostikos / mt.rb
Created May 28, 2012 20:23 — forked from alanq/mt.rb
DCI in ruby without injection - MoneyTransfer example
-----------------------------------------
Boilerplate code (in rails_app_root/lib)
-----------------------------------------
module ContextAccessor
def context
Thread.current[:context]
end
end
@prognostikos
prognostikos / hack.sh
Created April 1, 2012 07:49 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#