Skip to content

Instantly share code, notes, and snippets.

@rhencke
rhencke / chip-flashing-guide-nov-2018.md
Created June 29, 2019 11:39 — forked from verticalgrain/chip-flashing-guide-nov-2018.md
NextThingCo C.H.I.P. Flashing guide as of November, 2018

Below are the steps required to flash a NextThingCo CHIP or PocketCHIP from the command line, as of November 2018. The web flasher no longer works, and there are numerous errors when flashing from the command line, mostly due to broken dependencies. The following method works for flashing a CHIP as of November 2018:

Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS seems to not work.

  1. Download and unpack the CHIP-SDK.zip from one of the following:
  1. Download and unpack CHIP-tools.zip from one of the following:
@rhencke
rhencke / gist:a782570d9cbf79841d0d6742bc6d6221
Created June 17, 2019 03:49 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@rhencke
rhencke / BUCK
Created January 8, 2016 19:42 — forked from andrewjcg/BUCK
diff --git BUCK BUCK
index 2c6743f..c78029f 100644
--- BUCK
+++ BUCK
@@ -1,10 +1,22 @@
prebuilt_jar(
name = 'xmlbeans',
- binary_jar = ':xmlbeans_jar',
+ binary_jar = ':xmlbeans_fixed_jar',
+)
brew install autoconf leveldb automake python shtool glog libtool popt #maybe more
prerequisites
git clone https://github.com/rescrv/po6.git
git clone https://github.com/rescrv/busybee.git
git clone https://github.com/rescrv/Replicant.git
wget http://cityhash.googlecode.com/files/cityhash-1.1.0.tar.gz
a fix for os x to current MASTER:
https://github.com/mreiferson/e/commit/5b6b369e8a334675c62232f58d291ea4ded243b0
declare @employee varchar(20)
set @employee = '055320';
WITH Employees (Employee, Level, Boss, Name, BTL) AS (
SELECT
1 AS Level,
NULL AS Boss,
EM.Employee,
EM.LastName + ', ' + EM.PreferredName AS Name,
BTL.LastName + ', ' + BTL.PreferredName AS BTL