This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var packet = require('packet'); | |
var parser = packet.createParser(); | |
// header=0xaa | |
// dst=0x1122 | |
// src=0x3344 | |
// len=0x02 | |
// data = [0x0A,0x0B] | |
var def = "b8 => header, b16 => dst, b16 => src, b8/b8 => data, b8 => crc"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ps -p `pidof node` -opid -opcpu -orss -ovsz | tail -1 > node.log | |
START_DATE=`date -u +%s` | |
PIDS=$1 | |
LOG_FILE=$2 | |
while [ 1 ] | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/pi/zigbee-demo-app/node_modules/mdns/lib/resolver_sequence_tasks.js:115 | |
} else if (errno === 'ENOENT') { | |
^ | |
ReferenceError: errno is not defined | |
at Object.wrap.oncomplete (/home/pi/zigbee-demo-app/node_modules/mdns/lib/resolver_sequence_tasks.js:115:18) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var cfiles = ['file_a.c','file_b.c']; | |
task() | |
.env({gcc : '/usr/bin/gcc',cflags : '-Wall '}) | |
.add('somelib.a',cfiles,compileLib) | |
.each(cfiles,compileFile) | |
.done(function(err){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host="fieldcontroller.wavemark.net" sourcetype="zenosseventhistory" | |
| where MESSAGE like "%Low Power%" | |
| rex field=MESSAGE "Power :(?<Voltage>.{5})" | |
| timechart span=1d min(LowVolt) as LowVoltage by DEVICE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SerialPort = require('serialport').SerialPort; | |
var xbee_api = require('xbee-api'); | |
var C = xbee_api.constants; | |
var xbeeAPI = new xbee_api.XBeeAPI({ | |
api_mode: 1 | |
}); | |
var port = new SerialPort('/dev/tty.usbserial-A601EM9S', { | |
baudrate: 9600, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elroy.filter('crockpot').on('connection',function(crockpot){ | |
elroy.expose(crockpot); | |
elroy.filter('huehub').on('connection',function(hub){ | |
crockpot.on('lid-closed',function(){ | |
hub.call('blink'); | |
}); | |
crockpot.on('lid-closed',function(){ | |
hub.call('blink'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mar-12-2014 13:47:31 [fog-runtime] Device led transititon turn-on | |
<Buffer 48 54 54 50 2f 31 2e 31 20 35 30 33 20 53 65 72 76 69 63 65 20 55 6e 61 76 61 69 6c 61 62 6c 65 0d 0a 53 65 72 76 65 72 3a 20 4d 6f 63 68 69 57 65 62 2f ...> | |
HTTP/1.1 503 Service Unavailable | |
Server: MochiWeb/1.0 (Any of you quaids got a smint?) | |
Date: Wed, 12 Mar 2014 17:48:02 GMT | |
Content-Type: text/html; charset=utf-8 | |
Content-Length: 409 | |
<!DOCTYPE html> | |
<html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED to get phantomjs version: /mnt/data/1/node_modules/phantomjs/lib/phantom/bin/phantomjs: 3: 4w��h: not found | |
/mnt/data/1/node_modules/phantomjs/lib/phantom/bin/phantomjs: 3: �����8__TEXT: not found | |
�n��y�T: not foundodules/phantomjs/lib/phantom/bin/phantomjs: 3: E�bss����j���-��m�b | |
/mnt/data/1/node_modules/phantomjs/lib/phantom/bin/phantomjs: 6: Syntax error: ")" unexpected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"data": { "registered": true, "id": "001788fffe10857f", "ipaddress": "192.168.1.2", "user": "ca4ca411381b0f29b140ccd1bdc97" } |