Skip to content

Instantly share code, notes, and snippets.

View KarbonDallas's full-sized avatar
🔥
Can't stop, won't stop

Karbon Dallas KarbonDallas

🔥
Can't stop, won't stop
  • Cascadia Bioregion
  • 20:13 (UTC -07:00)
View GitHub Profile
# Documentation for HAProxy
# http://code.google.com/p/haproxy-docs/w/list
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt
# NOTES:
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
list: function(req, res, params) {
var that = this;
function stepOne(userIsLogged) {
that
.Users
.getUserByUserID(
@KarbonDallas
KarbonDallas / index.js
Created August 20, 2012 22:35 — forked from max-mapper/index.js
official semicolon style of @maxogden
function toCSV = function(table, cb) {
;;;;var cmd = spawn('mdb-export', [this.file, table])
;;;;cmd.stdout.pipe(concat(function(err, out) {
;;;;;;;;;;;;if (err) return cb(err)
;;;;;;;;;;;;if (!out) return cb('no output')
;;;;;;;;;;;;cb(false, out.toString())
;;;;;;;;}))
};