Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python2
#####
#ncchinfo.bin format
#
#4 bytes = 0xFFFFFFFF Meant to prevent previous versions of padgen from using these new files
#4 bytes ncchinfo.bin version or'd with 0xF0000000, to prevent previous versions of padgen from using these new files
#4 bytes Number of entries
#4 bytes Reserved
#
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(5, 5, "Hello world!", Color.new(255, 255, 255), TOP_SCREEN)
Screen.debugPrint(5, 5, "Here's a random number: "..math.random(1, 100), Color.new(255, 0, 0), BOTTOM_SCREEN)
Screen.flip()
while true do
if Controls.check(Controls.read(), KEY_B) then
@ihaveamac
ihaveamac / lpp-3ds.xml
Last active June 15, 2016 10:57
this might actually fix notifications
<!-- taken from RetroArch 3DS MAME nightlies -->
<targets selectable="false">
<!-- YouTube (USA)-->
<title mediatype="1">00040000000B0F00</title>
<!-- YouTube (Europe)-->
<title mediatype="1">00040000000CCD00</title>
<!-- YouTube (Japan)-->
<title mediatype="1">00040000000D3000</title>
<!-- Monster Hunter 4 Ultimate Special Demo (USA)-->
<title mediatype="1">000400000015FA00</title>
#!/usr/bin/env python2
# Convert 3DS errors to readable format
# plutooo // yuriks
# i added more things to it with mrrraou's help -ihaveamac
import sys
summaries = {
@ihaveamac
ihaveamac / b2bin.c
Last active July 3, 2016 00:32 — forked from SonoSooS/b2bin.c
Converts SmileBASIC .DAT files to real little-endian binary files
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef unsigned long long u64;
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
int main(int argc, char** argv)
#!/usr/bin/env python2
# THIS CREATES BAD CIAS - DON'T BOTHER
import binascii
import itertools
import hashlib
import math
import os
import struct
#!/usr/bin/env python3
import sys
import os
if len(sys.argv) != 2:
sys.exit("padfirm.py firm.bin")
filenamesplit = os.path.splitext(sys.argv[1])
filename = os.path.basename(filenamesplit[0])
#!/usr/bin/env python3
# Picross 3D: Round 2 amiibo puzzle unlocker
# based on https://github.com/Rohul1997/Picross-R2-Amiibo-Unlocker
import sys
if len(sys.argv) == 1:
sys.exit("p3dr2_amiibo_unlock.py <SAVEDATA>")
#!/usr/bin/env python3
import os
import sys
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
if len(sys.argv) < 4:
sys.exit("encrypt_keysector.py <otp> <secret_sector> <output>")