Skip to content

Instantly share code, notes, and snippets.

View cbrake's full-sized avatar

Cliff Brake cbrake

View GitHub Profile
Sketch 2
First State
some event -> Second State
Second State
@cbrake
cbrake / SketchSystems.spec
Last active July 15, 2020 21:05
Z Alerts
Z Alerts
Inactive*
all cond met -> Last Action Active and less 30m since last action?
Action
all cond met-> Active
not all cond met -> Inactive
Active
any cond not met -> Check Repeat Limit?
30m since last action -> Action
Check Repeat Limit?
@cbrake
cbrake / SketchSystems.spec
Last active July 15, 2020 20:08
Powered*
Powered*
power failed -> Red On
Green
tick -> Yellow
Yellow
tick -> Red
Red
tick -> Green
Unpowered
@cbrake
cbrake / SketchSystems.spec
Last active July 15, 2020 20:08
Powered*
Powered*
power failed -> Red On
Green
tick -> Yellow
Yellow
tick -> Red
Red
tick -> Green
Unpowered
@cbrake
cbrake / SketchSystems.spec
Last active July 15, 2020 20:09
Powered*
Powered*
power failed -> Red On
Green
tick -> Yellow
Yellow
tick -> Red
Red
tick -> Green
Unpowered
@cbrake
cbrake / keybase.md
Created November 13, 2017 20:57
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@cbrake
cbrake / gist:9e80e7b8ad51a704b5ab314a57694e28
Created July 7, 2017 19:54
devtool workspace with patches
commit 26da54a68b2c9415da84b27e3f402f822b767310 (HEAD -> devtool, tag: devtool-patched)
Author: Cliff Brake <cbrake@bec-systems.com>
Date: Thu Jul 6 18:16:59 2017 -0400
add okvc driver
%% original patch: 0001-add-okvc-driver.patch
commit 2f50a8580a23faea3108d6cc15a052983b047640 (tag: devtool-base, imx-rel_imx_4.1.15_2.0.0_ga-var02)
Author: Felix Radensky <felix.r@variscite.com>
[ 118.004669] FlyCap2[2388]: segfault at 28 ip 00007f21211db057 sp 00007f2108d9b990 error 4 in libflycapture.so.2.9.3.13[7f21210d7000+dc8000]
[ 329.464252] usb 2-1: USB disconnect, device number 3
[ 334.460146] usb 1-1: new high-speed USB device number 8 using xhci_hcd
[ 334.602449] usb 1-1: New USB device found, idVendor=1e10, idProduct=2002
[ 334.602459] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 334.602465] usb 1-1: Product: USB 2.0 Digital Imaging Camera
[ 334.602471] usb 1-1: Manufacturer: Point Grey Research
[ 334.602475] usb 1-1: SerialNumber: 00B9BE51
[ 342.520679] usb usb1-port1: disabled by hub (EMI?), re-enabling...
[ 342.520694] usb 1-1: USB disconnect, device number 8
@cbrake
cbrake / test-uloop.lua
Created November 4, 2015 20:15
libubox Interrupted system call
#!/usr/bin/env lua
-- the following will eventually fail on lua5.1 and luajit
-- with:
-- lua: test-uloop.lua:30: Interrupted system call
uloop = require 'uloop'
uloop.init()
local t
@cbrake
cbrake / postinst
Created October 1, 2015 15:43
postinst
mkdir -p /var/tmp/a4m
mkdir -p /var/tmp/a4m/PIDS
mkfifo /var/tmp/a4m/socat_output_data_fifo
mkfifo /var/tmp/a4m/socat_output_serial_fifo1
mkfifo /var/tmp/a4m/socat_output_serial_fifo2
mkfifo /var/tmp/a4m/socat_output_serial_fifo3
mkfifo /var/tmp/a4m/socat_output_serial_fifo4
mkfifo /var/tmp/a4m/socat_output_command_fifo
mkfifo /var/tmp/a4m/socat_output_mtr_inj_fifo