Skip to content

Instantly share code, notes, and snippets.

Eric ecc1

Block or report user

Report or block ecc1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ec3182064bcea6be57ed29be156e9ecc
// Return 1 for insulin-related events, 0 for events to skip, -1 on error.
static int decode_history_record(uint8_t *data, int len, int family, history_record_t *r) {
memset(r, 0, sizeof(*r));
r->type = data[0];
r->length = 7;
switch (r->type) {
case Bolus:
if (family <= 22) {
r->length = 9;
r->time = decode_time(&data[4]);

Converting from Yocto to Debian without re-flashing

Eric Cooper <>

December 2016

This document explains how to convert an Intel Edison from Yocto to Debian GNU/Linux. The conversion is done by installing Debian "in place", without having to re-flash the system.

The resulting Debian system will use the Linux kernel and modules

View gist:f5c17f6b1bb981b12aa0
FROM debian
RUN apt-get update && apt-get install -y \
npm \
nodejs-legacy \
COPY . /src
View gist:e48db392ae3385ef5b0a
from rflib import *
d = RfCat()
print 'Created RfCat instance'
ecc1 / Dockerfile
Created Jun 4, 2015
Dockerfile for Nightscout cgm-remote-monitor
View Dockerfile
FROM debian:latest
RUN apt-get update
RUN apt-get install -y git npm
# make sure nodejs binary is available as node
RUN cd /usr/bin && ln -s nodejs node
COPY . /src
You can’t perform that action at this time.