Skip to content

Instantly share code, notes, and snippets.

@bluemont
bluemont / catch_exception.rb
Created August 6, 2012 02:24 — forked from vhyza/catch_exception.rb
Removed require 'cgi' to avoid segmentation fault
# encoding: utf-8
STDOUT.sync = true
STDERR.sync = true
require 'pathname'
at_exit do
if (e = $!) && !e.instance_of?(SystemExit)
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape"
@bluemont
bluemont / README.markdown
Created July 19, 2012 18:02 — forked from tsnow/README.markdown
How to compile GitX

How to compile Gitx:

  1. Open GitX.xcodeproj in XCode.
  2. Switch scheme from cli-tool to GitX.
  3. Press ⇧⌘R (shortcut for: Product > Build For > Running).
  4. Press ⇧⌘2 to open the Organizer.
  5. Open the DerivedData folder shown in the Organizer window. (For example: ~/Library/Developer/Xcode/DerivedData/GitX-fpvndnywvssxinenuifhoszinvmk)
  6. Run the GitX.app located in {FOLDER}/Build/Products/Debug/GitX.app
@bluemont
bluemont / redis.markdown
Created July 13, 2012 22:44 — forked from bdotdub/redis.markdown
Running redis using upstart on Ubuntu

Running redis using upstart on Ubuntu

I've been trying to understand how to setup systems from the ground up on Ubuntu. I just installed redis onto the box and here's how I did it and some things to look out for.

To install:

@bluemont
bluemont / chef_solo_bootstrap.sh
Created June 30, 2012 06:08 — forked from ijonas/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y upgrade
# a reboot after is often a good idea
sudo apt-get -y install build-essential libffi-dev libgdbm-dev libreadline6-dev libssl-dev libxml2 libxml2-dev libxslt-dev libyaml-dev ncurses-dev zlib1g zlib1g-dev
RUBY_VERSION="1.9.3-p194"
mkdir ~/src
cd ~/src