Skip to content

Instantly share code, notes, and snippets.

View alextrastero's full-sized avatar

alextrastero alextrastero

View GitHub Profile
@alextrastero
alextrastero / high_sierra_git_passphrase_fix.md
Created March 8, 2018 10:17
Fix High Sierra git passphrase

Add this to ~/.ssh/config

  Host *
    UseKeychain yes

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

@alextrastero
alextrastero / keyboard_repeat_rate.md
Last active March 6, 2018 16:31
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
@alextrastero
alextrastero / prune_local_branches.md
Created March 6, 2018 16:29
Remove all local branches except MASTER

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

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