Skip to content

Instantly share code, notes, and snippets.

View Makonede's full-sized avatar
:shipit:
Modding BotW

Mako Makonede

:shipit:
Modding BotW
View GitHub Profile
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active November 30, 2025 20:59
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@jam1garner
jam1garner / switch-gdb-cheatsheet.md
Last active November 13, 2025 07:29
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

@Makonede
Makonede / switch_pro_zelda.css
Last active January 26, 2025 21:12
Gamepad Viewer - Nintendo Switch Pro Controller (Zelda) Skin
/*
This is a custom skin for Gamepad Viewer. Apply it by using the css URL parameter in the Gamepad Viewer URL:
https://gamepadviewer.com/?p=1&css=https://link.to/custom/skin.css
This skin is a slight modification of KernelZechs's design for the same controller made for Open Joystick Display.
I do not in any way take credit for the base controller image.
This is simply a port to Gamepad Viewer, with a few other minor changes such as corrected trigger text, centered house window,
and a player number.
*/
@ndeadly
ndeadly / homebrew_sysmodules.txt
Last active December 5, 2025 21:36
Title IDs for Nintendo Switch sysmodules and system applets
/* Homebrew sysmodules */
0000000000534C56 SaltyNX
00FF0000000002AA BootSoundNX
00FF0000636C6BF2 nx-reader
00FF0000636C6BFF sys-clk
00FF00006D7470FF mtp-server-nx
00FF0000A53BB665 SysDVR
00FF747765616BFF switch-sys-tweak
0100000000000052 switch-nfp-mitm
0100000000000081 nx-btred
@leoetlino
leoetlino / nnMain_150.cpp
Created April 26, 2019 11:17
BotW nnMain 1.5.0 vs 1.6.0
void nnMain()
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
sead::system::Print("0000002d\n"); // version number. 0x10 in 1.0.0
Profiler::Push("起動時間");
Profiler::Push("main");
_WriteStatusReg(FPCR, _ReadStatusReg(FPCR) | 0x1000000);
According to all known laws of aviation, there is no way a bee should be able to fly.
Its wings are too small to get its fat little body off the ground.
The bee, of course, flies anyway because bees don't care what humans think is impossible.
Yellow, black. Yellow, black. Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
Barry! Breakfast is ready!
Coming!
Hang on a second.
Hello?
@SamusAranX
SamusAranX / BARS format (to the best of my knowledge).txt
Last active October 5, 2025 10:37
BARS extractor (with improvised documentation)
IMPORTANT: All offsets are taken from KorokPot.bars! Actual offsets of dynamic-length data may vary in other files, but based
on the information here, it shouldn't be hard to find the real offsets. When in doubt, look at the code.
╒══════════╤══════════╤═════════╤════════════════════╤═══════════╤═════════════════════════╤════════════════════════════════════════════════════════════════════════╕
│ Offset │ -> Dec │ Size │ -> Dec │ Type │ Name │ Information │
╞══════════╪══════════╪═════════╪════════════════════╪═══════════╪═════════════════════════╪════════════════════════════════════════════════════════════════════════╡
│ 0x0 │ 0 │ 0x4 │ 4 │ │ BARS header │ Indicates that this is, in fact, a BARS file │
├──────────┼──────────┼─────────┼────────────────────┼───────────┼─────────────────────────┼────────────────────────────────────
@markhamilton1
markhamilton1 / pi.py
Created March 23, 2014 00:48
pi is a Python script that computes each digit of the value of pi. As long as this script runs it continues to generate digits. As a matter of full disclosure, I did not write this. I am posting it here as a means of preserving the algorithm and making it available to others.
import sys
def calcPi():
q, r, t, k, n, l = 1, 0, 1, 1, 3, 3
while True:
if 4*q+r-t < n*t:
yield n
nr = 10*(r-n*t)
n = ((10*(3*q+r))//t)-10*n
q *= 10
@agnoster
agnoster / README.md
Last active December 4, 2025 22:26
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark