Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / MountainLion-Ruby
Created January 9, 2013 04:11
How to install ruby 1.8.7 on Mountain Lion
Following these instructions got me closer:
http://rors.org/2011/10/25/compiling-ruby-on-a-fresh-lion-install
Really it needed:
# brew install readline
# brew install apple-gcc42
Finally point to readline, and disable tcl/tk
@nebiros
nebiros / Gemfile
Created May 23, 2012 15:58
rails + unicorn + rbenv + init.d daemon
group :production do
gem "unicorn"
end
@tobiash
tobiash / categorypages.plugin.coffee
Created May 17, 2012 16:44
Dynamically generate pages for Docpad (from categories)
path = require 'path'
fs = require 'fs'
balUtil = require 'bal-util'
Backbone = require 'backbone'
module.exports = (BasePlugin) ->
class Category extends Backbone.Model
constructor: ->
@jpfuentes2
jpfuentes2 / rbenv-install-system-wide.sh
Created March 8, 2012 19:47
CentOS: rbenv install and system wide install
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core
@seanlilmateus
seanlilmateus / gist:1536136
Created December 29, 2011 20:51
macruby core animation Fireworks, have a nice macruby new year
#!/usr/local/bin/macruby
framework 'Cocoa'
framework 'QuartzCore'
framework 'CoreGraphics' # Mountain Lion Update
class FireworkDelegate
attr_accessor :window
def initWithURL(url)
case url