Skip to content

Instantly share code, notes, and snippets.

Hélio Costa e Silva hlegius

Block or report user

Report or block hlegius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lelandbatey /
Last active Dec 13, 2019
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


qrush / gist:5301799
Created Apr 3, 2013
spring clean your git repos!
View gist:5301799
# remove any bad refs
git remote prune origin
# pipe into bash and auto-delete any branches that have been merged into master!
git log master --pretty=format:'%d' | grep '^ (origin' | tr -d ' ()' | sed 's/origin\//git push origin :/'
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
brookr / gist:2493622
Created Apr 25, 2012 — forked from derekharmel/gist:2399684
How to fix pow not using the correct gemset
View gist:2493622
# From the project root
rvm env -- `rvm current` >> .powenv
msabramo / git_prompt_info.zsh
Created Apr 11, 2012
The slowness of my zsh prompt when in a git-svn managed directory was killing me. I improved it by removing the git status stuff that slows it down...
View git_prompt_info.zsh
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
coreyhaines / .rspec
Last active Sep 4, 2019
Active Record Spec Helper - Loading just active record
View .rspec
-I app
huffman / elixir.rb
Created Mar 2, 2012
Elixir Homebrew recipe
View elixir.rb
# Install this recipe with:
# brew install --HEAD
require 'formula'
class Elixir < Formula
homepage ''
head ''
depends_on 'erlang'
jimbojsb / gist:1630790
Created Jan 18, 2012
Code highlighting for Keynote presentations
View gist:1630790

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

jodosha / adapter_test.rb
Last active Aug 11, 2019
MiniTest shared examples
View adapter_test.rb
require 'test_helper'
shared_examples_for 'An Adapter' do
describe '#read' do
before do
@adapter.write(@key = 'whiskey', @value = "Jameson's")
it 'reads a given key' do
btbytes /
Created Dec 25, 2011
Bash script to convert all the .MOV files in the current directory to "Universal Apple".MP4 format using ffmpeg
# Script to convert all the .MOV files in the current
# directory to "Universal Apple".MP4 format
# Tested on Src:Canon S95 -> Destn: iPad2 using ffmpeg installed
# via homebrew: brew install ffpmeg --use-gcc
# Pradeep Gowda <>
# 2011-12-25
# License: Public Domain or GPLv3
You can’t perform that action at this time.