Skip to content

Instantly share code, notes, and snippets.

@alexnj
alexnj / tmux-compile-prefix-opt.sh
Created March 5, 2014 17:20
Compile tmux from source with /opt prefix
#!/bin/bash
# tmux will be installed in /opt/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.9
@gshutler
gshutler / update-rbenv-rubygems.sh
Created June 9, 2015 14:24
Update Rubygems for all rbenv rubies
#! /usr/bin/env bash
set -e
eval "$(rbenv init -)"
for version in `rbenv whence gem`; do
rbenv shell "$version"
echo "Updating rubygems for $version"
gem update --system --no-document --quiet