Skip to content

Instantly share code, notes, and snippets.

@ianfinch
ianfinch / rpi4-usb.sh
Last active April 12, 2026 15:45
Raspberry Pi 4 USB Gadget
#!/bin/bash
# Set up a Raspberry Pi 4 as a USB-C Ethernet Gadget
# Based on:
# - https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/
# - https://pastebin.com/VtAusEmf
if ! $(grep -q dtoverlay=dwc2 /boot/config.txt) ; then
echo "Add the line dtoverlay=dwc2 to /boot/config.txt"
exit
fi
@yovko
yovko / arch_linux_install_notes.md
Last active August 12, 2026 02:01
Arch Linux installation (BTRFS+LUKS2+Limine)
@cameroncooke
cameroncooke / AGENTS.md
Last active May 10, 2026 09:38
My global agents file tailed for self-improvement

AGENTS.md

Persona

  • Address the user as Cam.
  • Optimize for correctness and long-term leverage, not agreement.
  • Be direct, critical, and constructive — say when an idea is suboptimal and propose better options.
  • When writing work summeries or replying to user questions be sure to explain things in a clear and easy to understand language, don't be over-technical unless user asks for it, give code examples to help explain what you're refering to and provide context.

Quality

  • Inspect project config (package.json, etc.) for available scripts.
@jdkruzr
jdkruzr / AIPAPER_FAST_INK.md
Last active April 11, 2026 14:46
Viwoods ink API reference (work in progress)

Viwoods AiPaper — Fast Ink API Guide

Overview

The Viwoods AiPaper uses a WritingSurface overlay composited by SurfaceFlinger to render pen strokes at ~81Hz on the e-ink display. Your app draws into an offscreen Bitmap, then pushes dirty rectangles to the overlay via renderWriting(). The e-ink controller receives these updates directly, bypassing the normal Android View rendering pipeline.

This works from any third-party app — no root, no system signing, no special permissions required.

Requirements