Skip to content

Instantly share code, notes, and snippets.

@bryanpaluch
bryanpaluch / app.js
Created March 20, 2013 16:42
localStorage all the things!
define([
localStorageHook,
], function(LocalStorageHook){
LocalStorageHook.hook();
});
@bryanpaluch
bryanpaluch / ttl2usbserial.pde
Last active December 10, 2015 19:08
Simple TTL to USB serial for teensys
// This line defines a "Uart" object to access the serial port
HardwareSerial Uart = HardwareSerial();
//Teensys port D2 and next RX/TX
void setup() {
Serial.begin(9600);
Uart.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
@bryanpaluch
bryanpaluch / gist:2783302
Created May 24, 2012 18:26
too many open files
*** total connections: 64447 peak: 64447
Caught exception: Error: Too many open files
^C
[admin@nodesbc1 ~]$ ps aux
USER PID %CPU %MEM SZ RSS TT S START TIME COMMAND
admin 16 4.1 0.7723064696700 ? O 18:16:52 2:49 /home/admin/local/bin/node ./websocketworker.js
admin 18 0.2 0.17195243012 ? S 18:16:52 0:42 /home/admin/local/bin/node ./sipworker.js