Skip to content

Instantly share code, notes, and snippets.

View he9lin's full-sized avatar

Lin He he9lin

View GitHub Profile

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

Step 1: Getting Clojure (1.3)

@he9lin
he9lin / chef_solo_bootstrap.sh
Last active December 15, 2015 01:29 — forked from ryanb/chef_solo_bootstrap.sh
Chef solo bootstrap with Berkshelf
```
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev libxslt-dev git-core autoconf bison libssl-dev libreadline6-dev libncurses5-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz
tar -xzf ruby-2.1.4.tar.gz
cd ruby-2.1.4/
./configure --prefix=/usr/local --with-readline-dir=/usr/include/readline
make
@he9lin
he9lin / gist:2054587
Created March 17, 2012 02:55 — forked from JakubOboza/gist:2008958
faye as subdomain
upstream faye {
server 127.0.0.1:9292;
}
upstream webrick{
server 127.0.0.1:3000;
}
server {
listen 80 default;