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

{
"builders": [
{
"type": "docker",
"image": "ubuntu",
"commit": "true"
}
],
"post-processors": [
[
package main
import (
sdk "github.com/gaia-pipeline/gosdk"
)
var jobs = sdk.Jobs{
"CreateUser": sdk.Job{
Handler: CreateUser,
Title: "Create DB User",
<?xml version="1.0" encoding="UTF-8"?>
<?scenebuilder-stylesheet darcula.css?>
<?import java.net.URL?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<StackPane prefHeight="400.0" prefWidth="600.0" styleClass="root"

Keybase proof

I hereby claim:

  • I am rhencke on github.
  • I am rhencke (https://keybase.io/rhencke) on keybase.
  • I have a public key ASCVNoQD1pz5jY0DGfeq7eAt2LoJzyOplkENi_mf1nOy9wo

To claim this, I am signing this object:

@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',
+)
@rhencke
rhencke / what.ts
Last active September 18, 2015 04:25
/// <reference path="./typings/angular2/angular2.d.ts" />
/// <reference path="./typings/node/node.d.ts" />
/// <reference path="./typings/rx/rx-lite.d.ts" />
import {Component, View, Injectable, bootstrap, ChangeDetectionStrategy} from 'angular2/angular2';
import * as proc from 'child_process';
@Injectable()
class MyService {
val: string;
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
#!/bin/awk -f
# use: print-pkg-build-order.awk <package> [<package>...]
# prints all packages that would be built by building <package>(s), in build order.
BEGIN {
if (!ENVIRON["S"]) {
error("$S is not set. be sure to source config: . ./config")
}
if (ARGC<2) {
error("please provide one or more packages to print the build order for.")
}