Skip to content

Instantly share code, notes, and snippets.

View bergman's full-sized avatar

Joakim Bergman bergman

View GitHub Profile
#!/bin/bash
# Installs the XCode command line tools if you don't have them
xcode-select --install
# Installs brew if you don't have it
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Makes your account the owner of /usr/local, which is preferred on single user Macs
sudo chown -R `whoami` /usr/local
# Installs all the dependencies for building libtorrent and rtorrent
brew install automake libtool boost curl lzlib libsigc++ openssl pkg-config xmlrpc-c
# Uninstall libtorrent-rasterbar if you already have it
@riethmayer
riethmayer / mongo
Created January 20, 2010 01:00
Mongodb startup script
#!/usr/bin/env ruby -w
# mongo ;; 2010 (cc) Jan Riethmayer
# This work is licensend under a Creative Commons Attribution 3.0 license.
require 'optparse'
options = {}
optparse = OptionParser.new do|opts|
opts.banner = <<-BANNER
Usage: sudo ./mongo [options]