Skip to content

Instantly share code, notes, and snippets.

Aaron Brady insom

Block or report user

Report or block insom

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
insom / spi-matrix.ino
Created Jun 13, 2016
Arduino SPI / Interrupt driven matrix display
View spi-matrix.ino
#include <TimerOne.h>
#include <SPI.h>
#define COLS 5
#define LE 10
volatile char buf[COLS] = {0x0};
void setup() {
insom / 74374n-raspberry-pi.c
Created Jun 11, 2016
Make pretty lights using a Raspberry Pi and a 74374N octal flip-flop
View 74374n-raspberry-pi.c
#define _BSD_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define INPUT 17
#define OE 18
#define CLK 27
insom / mod_iweb.lua
Created Jun 10, 2016
mod_iweb but in LUA
View mod_iweb.lua
require "apache2"
require "socket"
suffix = ""
function strip(hn)
local v = string.gsub(hn, suffix, "")
return string.match(v, "%w+%.cms")
function mapper(r)
ip, t = socket.dns.toip(r.headers_in.Host)
if string.find(, suffix) then
insom / hw.asm
Created Mar 11, 2016
Hello World for the Z80 Simulator
View hw.asm
org 00000h
ld c, 0
; fetch data+c into a
ld h, 0
ld a, data
add c
ld l, a
ld a, (hl)

Keybase proof

I hereby claim:

  • I am insom on github.
  • I am insom ( on keybase.
  • I have a public key ASAcAW4yegnZXKSN67zYpUktROYW13zm5m5sdhBGbuG-CQo

To claim this, I am signing this object:

insom /
Last active Aug 29, 2015
Decode a VirtualWire encoded thingy
import wave, struct, sys
sixtofour = [ 0xd, 0xe, 0x13, 0x15, 0x16, 0x19, 0x1a, 0x1c, 0x23, 0x25, 0x26, 0x29, 0x2a, 0x2c, 0x32, 0x34 ]
data = []
state = states[0]
bits = []
lengthbits = []
radiodata = []
insom / my.cnf
Created Jun 29, 2015
Very low memory MySQL
View my.cnf
insom / container.json
Created Jun 24, 2015
container.json for a vivid guest
View container.json
"version": "0.1",
"os": "linux",
"arch": "amd64",
"processes": [
"tty": false,
"user": "root",
"args": [
insom /
Created Jun 3, 2015
Swatch Internet Time patched into strftime


Compile as above, then add it to any program with LD_PRELOAD=<absolute-path-to-so-file>, like:

LD_PRELOAD=/home/insom/ irc

(And in irssi just issue /SET TIMESTAMP_FORMAT {BEAT} to switch your status bar and timestamp entries to the One True Internet Time).

insom / httpdir_latest_meta-data_index.html
Created Jul 17, 2014
Example UEC Build with QEMU image file support in Packer
You can’t perform that action at this time.