Skip to content

Instantly share code, notes, and snippets.


Guilherme J. Tramontina gtramontina

View GitHub Profile
lopezjurip / 00000000000000_enable_uuid.rb
Created Jul 19, 2016
Rails 5 w/ Postgres: Use UUID instead of a numeric ID as primary keys
View 00000000000000_enable_uuid.rb
# db/migrate/00000000000000_enable_uuid.rb
class EnableUuid < ActiveRecord::Migration[5.0]
def change
execute 'create extension "uuid-ossp"'
enable_extension 'uuid-ossp'
a0s / brew-cask-cleanup.rb
Last active Nov 5, 2019
Clean (move to trash) old brew cask versions
View brew-cask-cleanup.rb
# Requirements:
# brew install trash
casks_path = '/opt/homebrew-cask/Caskroom'
class Version < Array
def initialize s
super(s.split('.').map { |e| e.to_i })
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
You can’t perform that action at this time.