Skip to content

Instantly share code, notes, and snippets.

View davidjrice's full-sized avatar

David Rice davidjrice

View GitHub Profile
[master!node-twitter-oauth ]$ node bin/twitter-oauth-http.js
DEBUG: URL:"http://term.ie/oauth/example/request_token.php"
DEBUG: SIGNATURE_KEY: secret&
DEBUG: SIGNATURE_BASE: POST&http%3A%2F%2Fterm.ie%2Foauth%2Fexample%2Frequest_token.php&oauth_consumer_key%3Dkey%26oauth_nonce%3D9844f81e1408f6ecb932137d33bed7cfdcf518a3%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1266284317985%26oauth_version%3D1.0
DEBUG: REQUEST:
POST /oauth/example/request_token.php HTTP/1.1
Host: term.ie
node bin/server.js // loads development env
NODE_ENV=production node bin/server.js //loads production env!
// config/default.js
exports.development = {
port: 8012,
couchDb: {
db: 'comments',
host: 'localhost',
port: 5984,
sudo aptitude install libmozjs-dev libicu-dev libcurl4-openssl-dev erlang
wget http://www.apache.org/dyn/closer.cgi?path=/couchdb/0.10.1/apache-couchdb-0.10.1.tar.gz
tar zxvf apache-couchdb-0.10.1.tar.gz
cd apache-couchdb-0.10.1
./configure && make && sudo make install
couchdb &
  • 216.182.224.0/20
  • 72.44.32.0/19
  • 67.202.0.0/18
  • 75.101.128.0/17
  • 174.129.0.0/16
  • 204.236.192.0/18
  • 184.73.0.0/16
  • 204.236.128.0/18
  • 184.72.0.0/18
  • 209.20.0.0/16

216.182.224.0/20 72.44.32.0/19 67.202.0.0/18 75.101.128.0/17 174.129.0.0/16 204.236.192.0/18 184.73.0.0/16 204.236.128.0/18 184.72.0.0/18

# IP Ranges of Litmus App servers
# http://litmusapp.com
#
# 67.202.0.0/18
# 72.44.32.0/19
# 75.101.128.0/17
# 174.129.0.0/16
# 184.73.0.0/16
# 184.72.0.0/18
# 204.236.192.0/18
" Colors **********************************************************************
"set t_Co=256 " 256 colors
set background=dark
syntax on " syntax highlighting
colorscheme ir_black
" Line Numbers
set number
" Fonts
## validator.bodyguardapp.comQ2N5Lw5mq
aptitude update
locale-gen en_GB.UTF-8
/usr/sbin/update-locale LANG=en_GB.UTF-8
aptitude safe-upgrade
aptitude full-upgrade
aptitude install build-essential
python build/build.py run
"svn" co "https://whattf.svn.cvsdude.com/build/trunk/" "build"
Checked out revision 94.
java -Xms131072k -Xmx131072k -XX:ThreadStackSize=2048 -classpath ./dependencies/commons-codec-1.3/commons-codec-1.3.jar:./dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar:./dependencies/icu4j-charsets-4_0.jar:./dependencies/icu4j-4_0.jar:./dependencies/iri-0.5/lib/iri.jar:./dependencies/jetty-6.1.11/lib/servlet-api-2.5-6.1.11.jar:./dependencies/jetty-6.1.11/lib/jetty-6.1.11.jar:./dependencies/jetty-6.1.11/lib/jetty-util-6.1.11.jar:./dependencies/jetty-6.1.11/lib/ext/jetty-ajp-6.1.11.jar:./dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar:./dependencies/rhino1_7R1/js.jar:./dependencies/xerces-2_9_1/xercesImpl.jar:./dependencies/xerces-2_9_1/xml-apis.jar:./dependencies/slf4j-1.5.2/slf4j-
require 'rubygems'
require 'eventmachine'
require 'em-http'
require 'json'
URL = 'http://localhost:5984/comments/_changes?feed=continuous'
def handle_change(change)
puts "#{change['seq']}: #{change['id']}"
end