Skip to content

Instantly share code, notes, and snippets.

Avatar

Mitchell Dokken MitchRatquest

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

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
joeycastillo / code.py
Created January 24, 2020 21:10
Capacitive Touch Matrix Test
View code.py
"""
Test script for CAPT-B1-02 Capacitive Touch Matrix FeatherWing
Board files: https://github.com/joeycastillo/Feather-Projects/tree/master/Experiments/Cap%20Touch%20Experiments
Also uses an Adafruit 16x8 LED matrix:
https://www.adafruit.com/product/2037
"""
import board
import touchio
@yzl
yzl / TechAndEthicsReadingCollection.md
Last active October 5, 2020 22:13
tech and ethics reading collection
View TechAndEthicsReadingCollection.md

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
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.
Functionality:
Generation of JLCPCB PCBA compatible BOM
View lst.sh
#!/bin/bash
here=`pwd`
dir=$1
if [ -z "$dir" ]
then
dir="."
fi
View calisuck.py
#!/usr/bin/env python3
'''
calisuck: index, filter-out smartly and download ebooks from Calibre open directories
Installation:
You need python 3.5 installed
Download the file as a zip and unzip-it and get into the dir
@allen-munsch
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.dnsmasq</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/dnsmasq/sbin/dnsmasq</string>
<string>--keep-in-foreground</string>
@gdamjan
gdamjan / 0-README.md
Last active February 14, 2023 10:37
hacking the kindle paperwhite
View 0-README.md

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?

CONFIG_PACKAGE_kmod-usb-gadget-serial

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

Common

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

Linux kernel