Skip to content

Instantly share code, notes, and snippets.

View meowgorithm's full-sized avatar
💭
Gosh

Christian Rocha meowgorithm

💭
Gosh
View GitHub Profile
@meowgorithm
meowgorithm / keybase.md
Created March 7, 2014 19:44
keybase.md

Keybase proof

I hereby claim:

  • I am roshambo on github.
  • I am rocha (https://keybase.io/rocha) on keybase.
  • I have a public key whose fingerprint is AAF7 36A9 967C 2EE9 0FA3 3B73 17DA D7F7 BBAC 298D

To claim this, I am signing this object:

var zlib = require('zlib');
var redis = require('redis');
var redisClient = redis.createClient();
var crypto = require('crypto');
// Our custom caching write function
function cached(body, lifetime, type) {
var key = this.req.originalUrl;
var res = this;
var etag, len;
@meowgorithm
meowgorithm / Node.js Upstart Template for Ubuntu
Created November 25, 2013 14:54
Node.js Upstart template for Ubuntu. Variables are as follows: PROJECT_PATH: Path to the directory of the Node.js script. PROJECT_NAME: Name to prepend to process and log files. ENGINE: "node" or "coffee". SERVER_SCRIPT_PATH: Path to the server script, i.e. `/var/www/project/server.js` or `/var/www/project/server.coffee`.
description "node.js server"
author "hi-res"
start on (local-filesystems and net-device-up)
stop on shutdown
respawn
script
export HOME="{{ PROJECT_PATH }}"