Skip to content

Instantly share code, notes, and snippets.

@jam1garner
jam1garner / switch-gdb-cheatsheet.md
Last active April 15, 2025 22:44
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

@jeffvella
jeffvella / InvertSelection.cs
Created January 3, 2019 12:47
Invert the current Unity project / assets selection
using System;
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Object = UnityEngine.Object;
public class InvertSelection : ScriptableWizard
{
[MenuItem("Assets/Selection/Invert", false, 50)]
@Mygod
Mygod / export-ble-infos.py
Last active December 30, 2024 18:38
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0