- Install stud
$ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
- Download and install the powssl script
$ curl https://gist.github.com/mbklein/8829826/raw/3ea59efe8c7e9013c265313045a9fdda5c653963/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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
+++ b/ocroinst.osx Tue Jun 12 18:25:15 2012 -0400 | |
@@ -0,0 +1,87 @@ | |
+#!/bin/bash | |
+ | |
+# Vaguely following ocroinst | |
+# Tested on Mac OSX 10.6 | |
+# Assume we're using Homebrew: http://mxcl.github.com/homebrew/ | |
+# Assume we're using pip, e.g. | |
+# https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python |
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
#!/usr/bin/env ruby | |
require 'benchmark' | |
N = 10000000 | |
vals = [1, 2, 'string', {}, [], false, true, nil] | |
enum = N.times.map { vals[rand(vals.length-1)] } | |
def process(v) | |
v | |
end |
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
#!/bin/sh | |
PROXY_INTERFACE="Wi-Fi" | |
PROXY_HOST=127.0.0.1 | |
PROXY_PORT=1080 | |
# A host where ssh can login without interaction, with a key-based | |
# authentication. | |
SOCKS_PROC_USER="username" | |
SOCKS_PROC_HOST="example.com" |
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
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 2048; | |
multi_accept on; | |
use epoll; | |
} |