- Install stud
$ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
- Download and install the powssl script
$ curl https://gist.githubusercontent.com/paulnicholson/2050941/raw/7e4d2178e3733bed18fdfe737277c3cb72241d39/powssl > ~/bin/powssl
$ chmod +x ~/bin/powssl
- Run powssl to create development certificate and configure stud.
$ powssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
_ "net/http/pprof" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tell system when Xcode utilities live: | |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
# Set "opendiff" as the default mergetool globally: | |
git config --global merge.tool opendiff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mycookbook/recipes/apt_postgresql_ppa.rb | |
# | |
# This recipe should add the sources for | |
# PostgreSQL 9.1 using the PPA available at: | |
# https://launchpad.net/~pitti/+archive/postgresql | |
apt_repository "postgresql" do | |
uri "http://ppa.launchpad.net/pitti/postgresql/ubuntu" | |
distribution node['lsb']['codename'] | |
components ["main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jammit | |
class Compressor | |
# Compiles a single JST file by writing out a javascript that adds | |
# template properties to a top-level template namespace object. Adds a | |
# JST-compilation function to the top of the package, unless you've | |
# specified your own preferred function, or turned it off. | |
# JST templates are named with the basename of their file. | |
# We are monkey-patching it so that we get Haml compilation *before* it hits the client. | |
def compile_jst(paths) |