Skip to content

Instantly share code, notes, and snippets.

View KarbonDallas's full-sized avatar
🛰️
building the future one commit at a time

Karbon Dallas KarbonDallas

🛰️
building the future one commit at a time
  • Cascadia Bioregion
  • 20:43 (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
@KarbonDallas
KarbonDallas / gist:4648292
Created January 27, 2013 13:08
How to ask for Javascript help
[07.50.35] < guy> what is the best way to keep track of all the bindings to unset them later?
[07.51.02] < jasper^off> ckknight if it can't be my template...what good would it be :P
[07.51.40] < Nexxy> guy, if you just want to remove them
[07.51.43] < Nexxy> you an use unbind
[07.51.45] < Nexxy> can*
[07.51.52] < guy> Nexxy: No, it is off()
[07.52.09] < guy> what about assigning a unique ID to every interface and then using namespace to set them all off?
[07.52.21] < Nexxy> I guess you can use .off too
[07.52.23] < guy> oh. sorry this is #javascript
[07.53.55] < Nexxy> hey I didn't know you can namespace events with jquery
[email protected] ./node_modules/serialport
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected]
root@omap:/tmp/lol#
list: function(req, res, params) {
var that = this;
function stepOne(userIsLogged) {
that
.Users
.getUserByUserID(
00:45 < niggler> fuck nibble
17:15 < niggler> fuck java
17:23 < niggler> fuck windows
22:14 < niggler> fuck GTD
22:39 < niggler> fuck twitter
22:37 < niggler> fuck IT
19:01 < niggler> fuck CS
21:52 < niggler> fuck java
00:03 < niggler> fuck synergy
00:32 < niggler> fuck table tennis
@KarbonDallas
KarbonDallas / gist:3430820
Created August 23, 2012 00:27
TheEmpath repping 4over with class
~ #node.js
[20.16.16] < TheEmpath> so
[20.16.34] < TheEmpath> anyone else have a hot programmer girl in their office? o____O
[20.16.42] < Lorentz> I wiiish
[20.16.48] <@Nexxy> not appropriate.
[20.16.57] »¡« Signoff caaakeeey: #Node.js (Ping timeout: 260 seconds)
[20.17.32] < joshwnj> yeah guys, grow up
[20.17.38] < jerrysv> Nexxy: olynode was fun, you should have gone
[20.18.03] < TheEmpath> my boss came by and said "Here, a new subodinate" and its a very attractive female. the otherwise painfully quite engineering room suddenly came to life and its a problem :X
~~~~~~~
@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())
;;;;;;;;}))
};
@KarbonDallas
KarbonDallas / gist:3322493
Created August 11, 2012 08:27
orobos-orias opened/closed circuit trigger sketch
int trigger = 0;
int inPin = 8;
int outPin = 9;
unsigned long lastReport;
unsigned long currentStamp;
String output;
void setup() {
Serial.begin(115200);
@KarbonDallas
KarbonDallas / gist:3185821
Created July 27, 2012 02:13
alex4nder trolls hard
--- Log opened Thu Jul 26 22:07:40 2012
22:07 »¡« Irssi: Starting query in freenode with alex4nder
22:07 <Nexxy> please be appropriate and respectful while participating in #node.js :)
22:07 <alex4nder> eat shit
22:08 <Nexxy> as you wish
22:08 <alex4nder> you're on IRC, and what I said barely qualifies as NSFW.
22:08 <Nexxy> I'm not going to argue with you :)
--- Log closed Thu Jul 26 22:08:29 2012
--- Log opened Thu Jul 26 22:08:39 2012
22:08 [alex4nder([email protected])] alright.
@KarbonDallas
KarbonDallas / gist:2921105
Created June 13, 2012 00:55
animated scroll...
var easyScroll = function(selector, cb) {
var offset = $(selector).offset().top;
$('html, body').stop(true).animate({ scrollTop : ( (offset - 75 ) < 0 ? 0 : (offset - 75) ) }, {
duration : 300
}, function(){
if((cb) && (typeof cb == "function")) {
cb();