Skip to content

Instantly share code, notes, and snippets.

View up-n-atom's full-sized avatar

up-n-atom

View GitHub Profile
@up-n-atom
up-n-atom / wsc.ino
Last active March 21, 2021 18:35 — forked from krisha/induction_hob.ino
Arduino code for reading/writing Microchip EEPROM 93LC66
/* Arduino code to read out and write EEPROM 93LC66
which is used in an AEG 55GAD84AE induction hob.
Some bits were flipped depending on temperature.
Writing it back solved this problem.
Modified for the STM32duino Blue Pill to read the
WonderSwan Color/Swan Crystal.
*/
#define DELAY_MS 10
@up-n-atom
up-n-atom / WSC_EEPROM.bt
Last active January 26, 2023 23:15
010 Editor WonderSwan EEPROM binary template
//------------------------------------------------
//--- 010 Editor v8.0 Binary Template
//
// File: WSC_EEPROM.bt
// Authors: up-n-atom
// Version: 1.0
// Purpose: Parse WonderSwan Color/SwanCrystal internal EEPROM
// Category:
// File Mask: *.bin
// ID Bytes:
@up-n-atom
up-n-atom / ws_eeprom.hexpat
Last active May 17, 2023 04:28
ImHex WonderSwan EEPROM pattern
#include <std/io.pat>
#include <std/mem.pat>
#include <std/string.pat>
#define SAVE_DATA_SIZE 96
#define NAME_LENGTH 16
namespace type {
struct PackedBCD<auto Nibbles> {
u8 bytes[Nibbles / 2];
@up-n-atom
up-n-atom / ws.rules
Last active February 9, 2023 06:21
Yara Rules for WonderSwan LSI-C toolchain
rule font_load
{
strings:
$STR = { 51 52 56 57 1e 8e c2 8b d9 26 8b 77 ?? 03 f1 d1 e0 8b f8 8b bd ?? ?? 26 8b 4f ?? c1 e1 03 8e 06 ?? ?? 8e da (f3 a5 | a5 e2 fd ) 1f 5f 5e 5a 59 cb }
condition:
$STR
}
rule put_sprite
@up-n-atom
up-n-atom / sriov_net.sh
Last active March 9, 2024 03:34
TrueNAS Scale SR-IOV Init Script
#!/bin/sh
PF='ens1f${p}'
VF=${PF}'v${v}'
NUM_PF=2
# space seperated number of virtual functions per physical function
NUM_VF=3

Compile MicroPython for the WEMOS W600-PICO on Fedora Workstation 37

micropython/micropython#4679

toolbox create
toolbox enter
sudo dnf install arm-none-eabi-gcc arm-none-eabi-newlib make gcc
mkdir w600 && cd $_
wget http://winnermicro.com/upload/1/editor/1584693446529.zip
unzip 1584693446529.zip -d ./sdk
rm 1584693446529.zip
@up-n-atom
up-n-atom / debian-bullseye-genieacs.md
Last active May 16, 2025 08:48
Swap back to public zone

Install GenieACS 1.2.9 on Debian 11 Bullseye

Note

At this time, MongoDB haven't packaged the community edition for Debian 12 Bookworm

Install Prerequisites

@up-n-atom
up-n-atom / an5500-jailbreak.md
Last active December 24, 2025 12:09
Axon Networks AN5500 Jailbreak
@up-n-atom
up-n-atom / licdec.go
Last active June 20, 2024 18:31
CircuitCam license decoder
package main
import (
"bytes"
"crypto/rsa"
"crypto/x509"
"encoding/binary"
"fmt"
"math/big"
"os"