Skip to content

Instantly share code, notes, and snippets.

Rogelio J. Samour therubymug

Block or report user

Report or block therubymug

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
View keybase.md

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:

View gist:3074109
export PS1='\[\033[1;37m\]\h\[\033[1;31m\]:\[\e[1;33m\]\W\[\e[m\]$(git_prompt_info "(%s)")$ '
View gist:1819407
iabbrev rde require 'ruby-debug'; Debugger.start; debugger
nnoremap <silent> <C-K> :%s/\s\+$//e<CR><C-K>
@therubymug
therubymug / the_install.sh
Created Nov 5, 2011
Ruby development environment for OS X (Lion)
View the_install.sh
#!/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.
View gist:572648
def path_to(page_name)
case page_name
when 'the homepage'
root_path
when /^the ([\w ]+) page$/
send("#{$1.gsub(/\W+/, '_')}_path")
end
end
View .vimrc.local
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
View gist:18916
" 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#
You can’t perform that action at this time.