Skip to content

Instantly share code, notes, and snippets.

View simontime's full-sized avatar
🥨

Simon Aarons simontime

🥨
View GitHub Profile
@Treeki
Treeki / mgsr_nro_extractor.py
Created June 25, 2021 15:41
Mario Golf: Super Rush NRO extractor
# a massive kludge by Ninji
# extracts the encrypted NRO from Mario Golf: Super Rush
#
# requires Python 3 and the lz4 and unicorn modules
import struct
import lz4.block
from unicorn import *
from unicorn.arm64_const import *
@twilight-sparkle-irl
twilight-sparkle-irl / deadfish.js
Created January 16, 2021 06:58
deadfish implementation in __defineGetter__
// https://esolangs.org/wiki/Deadfish
$_ = function(e,v) {
var v = (v===undefined||v in {255:0,'-1':0})?0:v
var e = e===undefined?'':e
let x = {e:e,v:v}
x.__defineGetter__('i', ((a,b)=>(()=>$_(a,++b)))(e,v))
x.__defineGetter__('d', ((a,b)=>(()=>$_(a,--b)))(e,v))
x.__defineGetter__('s', ((a,b)=>(()=>$_(a,b*b)))(e,v))
x.__defineGetter__('o', ((a,b)=>(()=>$_(a+String.fromCodePoint(b),b)))(e,v))
@shchmue
shchmue / settings_save_offsets.txt
Last active March 16, 2023 05:41
Descriptions and types of contents in Settings saves for the Nintendo Switch.
Updated as of firmware 16.0.0.
All values except firmware versions and floats are hex.
Field names are either official symbols or derived from the name of the accessor/mutator function.
Firmware version information for each field is not indicated but likely maps neatly to the firmware versions in which accessor/mutator functions for the given field were introduced. See: https://switchbrew.org/wiki/Settings_services
PrivateSettings 8000000000000052
offset size type/name default
0 10 GAP
10 20 nn::settings::system::InitialLaunchSettings 0
@aveao
aveao / thomleg.py
Created September 16, 2018 14:55
hi , Can it be possible to atmosphere makefile have 1 by modules because it's annoying when we want fusee-secondary to build everything
import random
# Thomleg phrase simulator by SimonMkWii, ported to Python by AveSatanas
# Original:
# https://github.com/simonmkwii/Ozone/blob/ddf7ec267b9d7de2adb8f397e820fa7e13b6eacb/ThomTools.cs
def generate_phrase():
first = ["can ",
"can to ",