Skip to content

Instantly share code, notes, and snippets.


Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
alextrastero /
Created Mar 6, 2018
Remove all local branches except MASTER

git branch | grep -v "master" | xargs git branch -D

alextrastero /
Last active Mar 6, 2018
Increase keyboard repeat rate mac

First one is repeat rate and the second one is the delay before start repeating

defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 20

Add this to ~/.ssh/config

  Host *
    UseKeychain yes

You will still need to enter your password once more, make sure to source your shell

You can’t perform that action at this time.