Skip to content

Instantly share code, notes, and snippets.

View henriquegogo's full-sized avatar

Henrique Gogó henriquegogo

View GitHub Profile
@henriquegogo
henriquegogo / ctags-rails.sh
Created August 14, 2012 01:22
CTags para projetos que utilizam Rails
ctags -f $(git rev-parse --show-toplevel)/tags -R $(bundle show --paths) $(git rev-parse --show-toplevel)
@henriquegogo
henriquegogo / smooth_criminal_new_chords.mkd
Created June 3, 2012 06:27
New chords arrangement for acoustic guitar to the Michael Jackson's song "Smooth Criminal"

Smooth Criminal

Arrangement by Henrique Gogó

Intro

| Gm7 F#° | A° Gm7 |

Begin

| Gm7 A°5+ | Bb46(11) C469 | Gm7 F#° | Bb469 A° (D7) |

@henriquegogo
henriquegogo / install-ruby-on-rvm.sh
Created May 21, 2012 11:47
Install ruby on rvm in OSX Lion and XCode on gcc LLVM based
rvm install ruby-1.9.3 --with-gcc=clang
@henriquegogo
henriquegogo / autocomplete-console.py
Created March 7, 2012 23:42
Autocomplete on python console
import readline, rlcompleter
readline.parse_and_bind("tab: complete")
@henriquegogo
henriquegogo / gist:1952327
Created March 1, 2012 19:04
Create and checkout remote branch
git checkout -b BRANCH_NAME origin/BRANCH_NAME
@henriquegogo
henriquegogo / removegems.sh
Created January 25, 2012 12:22
Remove all gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
@henriquegogo
henriquegogo / .gitconfig
Last active June 5, 2017 19:58
Configuração de git log colorida
[alias]
lg = log --format='%Cred%h %Creset%s (%Cgreen%an%Creset) - %Cblue%cr' --graph
@henriquegogo
henriquegogo / getSetter.js
Created November 15, 2011 02:57
Get and Set with JavaScript
var o = {
set item (str) {
return this.log[this.log.length] = str;
},
get item () {
if (this.log.length > 0) {
return this.log[this.log.length - 1];
}
else {
return null;
@henriquegogo
henriquegogo / install.sh
Created October 13, 2011 12:29
Install deb package without recommends
sudo apt-get --no-install-recommends PACKAGE
@henriquegogo
henriquegogo / removeBars.sh
Created October 4, 2011 13:48
VirtualBox customs
VBoxManage setextradata global GUI/Customizations noMenuBar,noStatusBar