Skip to content

Instantly share code, notes, and snippets.

View freeall's full-sized avatar

Tobias Baunbæk Christensen freeall

View GitHub Profile
@freeall
freeall / db.js
Last active January 4, 2016 16:28
/* globals done */
var pg = require('pg');
var conString = 'postgres://pg_logvent:Bow3CuU7foVHbr@localhost/db_logvent';
module.exports = function(options) {
'use strict';
options = options || {};
@freeall
freeall / db.js
Last active January 4, 2016 16:19
/* globals done */
var pg = require('pg');
var conString = 'postgres://pg_logvent:Bow3CuU7foVHbr@localhost/db_logvent';
module.exports = function(options) {
'use strict';
options = options || {};
@freeall
freeall / db.js
Last active January 4, 2016 16:19
/* globals done */
var pg = require('pg');
var conString = 'postgres://pg_logvent:Bow3CuU7foVHbr@localhost/db_logvent';
module.exports = function(options) {
'use strict';
options = options || {};
/* globals done */
var pg = require('pg');
var conString = 'postgres://pg_logvent:Bow3CuU7foVHbr@localhost/db_logvent';
module.exports = function(options) {
'use strict';
options = options || {};
@freeall
freeall / auth.js
Last active December 14, 2015 12:58 — forked from mafintosh/auth.js
// server.js
var app = express();
var user = require('user');
var static = require('static');
app.route('/user/*', user);
app.route('/s/*', static);