Skip to content

Instantly share code, notes, and snippets.


Mitchell Dokken MitchRatquest

View GitHub Profile
stecman /
Last active December 31, 2022 18:03
STM8S code examples

This is a collection of code snippets for various features on the STM8S family microcontrollers (specifically the STM8S003F3). These are written against the STM8S/A SPL headers and compiled using SDCC.

Some of this controller's functions aren't particularly intuitive to program, so I'm dumping samples for future reference here. These are based on the STM8S documentation:

Run at 16MHz

joeycastillo /
Created January 24, 2020 21:10
Capacitive Touch Matrix Test
Test script for CAPT-B1-02 Capacitive Touch Matrix FeatherWing
Board files:
Also uses an Adafruit 16x8 LED matrix:
import board
import touchio
yzl /
Last active October 5, 2020 22:13
tech and ethics reading collection

Tech and ethics reading collection

A list of books, essays, papers, blog posts, tweets, etc. on tech and ethics that I have either read and found useful or plan to read because I think they might be useful. I’m not especially interested in ethics that doesn’t take power or structure into account, so most of the standard texts one would read in a course on ethics aren’t represented on my list.

(My) starting point

Not strictly about either ethics or tech, but Claire Dederer’s What Do We Do With the Art of Monstrous Men? verbalizes something that is wound up in how I think about ethics, and what I hear when people talk about ethics:

This, I think, is what happens to so many of us when we consider the work of the monster geniuses—we tell ourselves we’re having ethical thoughts when really what we’re having is moral feelings.

Ideal theory

Dr. Robin James recommends Charles Mills’ [Ideal Theory as I

arturo182 / bom2grouped_csv_jlcpcb.xsl
Last active March 19, 2023 06:55
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
View bom2grouped_csv_jlcpcb.xsl
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
Copyright (C) 2018, Kicad developers.
Copyright (C) 2019, arturo182.
GPL v2.
Generation of JLCPCB PCBA compatible BOM
if [ -z "$dir" ]
#!/usr/bin/env python3
calisuck: index, filter-out smartly and download ebooks from Calibre open directories
You need python 3.5 installed
Download the file as a zip and unzip-it and get into the dir
allen-munsch / homebrew.mxcl.dnsmasq.plist
Last active December 3, 2020 18:54
Disable ad networks, disable firefox popups, disable other sketchy stuff : macosx
View homebrew.mxcl.dnsmasq.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
gdamjan /
Last active February 14, 2023 10:37
hacking the kindle paperwhite

TODO - hack the kindle paperwhite

focus on the gen 2 / DP75SDI

compile kernel + initramfs with openwrt:

  • because it cross-compiles easily
  • has a reasonably simple user-space
  • device-tree?


steven2358 /
Last active March 19, 2023 21:43
FFmpeg cheat sheet
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active March 14, 2023 23:43
Build and run minimal Linux / Busybox systems in Qemu
View gist:02e165a0004be33734ac2334f215380e


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

Linux kernel