Skip to content

Instantly share code, notes, and snippets.

View wilm0x42's full-sized avatar
💭
treading spaghetti

Wilm wilm0x42

💭
treading spaghetti
View GitHub Profile
@wilm0x42
wilm0x42 / GPF_Doc.md
Last active August 26, 2022 13:21
How exactly the elusive GPF format works

The heck is this?

Gecko Patch File format, or GPF, is a feature of Gecko OS that the internet seems to have overlooked. (A google search yields just short of anything meaningful) This document aims to explain how to use this feature without the need to reverse engineer the source code.

But what's it DO?

GCT files, which you should be quite familiar with, contain code for Gecko OS to interpret and execute during gameplay. GPF files, on the other hand, simply contain chunks of data for Gecko OS to write out over specified places in memory, before the game boots. Here's how the format describes this information:

(Kap'n)
A
I once set sail
Dbm
For fifteen years or so
D B7
Traveled the seven seas
E
All Alone
@wilm0x42
wilm0x42 / Extra Assignments.md
Last active March 15, 2018 04:46
Home for any last-minute assignments in my C++ class.
@wilm0x42
wilm0x42 / linerunner.sh
Created March 9, 2018 16:31
Bash script to assist in memorizing scripts for plays
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: linerunner.sh <script>"
exit 0
fi
if [ -d work ]; then
echo -n
else
@wilm0x42
wilm0x42 / BarBot.py
Created June 9, 2018 17:43
Bartending bot for discord
import discord
import asyncio
from discord.ext.commands import Bot
from discord.ext import commands
import platform
import numpy as np
client = Bot(description="Bar Bot because HECK YEAH", command_prefix="!", pm_help = False)
client.bot_key = "Redacted for security. Look it up."
@wilm0x42
wilm0x42 / tempmonitor.sh
Created June 20, 2018 18:15
A script to prevent overheating on thinkpads
#!/bin/bash
tempHigh=false;
while [ true ]; do
temper=$(grep -oPm 1 '(?<=temp1:).*?(?=C)' <<< $(sensors))
temperint=$(sed 's/[^0-9]//g' <<< $(echo $temper | cut -d " " -f1))
echo $(echo $temper | cut -d " " -f1)
if (( $temperint > 900 )); then
notify-send OVERHEAT: $(echo $temper | cut -d " " -f1)
@wilm0x42
wilm0x42 / install_boot-repair.sh
Created July 19, 2018 17:43
Script to install boot-repair, 'cause manual installation sucks
#!/bin/bash
# Download debian packages
wget https://launchpad.net/~yannubuntu/+archive/ubuntu/boot-repair/+files/glade2script_3.2.3~ppa4_all.deb
wget https://launchpad.net/~yannubuntu/+archive/ubuntu/boot-repair/+files/boot-sav_4ppa65_all.deb
wget https://launchpad.net/~yannubuntu/+archive/ubuntu/boot-repair/+files/boot-repair_4ppa65_all.deb
# Attempt to install them
sudo dpkg -i ./glade2script_3.2.3~ppa4_all.deb
sudo dpkg -i ./boot-sav_4ppa65_all.deb
#!/usr/bin/env python3
import time
from rtmidi.midiutil import open_midiinput
from subprocess import call
import uinput
axis_cal = (0, 255, 0, 0)
import itertools
import random
import time
import rtmidi
midiout = rtmidi.MidiOut()
available_ports = midiout.get_ports()
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>8 Bit Music Theory Weeklies</title>
<link rel="stylesheet" href="/static/style.css" type="text/css" media="all">
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<h1>