Skip to content

Instantly share code, notes, and snippets.

View therubymug's full-sized avatar

Rogelio J. Samour therubymug

  • Portland, Oregon
View GitHub Profile

Keybase proof

I hereby claim:

  • I am therubymug on github.
  • I am therubymug (https://keybase.io/therubymug) on keybase.
  • I have a public key whose fingerprint is 3E59 537F CBE8 00E5 7F61 BE79 DCFF 7C07 7A4A 4E89

To claim this, I am signing this object:

" Simple Ctrl-c mapping for # commenting in vim
" # comments # Brought to you by the_mug
:nmap <C-c> <ESC>^I#<ESC>
:imap <C-c> <ESC>^I#
if (has('gui_running'))
set guifont=Monaco:h16
set guioptions-=T
set columns=120
set lines=70
set number
colorscheme vividchalk
endif
set ts=2
def path_to(page_name)
case page_name
when 'the homepage'
root_path
when /^the ([\w ]+) page$/
send("#{$1.gsub(/\W+/, '_')}_path")
end
end
iabbrev rde require 'ruby-debug'; Debugger.start; debugger
nnoremap <silent> <C-K> :%s/\s\+$//e<CR><C-K>
export PS1='\[\033[1;37m\]\h\[\033[1;31m\]:\[\e[1;33m\]\W\[\e[m\]$(git_prompt_info "(%s)")$ '
@therubymug
therubymug / the_install.sh
Created November 5, 2011 18:48
Ruby development environment for OS X (Lion)
#!/usr/bin/env sh
# Title: Ruby development environment for OS X (Lion)
# Author: Rogelio J. Samour
# Warning:
# While it is unlikely any code below might damage your system,
# it’s always a good idea to back up everything that matters to you
# before running this script! Just in case. I am not responsible for
# anything that may result from running this script. Proceed at
# your own risk.