Skip to content

Instantly share code, notes, and snippets.

View wezm's full-sized avatar

Wesley Moore wezm

View GitHub Profile
@IanColdwater
IanColdwater / twittermute.txt
Last active June 19, 2026 17:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@furui
furui / 90-custom-keyboard.hwdb
Created December 15, 2019 02:59
Keychron K2 udev hwdb to remap PgUp, PgDn, Home, and End to laptop style layout (Home, PgUp, PgDn, End)
evdev:input:b0003v05ACp024F*
KEYBOARD_KEY_7004b=home
KEYBOARD_KEY_7004e=pageup
KEYBOARD_KEY_7004a=pagedown
@arturo182
arturo182 / bom2grouped_csv_jlcpcb.xsl
Last active May 15, 2026 19:05
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
<!--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
#!/usr/bin/ion
let pwd = @(pwd)
for dir in @split(@(exa -D))
cd $pwd/$dir
echo -e "\nIn $pwd/$dir"
if test -f Cargo.toml && not test -f rust-toolchain
echo -e "Cleaning $dir"
cargo clean
@niw
niw / extract_ttf_from_ttc.rb
Created June 16, 2019 03:25
Extract each font file from TTC font collection file
# See <https://docs.microsoft.com/en-us/typography/opentype/spec/otff#font-collections>
ttc = ARGF
unless ttc.read(4) == "ttcf"
STDERR.puts "Not TTC file."
exit 1
end
major_version, minor_version = ttc.read(4).unpack("nn")
@jessarcher
jessarcher / dslr-webcam.md
Last active December 21, 2025 15:27
Using my Canon 70D DSLR camera as a web cam on Linux

You'll need:

  1. Video 4 Linux loopback device kernel module (v4l2loopback) - Source: https://github.com/umlaeute/v4l2loopback (You might find builds in your distro's repos - I'm using Fedora so had to build it myself using https://github.com/danielkza/v4l2loopback-fedora/)
  2. gPhoto2 - this is what allows you to access your cameras live feed over USB - this was available in Fedora's repos.
  3. GStreamer or ffmpeg - this is what lets you stream the output from gPhoto2 into the loopback device.

It's been a little while since I set it all up so I can't remember all of the installation details, which will probably be different for your distro anyway unless you're using Fedora. Apologies if I have forgotten something as wel.

Running the stream

@cb372
cb372 / riscv.md
Last active May 22, 2026 05:37
Writing an OS in Rust to run on RISC-V

(This is a translation of the original article in Japanese by moratorium08.)

(UPDATE (22/3/2019): Added some corrections provided by the original author.)

Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.

@cellularmitosis
cellularmitosis / EmojiPointersDemo.swift
Created August 15, 2018 18:11
Representing pointer values as emoji can be useful for "visually" debugging certain issues, like cell reuse, etc.
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let window = UIWindow(frame: UIScreen.main.bounds)
@brendanzab
brendanzab / reactive_systems_bibliography.md
Last active October 7, 2025 18:42
A reading list that I'm collecting while building my Rust ES+CQRS framework: https://github.com/brendanzab/chronicle

Functional, Reactive, and Distributed Systems Bibliography

Books