Skip to content

Instantly share code, notes, and snippets.

View probably-not-porter's full-sized avatar
🥑
making toast

Porter Libby probably-not-porter

🥑
making toast
View GitHub Profile
@probably-not-porter
probably-not-porter / k36.md
Last active June 21, 2025 04:23
My experiences working with a generic K36 emulation console

Notes on the K36

This funny console was given to me as a gift and I've spent more time figuring out the hardware and what it can do than I have playing actual games on it. Disclaimer: I've used a linux machine to do all my editing/customizing, some of these things likely won't work the same (or at all) on other OSs.

1. Backing up the SD card

I've heard many reports of the SD cards that these consoles come with being unreliable, so one of my first orders of business was to make a clone of it on a higher quality SD (not the highest quality, but with at least one with a brand name, in my case). I created an ISO image of the original SD (this took a while), swapped to the new SD card and copied the backup image onto it.

sudo dd if=/dev/sda of=~/k36-backup.img bs=4M status=progress
sudo dd if=~/k36-backup.img of=/dev/sda bs=4M status=progress
@probably-not-porter
probably-not-porter / fry.py
Created May 12, 2025 00:35
Great tool to absolutely destroy an image.
# python3 fry.py IMAGENAME CYCLES
import argparse,sys,random
from PIL import Image
from PIL import ImageFilter
def fry(target):
x, y = target.size
# 1. Put a copy of the original TimesNewRoman in the same directory.
# 2. Make sure to rename it times-REGULAR.ttf.
# 3. Enjoy an upgraded font.
import fontforge
import random
chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
f = fontforge.open('times-REGULAR.ttf')
for x in chars:
g = f[x]
l = g.foreground
# Find the clue, do the math, enter the number
import hashlib
letters = ["N","S","F","8","O","k","r","y","W","a","Q","h","B","l","g","o","e","Z","S"," ","3","N","w","C","V","H","s","o","v","j","Y","Z"," ","o","k","e","m","K","A"," ","k","g","I","R","f","i","c","P","x","D","s","v","n","j","0","g","z","t","S","Z","c","O","C","g","t","K","7","C","U","F","V","e","X","K","a","u","k","e","X","i","N","y","L","o","N","y","W","z","f","R","9","q","5","t","x","h","j","g","h","d","3","M","s","b","H","a","5","d","3","h","a","d","A","p","p","T","d","i","y","E","E","B","r"," ","x","m","A","T","h","E","y","D","t","z","n"," ","z","n","N","h","2","V","d","E","e","9","4","w","q","T","o","o","N","U","8","e","E","m","y","i","j","S","7","N","9","&","N","h","A","y","K","U","Z","R","T","q","G","Q","t","9","n","8","l","Z","7","6","H","M","J","s","p","v","C","Y","m","E","e","h","2","j","O","m","p","j","k","t","g","1","1","q","T","T","E","1","e","U","L","n","z","7","i","Y","3","x","g","o","q","c","e","M","j","L","U","3","i","y","L","V