brew edit redis
then change
url 'http://redis.googlecode.com/files/redis-2.0.0-rc4.tar.gz'
sha1 'b2fda3b2a073c537c324b962ba0c7c81be8baef3'
sys: require 'sys' | |
net: require 'net' | |
fs: require 'fs' | |
Buffer: require('buffer').Buffer | |
Schema: require('protobuf_for_node').Schema | |
schema: new Schema(fs.readFileSync('riak.desc')) | |
types: ['RpbErrorResp', 'RpbPingReq', 'RpbPingResp', 'RpbGetClientIdReq', | |
'RpbGetClientIdResp', 'RpbSetClientIdReq', 'RpbSetClientIdResp', | |
'RpbGetServerInfoReq', 'RpbGetServerInfoResp', 'RpbGetReq', 'RpbGetResp'] |
import time | |
import struct | |
import socket | |
import hashlib | |
import sys | |
from select import select | |
import re | |
import logging | |
from threading import Thread | |
import signal |
server.modules = ( | |
"mod_access", | |
"mod_alias", | |
"mod_accesslog", | |
"mod_extforward", | |
"mod_rewrite", | |
#"mod_fastcgi", | |
"mod_proxy", | |
"mod_redirect" ) |
#!/bin/bash | |
gunicorn path.to.app & | |
MASTER_PID=$! | |
trap "kill $MASTER_PID; exit" INT TERM EXIT | |
while true | |
do | |
sleep 1 |
# 30 minutes Lisp in Ruby | |
# Hong Minhee <http://dahlia.kr/> | |
# | |
# This Lisp implementation does not provide a s-expression reader. | |
# Instead, it uses Ruby syntax like following code: | |
# | |
# [:def, :factorial, | |
# [:lambda, [:n], | |
# [:if, [:"=", :n, 1], | |
# 1, |
(ns samegame | |
(:use [clojure.set :only (union)] | |
[clojure.contrib.math :only (floor)] | |
[clojure.contrib.seq-utils :only (indexed)]) | |
(:import (java.awt Color Dimension) | |
(javax.swing JPanel JFrame Timer JOptionPane) | |
(java.awt.event ActionListener KeyListener MouseListener))) | |
(def colors [(Color. 255 0 0) (Color. 0 255 0) (Color. 0 0 255)]) | |
(def blank-color (Color. 0 0 0)) |
# An example of the below | |
virtualenv "/home/dvcsmirrors/hg" do | |
owner "root" | |
group "dvcsmirrors" | |
mode 0775 | |
packages "Mercurial" => "1.6.3", | |
"hgsubversion" => "1.1.2" | |
end |