Skip to content

Instantly share code, notes, and snippets.

View Bgouveia's full-sized avatar

bruno gouveia Bgouveia

  • aiqfome
  • Brasil, São Paulo - SP
View GitHub Profile
anonymous
anonymous / branch on bashrc
Created June 18, 2012 14:56
branch on bashrc
# git branchs
function find_git_branch {
local dir=. head
until [ "$dir" -ef / ]; do
if [ -f "$dir/.git/HEAD" ]; then
head=$(< "$dir/.git/HEAD")
if [[ $head == ref:\ refs/heads/* ]]; then
git_branch=" (${head#*/*/})"
elif [[ $head != '' ]]; then
git_branch=' (detached)'
@mjcoffeeholick
mjcoffeeholick / dabblet.css
Created October 18, 2012 13:57
alerta biblioteca FecomercioSP
/**
* alerta biblioteca FecomercioSP
*/
#box-alerta-sucesso{
background: #cefdae;
border: 1px solid #61c81a;
width: 540px;
font-family:'arial';
text-align: center;
padding:10px 20px 20px 20px;
@itsderek23
itsderek23 / Dockerfile
Created August 27, 2013 02:09
Example Docker File to start a Rails app located in a local ./docker-rails directory.
# docker build -t="rails" .
FROM ubuntu:12.04
RUN apt-get update
## MYSQL
RUN apt-get install -y -q mysql-client libmysqlclient-dev
## RUBY