# install node
apt-get update
apt-get install git-core build-essential libssl-dev
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
var child | |
, stdout = '' | |
, stderr = '' | |
, exitCode = 0 | |
, vows = require('vows') | |
, path = require('path') | |
, assert = require('assert') | |
, request = require('request') | |
, spawn = require('child_process').spawn; |
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
/*! | |
__defineGetter__(<ANSI supported color>, fn | |
http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes | |
*/ | |
['magenta','yellow','green','blue','cyan','red'].forEach(function(color) { | |
var colorized = '\u001b[#m'; | |
String.prototype.__defineGetter__(color, function(){ | |
var options = { |
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
/** | |
* Uses MongooseJS to Connect to MongoDB | |
* .Maps out all collections within | |
*/ | |
var mongoose = require('mongoose') | |
, MONGO_DB = 'mongodb://localhost/test'; | |
mongoose.connect(MONGO_DB); |
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
/** | |
* Node.JS Sinatra Style Routing | |
*/ | |
var routes = {} | |
, http = require('http') | |
, parse = require('url').parse | |
, server = http.createServer(); | |
/** |
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
child = undefined | |
stdout = '' | |
stderr = '' | |
exitCode = 0 | |
vows = require('vows') | |
path = require('path') | |
assert = require('assert') |
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
.highlight { | |
background-color: #efefef; | |
padding: 7px 7px 7px 10px; | |
border: 1px solid #ddd; | |
-moz-box-shadow: 3px 3px rgba(0,0,0,0.1); | |
-webkit-box-shadow: 3px 3px rgba(0,0,0,0.1); | |
box-shadow: 3px 3px rgba(0,0,0,0.1); | |
margin: 20px 0 20px 0; | |
overflow: hidden; |
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
/** | |
* Create Jekyll Object, with mpq wrapper | |
*/ | |
var jekyll = Object.create({ | |
mpq : { | |
track : function(eventName, properties, callback) { | |
properties = properties || {}; | |
callback = callback || function(){}; |
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
# NAT interface routing | |
*nat | |
# Setup | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [2:128] | |
:OUTPUT ACCEPT [2:120] | |
:POSTROUTING ACCEPT [2:120] | |
# Redirect port 80 to port 8080 |
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
<script type="text/javascript" src="preloader.js"></script> |
OlderNewer