Skip to content

Instantly share code, notes, and snippets.

View Delation's full-sized avatar

Yeti Delation

  • behind you
  • 23:14 (UTC +01:00)
View GitHub Profile
@Delation
Delation / pythag.py
Last active November 2, 2023 00:57
Pythagorean Tripes
import math
def brute_search(recursion_depth:int = 200):
nums = list(range(recursion_depth))
i = 1
while i < len(nums):
a = nums[i]
for b in range(a, recursion_depth):
c = math.sqrt(a**2 + b**2) # Pythagorean theorem
if c.is_integer():
@MCMi460
MCMi460 / OptiFine in MultiMC.md
Last active January 23, 2024 16:36 — forked from jspanos71/OptiFine in MultiMC
How to install OptiFine in MultiMC (works with 1.20.1)

The OptiFine installer requires that your target version of Minecraft be installed in the default launcher and has been opened at least once. Do this first.

  1. Download OptiFine for your version
  2. Double-click and run using Java (you may need to install a version of Java)
  3. Select "Extract OptiFine"
    • This will put the extracted file of OptiFine in your Downloads folder.
    • Newer versions of Minecraft will require some finagling. Click to reveal these steps.
@MCMi460
MCMi460 / content_category.py
Last active January 25, 2024 16:29
Get the Content Categories from a 3DS Title ID
# Content Categories from Title ID 3DS
# https://www.3dbrew.org/wiki/Titles
title_id = 0x0004000E00086300 # Animal Crossing: New Leaf Update Ver. 1.5
target = int(hex(title_id)[3:7], 16) # Grab "ABCD" from 0xCCCCABCDLLLLLLRR
categories = [
('TWL', 0x8000),
('CanSkipConvertJumpId', 0x100),
('NotRequireRightForMount', 0x80),
('NotRequireUserApproval', 0x40),
('RequireBatchUpdate', 0x20),

Requirements

You will need a 3DS running Luma CFW, as well as a computer that is capable of creating an access point or running a proxy.

SSL Module Patch

It is necessary to disable Root CA Verification in order to capture all 3DS traffic. We recommend doing this with SciresM's 3DS-SSL-Patch.

For ease of use, you can download this premade code.ips patch and place it at /luma/titles/0004013000002F02/code.ips on your 3DS' SD card. Make sure that you've enabled Luma's game patching feature by holding down the select button while powering on your 3DS.

@ndeadly
ndeadly / sysmodules.txt
Last active June 12, 2024 19:52
switch sysmodules
/* Nintendo sysmodules */
0100000000000000 fs
0100000000000001 ldr
0100000000000002 ncm
0100000000000003 pm
0100000000000004 sm
0100000000000005 boot
0100000000000006 usb
0100000000000007 tma.stub/htc.stub
0100000000000008 boot2
@MeguminSama
MeguminSama / Discord Experiments.js
Last active July 25, 2024 10:24
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";