Skip to content

Instantly share code, notes, and snippets.

View gingerbeardman's full-sized avatar

Matt Sephton gingerbeardman

View GitHub Profile
@gingerbeardman
gingerbeardman / wii-games-with-no-widescreen-support.txt
Last active November 7, 2023 09:58
All 553+VC Wii games that are 4:3-only, with no 16:9 support (generated from Dolphin data, which comes from vWii data)
# Cxxxxx All Virtual Console Commodore 64 games
# DJU - (unknown title - INI file autogenerated from vWii system menu list of titles without 16:9 support)
# DQAJK2 - Aquarius Baseball
# Exxxxx - All "Virtual Console Arcade" and NeoGeo Virtual Console games
# Fxxxxx - All NES Virtual Console games
# Jxxxxx - All SNES Virtual Console games
# Lxxxxx - All Sega Master System Virtual Console games
# Mxxxxx - All Sega Mega Drive (Genesis) Virtual Console games
# Nxxxxx - All Nintendo 64 Virtual Console games
# Pxxxxx - All TurboGrafx 16 Virtual Console games
@gingerbeardman
gingerbeardman / pair-wii-remote-macos.sh
Last active October 23, 2023 23:37
Automatically pair a Wii Remote to macOS using blueutil command-line tool (Intel-only? fails on Apple silicon)
#!/usr/bin/env bash
# requirements: blueutil
echo "Hold both 1+2 buttons on Wii Remote and wait for 30 seconds"
# get MAC Address of Wii Remote
MAC=`$(which blueutil) --inquiry 5 2>&1 | grep 'address' | awk '{print substr($2,1,17)}'`
(killall -m 'blueutil*' 2>&1) >/dev/null
echo "MAC: $MAC"
@gingerbeardman
gingerbeardman / Descriptor.txt
Last active October 11, 2023 19:13
Sony USB Jog Controller (PCVA-JC1)
0x06, 0x02, 0xFF, // Usage Page (Vendor Defined 0xFF02)
0x09, 0x01, // Usage (0x01)
0xA1, 0x01, // Collection (Application)
0x05, 0x07, // Usage Page (Kbrd/Keypad)
0x19, 0x01, // Usage Minimum (0x01)
0x29, 0x18, // Usage Maximum (0x18)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x18, // Report Count (24)
@gingerbeardman
gingerbeardman / LEN-T24d-10.EDID.txt
Created September 29, 2023 12:43
Lenovo T24d-10 monitor EDID
EDID report generated by SwitchResX Version 4.13.2 (Apple Silicon) (Build 2463) for display LEN T24d-10
Display ID (CG) = 2 - Service Port Src = 33543
-----------------------------------------------------
------------------- RAW DATA ------------------------
-----------------------------------------------------
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
-----------------------------------------------------
0 | 00 FF FF FF FF FF FF 00 30 AE B4 61 01 01 01 01
@gingerbeardman
gingerbeardman / Linkding.postman_collection.json
Created May 20, 2023 11:50
Linkding collection for Postman
{
"info": {
"_postman_id": "356eda77-071b-42db-97f1-53f297f4cf4d",
"name": "Linkding",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "26329767"
},
"item": [
{
"name": "AUTH",
@gingerbeardman
gingerbeardman / kye_rules.txt
Created August 30, 2023 15:05
The Rules of Kye, by Tim Babcock (from https://www.ticalc.org/archives/files/fileinfo/337/33784.html source code)
The Rules of Kye
All of them.
By Jim Babcock
//{{{
1.1 Purpose
There are at least five implementations of Kye, all of which differ subtly
in their rules. This is because the authors had nothing to go on but the
previous games themselves, from which it can be difficult to determine
@gingerbeardman
gingerbeardman / classify.py
Last active August 13, 2023 17:35
Use YAMNet model to classify sounds according to AudioSet categories
#!/usr/bin/env python
import sys
import subprocess
import tensorflow as tf
import tensorflow_hub as hub
import numpy as np
import csv
@gingerbeardman
gingerbeardman / bin2wav.sh
Last active August 12, 2023 19:17
Convert Director 'snd ' chunks to wav files (requires: sox, ProjectorRays)
#!/usr/bin/env bash
# our file
CHUNK=$1
DIR=$( dirname $CHUNK )
NAME=$( basename -s ".bin" $CHUNK )
PCM="$DIR/$NAME.raw"
WAV="$DIR/$NAME.wav"
# announce current file
anima_1.dcr
anima_2.dcr
anima_3.dcr
bambam.dcr
beach.dcr
bound.dcr
cave.dcr
chai1.dcr
chai2.dcr
chai_mu.dcr
born.dcr
alien.dcr
amazing.dcr
AmigosMenu.dcr
baby.dcr
bananan.dcr
box.dcr
bust.dcr
cemetry.dcr
christmas.dcr