Skip to content

Instantly share code, notes, and snippets.

View gabriellett's full-sized avatar
🍠

Gabriel Lett Viviani gabriellett

🍠
View GitHub Profile
change_user() {
current=${PWD##*/}
user=$1
git remote set-url origin "https://$user@bitbucket.org/bionexo/$current.git"
cp ~/git_credentials/$1 ~/.gitconfig
}
@gabriellett
gabriellett / cfn-template-dump.rb
Last active April 11, 2016 11:34
AWS CloudFormation Template dumper
# This script will look for cloudformation stacks on your account and download all the templates for you!
# Author: Gabriel Lett Viviani <http://github.com/gabriellett>
# Make sure you have aws-cli installed and configured on your machine,.
require 'json'
require 'optparse'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: cfn-template-dump.rb [options]"
alias ll='ls -lG'
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export M2_HOME=/Applications/apache-maven-3.1.1
export PATH=$PATH:$M2_HOME/bin
alias ll='ls -laG'
alias mvnci='mvn clean install -o'
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# using color
@gabriellett
gabriellett / .vimrc
Last active August 29, 2015 13:57
.vimrc
set t_Co=256
set nocompatible " Must come first because it changes other options.
silent! call pathogen#runtime_append_all_bundles()
syntax on " Turn on syntax highlighting.
filetype plugin indent on " Turn on file type detection.
runtime macros/matchit.vim " Load the matchit plugin.
@gabriellett
gabriellett / bootstrap-stateful-button.js
Last active December 29, 2015 10:19
Statefull bootstrap button
/*
Author: Gabriel Lett Viviani
Date: 26/11/2013
Email: lett.de@gmail.com
Buttons must have the data-class-active attribute, set it to the
class that you want added when the element is active. The class
'active' will be always added
Button groups must have the data-active-type set to radio if you
; put data in RAM
MOV 30H, #'0'
MOV 31H, #'1'
MOV 33H, #'2'
MOV 34H, #'3'
MOV 35H, #'4'
MOV 36H, #'5'
MOV 37H, #'6'
MOV 38H, #'7'
MOV 39H, #'8'
<!-- Define the Sonar project properties -->
<property name="sonar.projectKey" value="com.bionexo:Lib" />
<property name="sonar.projectName" value="[Project Name]" />
<property name="sonar.projectVersion" value="[Project Version]" />
<property name="sonar.language" value="java" />
<property name="sonar.sources" value="src" />
<property name="sonar.binaries" value="deploy" />
<!-- Define the Sonar target -->
<target name="sonar">
@gabriellett
gabriellett / Ant debug ready.xml
Last active December 16, 2015 06:19
Ant target configured for debugging.
<target name="compile" depends="">
<javac srcdir="gensrc" destdir="bin">
<classpath refid="compile.classpath"/>
</javac>
<javac srcdir="src" destdir="bin" debug="true" debuglevel="lines,vars" encoding="UTF-8">
<classpath refid="[pathid]"/>
</javac>
</target>