Skip to content

Instantly share code, notes, and snippets.

@quartzjer
quartzjer / e3x_logo.txt
Created August 11, 2014 17:16
e3x logo
____ ____
| |
|__ \ / __|
| / \ |
|____ ____|
@quartzjer
quartzjer / gist:6a3270e0252a572236ad
Created July 9, 2014 22:17
global consciousness project (gcp) - simple node.js based 'dot' api server wrapper around gcpdot.com to return hex
var request = require('request');
var express = require('express');
var app = express();
app.get('/', function(req, res){
request.get("http://gcpdot.com/gcpindex.php?small=1",function(err,r,body){
if(err || r.statusCode != 200 || typeof body != "string") return res.send("000000");
var high = 0;
body.match(/(0\.\d+)/g).forEach(function(gcp){if(gcp > high) high = gcp});
var color = "CDCDCD";
@quartzjer
quartzjer / serialbuf.js
Created April 24, 2014 23:34
serial to scout buffer
var serialport = require('serialport');
var bindexof = require('buffer-indexof');
var ready = new Buffer("> ");
function die(err)
{
console.log(err);
process.exit(1);
}
@quartzjer
quartzjer / talknotes.txt
Created January 16, 2014 18:14
notes from 1bb talk
1bb
Challenges Overcome
1st Gen, 85-95
bbs / lans
time / reach
2nd Gen, 95-05
@quartzjer
quartzjer / gist:7837064
Created December 7, 2013 03:50
telehash v1 protocol debug output
RECV[208.68.163.247:42424] {".tap":[{"has":["+pop"],"is":{"+end":"38666817e1b38470644e004b9356c1622368fa57"}}],"_line":34324290,"_br":122429919,"+end":"38666817e1b38470644e004b9356c1622368fa57","_to":"208.68.164.253:42424"}
BR 208.68.163.247:42424 [122443585 += 196] DIFF 1053
LINE STATUS OPEN
NEARTO 38666817e1b38470644e004b9356c1622368fa57 208.68.163.247:42424=38666817e1b38470644e004b9356c1622368fa57 38666817e1b38470644e004b9356c1622368fa57,6b2cab05f0c2c15408c24338daa8f9660e61ae90>>>38666817e1b38470644e004b9356c1622368fa57,6b2cab05f0c2c15408c24338daa8f9660e61ae90 -1=-1
NEIGH for 38666817e1b38470644e004b9356c1622368fa57 was 38666817e1b38470644e004b9356c1622368fa57,6b2cab05f0c2c15408c24338daa8f9660e61ae90 2
NEIGH for 38666817e1b38470644e004b9356c1622368fa57 is 38666817e1b38470644e004b9356c1622368fa57,6b2cab05f0c2c15408c24338daa8f9660e61ae90 2
SEED 208.68.163.247:42424 into 208.68.163.247:42424
SEED 208.6
@quartzjer
quartzjer / capture.sh
Created November 18, 2013 20:45
osx screen capture and upload
#!/bin/bash
# instructions to install http://blog.lanceli.com/2012/08/downscale-screenshot-at-hight-resolution-on-retina-mackbook-pro.html
SCP_USER='jer'
SCP_HOST='jeremie.com'
SCP_PATH='/web/sites/jeremie.com/i/'
HTTP_URL="http://jeremie.com/i/"
#include <SPI.h>
#include <Wire.h>
#include <Scout.h>
#define TEMPCAST_TIMER_INTERVAL 3000
static SYS_Timer_t appTimer;
static NWK_DataReq_t appDataReq;
static void tempTimerHandler(SYS_Timer_t *timer) {
Serial.println("report");
#include <Arduino.h>
#include <Wire.h>
#include <Scout.h>
int meshAddress = 2; // unique id of the scout
int multiAddress = 0x1234; // multicast address
int tempEndpoint = 1; // temperature multicast endpoint
#define TEMPCAST_TIMER_INTERVAL 30000
int retries;
2013-05-15 17:56:24.791 [info] <0.197.0>@pipa_scanner:handle_info:71 scanner poll_work invoked
2013-05-15 17:56:24.792 [debug] <0.197.0>@pipa_scanner:handle_info:79 Pending: [1]
2013-05-15 17:56:24.792 [debug] <0.197.0>@pipa_scanner:start_workers:96 Start workers: [1]
2013-05-15 17:56:24.801 [debug] <0.222.0>@pipa_pipe:handle_info:203 Rescheduling lifetime_watchdog: 0.005
2013-05-15 17:56:24.801 [debug] <0.222.0>@pipa_pipe:handle_call:95 [64] started
2013-05-15 17:56:24.802 [debug] <0.223.0>@pipa_pipe:handle_info:203 Rescheduling lifetime_watchdog: 0.005
2013-05-15 17:56:24.807 [debug] <0.132.0>@mysql_conn:433 fetch <<"SELECT id, application_id, name, state, service, category FROM pipes where id = 64">> (id <0.133.0>)
2013-05-15 17:56:24.819 [debug] <0.222.0>@pipa_pipe:handle_info:141 [64] heartbeat
2013-05-15 17:56:24.819 [debug] <0.222.0>@pipa_cron:heartbeat_work:91 Heartbeating: "higgs_<0.222.0>"
2013-05-15 17:56:24.820 [debug] <0.194.0>@pipa_nodejs_runner:handle_info:138 Tenant count is now 1
2013-05-15 16:38:28.425 [info] <0.197.0>@pipa_scanner:handle_info:71 scanner poll_work invoked
2013-05-15 16:38:28.425 [debug] <0.197.0>@pipa_scanner:handle_info:79 Pending: [1]
2013-05-15 16:38:28.426 [debug] <0.197.0>@pipa_scanner:start_workers:96 Start workers: [1]
2013-05-15 16:38:28.434 [debug] <0.274.0>@pipa_pipe:handle_info:203 Rescheduling lifetime_watchdog: 0.004
2013-05-15 16:38:28.434 [debug] <0.274.0>@pipa_pipe:handle_call:95 [59] started
2013-05-15 16:38:28.434 [debug] <0.275.0>@pipa_pipe:handle_info:203 Rescheduling lifetime_watchdog: 0.004
2013-05-15 16:38:28.439 [debug] <0.132.0>@mysql_conn:433 fetch <<"SELECT id, application_id, name, state, service, category FROM pipes where id = 59">> (id <0.133.0>)
2013-05-15 16:38:28.451 [debug] <0.274.0>@pipa_pipe:handle_info:141 [59] heartbeat
2013-05-15 16:38:28.452 [debug] <0.274.0>@pipa_cron:heartbeat_work:91 Heartbeating: "higgs_<0.274.0>"
2013-05-15 16:38:28.452 [debug] <0.194.0>@pipa_nodejs_runner:handle_info:138 Tenant count is now 1