Skip to content

Instantly share code, notes, and snippets.

View gtramontina's full-sized avatar

Guilherme J. Tramontina gtramontina

View GitHub Profile
$border-radius = 25px
@keyframes movingBorder
from
border-top-left-radius $border-radius
border-top-right-radius 0
border-bottom-right-radius $border-radius
border-bottom-left-radius 0
50%
border-top-left-radius 0
border-top-right-radius $border-radius
@gtramontina
gtramontina / keybase.md
Created April 13, 2015 20:23
keybase.md

Keybase proof

I hereby claim:

  • I am gtramontina on github.
  • I am gtramontina (https://keybase.io/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
gtramontina / dockerize
Last active August 29, 2015 14:18
Given a git repository with a `Dockerfile`, this runs the given command within the container in the context of your repository.
#!/usr/bin/env bash -e
if [[ -z "$1" ]]
then
echo "Please specify a command to run inside the container."
exit 1
fi
COMMAND=$1
IMAGE=`git rev-parse HEAD`
@gtramontina
gtramontina / homebrew
Created September 4, 2014 06:57
brew cask
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
gtramontina / zsh
Created September 4, 2014 06:52
Install Prezto
fancy_echo "Installing Prezto – Instantly Awesome Zsh…"
git_clone_or_pull 'https://github.com/sorin-ionescu/prezto.git' "${ZDOTDIR:-$HOME}/.zprezto"
TMP_RC_FILE=$(mktemp -t rcfile); cat << EOF > $TMP_RC_FILE
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -f -s "\$rcfile" "\${ZDOTDIR:-$HOME}/.\${rcfile:t}"
done
rm -f $TMP_RC_FILE
EOF
zsh --rcs $TMP_RC_FILE
@gtramontina
gtramontina / shared-functions
Created September 4, 2014 06:50
git_clone_or_pull '<remote_path>' '<local_repo_dir>'
git_clone_or_pull() {
local REPOSRC=$1
local LOCALREPO=$2
local LOCALREPO_VC_DIR=$LOCALREPO/.git
if [ ! -d $LOCALREPO_VC_DIR ]; then
git clone --recursive $REPOSRC $LOCALREPO
else
pushd $LOCALREPO
git pull $REPOSRC && git submodule update --init --recursive
popd
#!/bin/sh -e
curl -L http://install.ohmyz.sh | sh
exec $SHELL -l
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install caskroom/cask/brew-cask
brew tap jenv/jenv
brew update