Skip to content

Instantly share code, notes, and snippets.

View leo60228's full-sized avatar
🦀
🦀

leo60228 leo60228

🦀
🦀
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"creator": "Yosys 0.9+4052 (git sha1 687f381b69, gcc 10.3.0 -fPIC -Os)",
"modules": {
"$paramod$6b02c6e2b61a3396fb091bf3c2b7ebe66da395c1\\picorv32": {
"attributes": {
"dynports": "00000000000000000000000000000001",
"hdlname": "\\picorv32",
"src": "../picorv32.v:62.1-2162.10"
},
"parameter_default_values": {
@foone
foone / rptimage.py
Created September 19, 2020 04:11
RPT decoder for Super Mario 64 RPT textures from Super Mario 3D All-Stars
# To use:
# 1. extract the NCAs from the NSP (I used NSCB)
# 2. extract the contents of 5977df9d4848858cbde157c6723dd1de.nca
# 3. inside 1 [romfs]\rom\Stardust_JP\Textures you'll find texture_pack.cpio. Extract it (I uzed 7zip)
# 4. run this python 2.7 script in the directory with all the .rpt files. It'll create a out folder containing all the PNGs
import struct,glob,os,zlib
from PIL import Image
OUTDIR='out'
@worawit
worawit / ildumper_script_reader.py
Last active December 6, 2019 21:08
ghidra script for read script.py from Il2CppDumper
# -*- coding: utf-8 -*-
import ghidra.program.model.symbol.SourceType
import re
functionManager = currentProgram.getFunctionManager()
#minAddress = currentProgram.getMinAddress()
baseAddress = currentProgram.getImageBase()
USER_DEFINED = ghidra.program.model.symbol.SourceType.USER_DEFINED
@justgerd
justgerd / 1_switchmemes.md
Last active September 25, 2019 15:26
ReSwitched #offtopic pins.

Accuracy of CTU simulating the Switch

Accuracy meme

Confused people

Switch to Linux distros

Accuracy of Mephisto emulating the Switch

Accuracy meme 2

Windows Update vs Switch Hacking

#!/usr/bin/env python3
import os
"""
Cursed Code.
This code literally patches your kernel memory, proceed at your own risk.
Tested on Ubuntu 17.10 and Arch, x86_64. Should work on other distros, maybe even other architectures!