Skip to content

Instantly share code, notes, and snippets.

View gingerbeardman's full-sized avatar

Matt Sephton gingerbeardman

View GitHub Profile
@gingerbeardman
gingerbeardman / maboshi-dslite.scad
Created April 20, 2024 19:26
Mockup of a modded DSlite specifically to play the game MaBoShi
// MaBoShi DSlite mod idea
$fn = 50;
module roundedcube_simple(size = [1, 1, 1], center = false, radius = 0.5) {
size = (size[0] == undef) ? [size, size, size] : size;
translate = (center == false) ?
[radius, radius, radius] :
[
@gingerbeardman
gingerbeardman / huginn.yahooauctions.json
Created April 19, 2024 12:27
Huginn JSON for Yahoo! Japan Auctions
{
"expected_update_period_in_days": "1",
"url": [
"https://auctions.yahoo.co.jp/search/search?p=花札&en=Hanafuda&exflg=1&b=1&n=100&s1=new&o1=d&mode=1",
],
"type": "html",
"mode": "on_change",
"extract": {
"url": {
"css": "a.Product__titleLink",
{
"name": "NDS MaBoShi",
"identifier": "com.gingerbeardman.delta.ds.maboshi",
"gameTypeIdentifier": "com.rileytestut.delta.game.ds",
"debug": false,
"representations": {
"iphone": {
"edgeToEdge": {
"portrait": {
"extendedEdges": {
@gingerbeardman
gingerbeardman / FinderHackMod_CDRV_0_.FinderHack.68k.asm.txt
Created April 15, 2024 13:48
main code resource for FinderHackMod (oddly labelled as CDRV rather than DRVR)
# name: .FinderHack
# flags: 0x6400 (ENABLE_CONTROL, NEED_TIME, NEED_LOCK)
# delay: 1
# event mask: 0x0000
# menu id: 0
# open label: 0022
# prime label: 00A0
# control label: 0040
# status label: 00A0
# close label: 01D6
@gingerbeardman
gingerbeardman / 40 things.txt
Created April 5, 2024 13:53
40 things I have learned being a creative entrepreneur, by Michael Flarup, 2024 (Strategies for Playdate)
40 things I have learned\being a creative entrepreneur\\\\Michael Flarup\2024
system
Do what you think is fun
You become what you work on
Creative work\doesn't follow a straight line\from not-good to good
Be opinionated\about your work
Nothing is perfect
Find inspiration\in things you love
Love things fiercely
Impress your inner child\(or your actual children)
@gingerbeardman
gingerbeardman / rq_parallel.sh
Created March 22, 2024 16:18
parallel version of script in the Alfred Remove Quarantine workflow
# Helpers
function app_as_json {
/usr/bin/osascript -l JavaScript -e 'function run(argv) { return JSON.stringify({
title: $(argv[0]).stringByDeletingPathExtension.lastPathComponent.js,
subtitle: argv[0],
type: "file",
icon: { type: "fileicon", path: argv[0] },
arg: argv[0]
})}' "${1}"
}
@gingerbeardman
gingerbeardman / 192.168.8.1.js
Created March 4, 2024 18:42
Web UI login script for Huawei 5G CPE Pro router (H112-370)
if ( window.location.pathname.startsWith('/html/index.html') ) {
document.getElementById("login_password").value = "YourPasswordGoesHere!!1!"
setTimeout(function(){ document.getElementById("login_btn").click(); }, 300);
}
@gingerbeardman
gingerbeardman / croc-tout.bas.txt
Last active February 13, 2024 15:13
CROC'TOUT! by Luís Godinho and Jean-Marc Odobez, May 1984, for CASIO PB-100 from https://archive.org/details/ord-poche-23/page/37/mode/1up
535 pas
2 PRINT "CROQ'TOUT !";:GOSUB 99
4 A=0:M=0:I=11:L=0:D=8
6 FOR B=11 TO 0 STEP -1
8 PRINT CSR A;"o";CSR B;">";
10 IF B\GEI;PRINT CSR I;"x";:IF A=I THEN 60
12 GOSUB 90:PRINT CSR B;"-";:GOSUB 90:IF A=B THEN 72
14 IF D>7 THEN 20
16 IF A=F THEN 50
@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