Skip to content

Instantly share code, notes, and snippets.


Guilherme J. Tramontina gtramontina

View GitHub Profile
View watches.js
(function () {
var head = document.getElementsByTagName('head')[0];
var styles = document.createElement('style');
styles.innerHTML = `
[data-watchers]:hover {
outline: 1px dotted black;
[data-watchers]:hover:before {
content: attr(data-watchers);

Keybase proof

I hereby claim:

  • I am gtramontina on github.
  • I am gtramontina ( on keybase.
  • I have a public key whose fingerprint is 4D7C 2D7B 0C49 EEF7 0455 DE04 7655 A276 F38C 7CF9

To claim this, I am signing this object:

gtramontina / dockerize
Last active Aug 29, 2015
Given a git repository with a `Dockerfile`, this runs the given command within the container in the context of your repository.
View dockerize
#!/usr/bin/env bash -e
if [[ -z "$1" ]]
echo "Please specify a command to run inside the container."
exit 1
IMAGE=`git rev-parse HEAD`
View mac-functions
brew_cask_install() {
if ! brew_cask_is_installed "$1"; then
brew cask install "$@"
brew_cask_is_installed() {
local NAME=$(brew_cask_expand_alias "$1")
brew cask list -1 | grep -Fqx "$NAME"
View homebrew
fancy_echo "Installing Homebrew Cask, so you don't drag'n'drop applications anymore…"
brew tap caskroom/cask
brew tap caskroom/versions
brew_install_or_upgrade 'brew-cask'
gtramontina / zsh
Created Sep 4, 2014
Install Prezto
View zsh
fancy_echo "Installing Prezto – Instantly Awesome Zsh…"
git_clone_or_pull '' "${ZDOTDIR:-$HOME}/.zprezto"
TMP_RC_FILE=$(mktemp -t rcfile); cat << EOF > $TMP_RC_FILE
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^; do
ln -f -s "\$rcfile" "\${ZDOTDIR:-$HOME}/.\${rcfile:t}"
rm -f $TMP_RC_FILE
zsh --rcs $TMP_RC_FILE
gtramontina / shared-functions
Created Sep 4, 2014
git_clone_or_pull '<remote_path>' '<local_repo_dir>'
View shared-functions
git_clone_or_pull() {
local REPOSRC=$1
local LOCALREPO=$2
if [ ! -d $LOCALREPO_VC_DIR ]; then
git clone --recursive $REPOSRC $LOCALREPO
git pull $REPOSRC && git submodule update --init --recursive
View setup
#!/bin/sh -e
curl -L | sh
exec $SHELL -l
ruby -e "$(curl -fsSL"
brew install caskroom/cask/brew-cask
brew tap jenv/jenv
brew update
View css.css
* { box-sizing: border-box; } /* IMO this should be the default box sizing. */
body {
font-family: 'Helvetica Neue';
font-size: 12px;
body > h1 {
text-transform: uppercase;
font-weight: 100;
View gist:1138877
[21:56] bentomas: that does make sense. this might be getting a bit over my head...
[22:10] JimBastard: is there an object-hash mapper for redis / node.js?
[22:12] keeto has joined the channel
[22:26] tfickett has joined the channel
[22:27] the_undefined has joined the channel
You can’t perform that action at this time.