Skip to content

Instantly share code, notes, and snippets.

View gabrielgodoy-zz's full-sized avatar

Gabriel Godoy gabrielgodoy-zz

View GitHub Profile
@gabrielgodoy-zz
gabrielgodoy-zz / config.rb
Last active August 29, 2015 14:00 — forked from nathansmith/config.rb
config.rb with verbose
# Require any additional compass plugins here.
# The starting contents for config.rb
# Set this to the root of your project when deployed:
http_path = "../"
css_dir = "css" # Set this to the directory of your current css files:
sass_dir = "scss"
images_dir = "images" # Set this to the directory of your current images files:
javascripts_dir = "js" # Set this to the directory of your current JavaScript files:
sass --compass --watch scss/style.scss:css/style.css --style compressed
ol {
list-style-type: none;
list-style-type: decimal !ie; /*IE 7- hack*/
margin: 0;
margin-left: 3em;
padding: 0;
counter-reset: li-counter;
}
$(document).ready(function(){
$("#box").on('scroll', function(){
$(this).css('top',($(document).scrollTop()) + 20);
});
});
<input type="text" onfocus="if(this.value === 'Value') { this.value = ''; }" onblur="if(this.value === '') { this.value = 'Value'; }" value="Value" name=""
@gabrielgodoy-zz
gabrielgodoy-zz / iterm2.md
Last active April 7, 2016 23:42
shell-iterm2Cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@gabrielgodoy-zz
gabrielgodoy-zz / shell-removeTags.sh
Last active December 19, 2016 23:57
Delete all tags from repositories
for t in `git tag`
do
git push origin :$t
git tag -d $t
done
@gabrielgodoy-zz
gabrielgodoy-zz / change-author.sh
Last active April 10, 2016 06:01
Git - Change author email in all commits
git filter-branch --env-filter 'if [ “$GIT_AUTHOR_EMAIL” = “[CURRENT_EMAIL]” ]; then GIT_AUTHOR_EMAIL=[NEW_EMAIL]; GIT_AUTHOR_NAME=“[NEW_NAME]”; GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all
#!/bin/sh
#
# Brew packages that I use alot.
#
brew install wget
brew install node
brew install imagemagick
#
# Some cask packages that I like.
#