Skip to content

Instantly share code, notes, and snippets.

View warantesbr's full-sized avatar

Willian Arantes warantesbr

View GitHub Profile
@warantesbr
warantesbr / .git_aliases
Last active January 9, 2020 18:42 — forked from rappleg/.git_aliases
Git Aliases
alias vig='vi $HOME/scripts/bash/.git_aliases'
# GIT aliases
alias st='git status --short'
alias rb='git rebase -p'
alias rbi='git rebase -p --interactive'
alias rbm='git rebase -p master'
alias gcp='git cherry-pick'
alias stash='git stash'
alias pop='git stash pop'
@warantesbr
warantesbr / config.el
Created July 13, 2016 19:18 — forked from pao/config.el
One of my config.el files...
(setq w32-get-true-file-attributes nil)
(add-to-list 'load-path
(concat user-emacs-directory
(convert-standard-filename "personal/modules")))
(prelude-require-packages
'(nyan-mode
ag
clang-format
@warantesbr
warantesbr / keybase.md
Last active April 6, 2016 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am warantesbr on github.
  • I am warantesbr (https://keybase.io/warantesbr) on keybase.
  • I have a public key ASAPJNzU0XUaAXW_psM8dvAus5Gx6xR2u-kBG8m0qyjRjQo

To claim this, I am signing this object:

@warantesbr
warantesbr / 1.emr-etl-runner.sh
Last active February 11, 2016 21:37
Snowplow Storage Loader Files
#!/bin/bash
/vagrant/4-storage/storage-loader/deploy/snowplow-storage-loader -c /vagrant/0-config/snowplow-storage-loader.yml
@warantesbr
warantesbr / resque.rake
Created November 6, 2015 06:00 — forked from ewherrmann/resque.rake
Collection of Resque related custom rake tasks from around the web
require 'resque/tasks'
namespace :resque do
def del(key)
Resque.redis.keys(key).each { |k| Resque.redis.del(k) }
end
desc "Resque setup according to installation guide"
task :setup => :environment
@warantesbr
warantesbr / install_gnu_utilities.sh
Created July 21, 2015 18:55
Replace Mac OS X utilities with GNU core utilities
brew install coreutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
# Install specific version of Homebrew formula
# usage example:
# $ brew-install ssh-copy-id 6.0p1
function brew-install {
local formula version formula_hash
formula=$1
version=$2
cd `brew --prefix`
git_last_commit_id=`git rev-parse --short HEAD`
@warantesbr
warantesbr / ps_mem.py
Created July 20, 2014 03:48
Memory usage by process and services.
#!/usr/bin/env python
# Try to determine how much RAM is currently being used per program.
# Note per _program_, not per process. So for example this script
# will report RAM used by all httpd process together. In detail it reports:
# sum(private RAM for program processes) + sum(Shared RAM for program processes)
# The shared RAM is problematic to calculate, and this script automatically
# selects the most accurate method available for your kernel.
# Licence: LGPLv2
'use strict';
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// configurable paths
var paths = {