Skip to content

Instantly share code, notes, and snippets.

View Coolsonickirby's full-sized avatar

Ali Hussain Coolsonickirby

View GitHub Profile
@jam1garner
jam1garner / switch-gdb-cheatsheet.md
Last active July 6, 2024 13:51
GDB for Switch Modding Cheatsheet/Tutorial

This is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.

If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.

(If you only need a quick reference Jump to the Appendix)

Installing GDB

First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of

@Radfordhound
Radfordhound / SegaNNSpec.h
Created June 28, 2020 19:36
Sega NN Binary Chunk File Specification
/*
Sega NN Binary Chunk File Specification
Version: 0.1 (WIP)
By: Radfordhound
Thanks to:
- ItsEasyActually For sharing his Sega NN findings with me, including
a list of platform IDs and NN library names used in
the creation of this specification.
@ruanbekker
ruanbekker / array-names.py
Created January 2, 2017 14:37
Array of First Names
names = ["Aaran", "Aaren", "Aarez", "Aarman", "Aaron", "Aaron-James", "Aarron", "Aaryan", "Aaryn", "Aayan", "Aazaan", "Abaan", "Abbas", "Abdallah", "Abdalroof", "Abdihakim", "Abdirahman", "Abdisalam", "Abdul", "Abdul-Aziz", "Abdulbasir", "Abdulkadir", "Abdulkarem", "Abdulkhader", "Abdullah", "Abdul-Majeed", "Abdulmalik", "Abdul-Rehman", "Abdur", "Abdurraheem", "Abdur-Rahman", "Abdur-Rehmaan", "Abel", "Abhinav", "Abhisumant", "Abid", "Abir", "Abraham", "Abu", "Abubakar", "Ace", "Adain", "Adam", "Adam-James", "Addison", "Addisson", "Adegbola", "Adegbolahan", "Aden", "Adenn", "Adie", "Adil", "Aditya", "Adnan", "Adrian", "Adrien", "Aedan", "Aedin", "Aedyn", "Aeron", "Afonso", "Ahmad", "Ahmed", "Ahmed-Aziz", "Ahoua", "Ahtasham", "Aiadan", "Aidan", "Aiden", "Aiden-Jack", "Aiden-Vee", "Aidian", "Aidy", "Ailin", "Aiman", "Ainsley", "Ainslie", "Airen", "Airidas", "Airlie", "AJ", "Ajay", "A-Jay", "Ajayraj", "Akan", "Akram", "Al", "Ala", "Alan", "Alanas", "Alasdair", "Alastair", "Alber", "Albert", "Albie", "Aldred", "Al
@flacle
flacle / sortEdgeList.py
Last active September 7, 2023 07:01
Algorithm to sort edge list of simple polygon for 2D and 3D (used in Blender, coded in Python)
"""
Script to sort edge list of a simple polygon with 1 face in Blender with Python.
Something like this:
0_________3
/ \
4/ \2
\ /
5\_________/1
becomes sorted as {[4,5],[5,1],...,[0,4]}.
Tested with Blender v2.67.