Skip to content
sed -i "/ruby '2.2.2'/ s/^/#/" Gemfile
"$@" || result=$?
git checkout -- Gemfile
exit $result

Keybase proof

I hereby claim:

  • I am mpapis on github.
  • I am mpapis ( on keybase.
  • I have a public key whose fingerprint is 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3

To claim this, I am signing this object:

View after_use_textmate
#!/usr/bin/env bash
# Automatically sets the wrappers for textmate's use
# Based on article posted:
# Set up the TM_RUBY shell variable as described and remove the Builder as described and restart TextMate
# Make this script executable and you should be good to go! TextMate will stay in sync with rvm, which
# generally means the last project folder you switched into from terminal shell.
if [[ $TM_WRAPPING != "1" ]]; then
View 45252.diff
--- a/ext/readline/readline.c (revision 45251)
+++ b/ext/readline/readline.c (revision 45252)
@@ -1883,7 +1883,7 @@
rl_attempted_completion_function = readline_attempted_completion_function;
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
View take_n.rb
puts "2.10.3".split(".")[0..1].join(".")
View bad.rb
apply_event :transfer_sent, :target_account_uid => target,
:amount => amount,
:new_balance => new_balance.amount,
:account_uid => uid
View template.rb
require "rvm/with"
Bundler.with_clean_env do
RVM.with "in ." do |r|
puts r.execute "bundle install"
puts r.execute "rake db:create db:migrate db:setup"
typeset __developer_update
# continue if already using some xcode
xcode-select -p >/dev/null 2>&1 && return 0 || true
# trick the update to think user opened the dialog
touch /tmp/
# find pending update
softwareupdate -l 2>/dev/null |
View sudoers
nick ALL=NOPASSWD:/sbin/start foo,/sbin/stop foo,/sbin restart foo,/sbin/service foo start,/sbin/service foo stop,/sbin/service foo restart,/home/nick/.rvm/wrappers/foo/foreman
Something went wrong with that request. Please try again.