Skip to content

Instantly share code, notes, and snippets.

Put corrupted OTP (named otp.mem, same as GodMode9 name) in the same location, run it, then the fixed OTP will be named otp_fixed.mem (will still write it even nothing is fixed)
#!/bin/sh
DELAY=1
PID=0
trap_int() {
if [ "$PID" = "0" ]; then
exit
else
#!/usr/bin/env bash
BOOT9=~/.3ds/boot9.bin
if [[ ! "$1" =~ ^- ]]; then
ESSENTIAL="$1"
shift
ARGC=$#
else
ESSENTIAL="${@:$#}"
@danny8376
danny8376 / sha256_12.c
Last active September 26, 2023 08:34
sha256_12 for mii lfcs hash
/* sha256_16/12
* again specialized to only take 16/12 bytes input and spit out the first 16/last 8 bytes
* again code dug out from mbed TLS
* https://github.com/ARMmbed/mbedtls/blob/development/library/sha256.c
*/
// adopted from: https://github.com/Jimmy-Z/bfCL/blob/master/cl/sha256_16.cl
#include <stdint.h>
const uint32_t K[] =
@danny8376
danny8376 / CartridgeSaveManager.gm9
Last active August 29, 2025 11:56
Simple Cartridge Save Manager GodMode9 Script
######################################################
# Simple Cartridge Save Manager GodMode9 Script #
# by DannyAAM #
######################################################
@Start
labelsel -s "Choose an Option." MainMenu_*
goto Start
.message-info img[src*=restream-icon] { background: url(https://s.gravatar.com/avatar/2b12045b1abe192cb93f7898595cb1a6); background-repeat: no-repeat; background-size: cover; padding-left: 1em; border-radius: 0.5em; }
.message-info img[src*=restream-icon]+.message-sender { visibility: hidden; }
.message-info img[src*=restream-icon]+.message-sender:after { visibility: visible; display: block; position: absolute; content: "\91E3\5230\4E00\96BB\7334\5B50"; top: 0; }
@danny8376
danny8376 / UserScript - StreamElements MediaRequest Auto-Skip Error Video.user.js
Last active March 27, 2021 18:31
Auto skip unplayable video for StreamElements MediaRequest
// ==UserScript==
// @name StreamElements MediaRequest Auto-Skip Error Video
// @namespace http://saru.moe/
// @version 0.1
// @description Auto skip unplayable video for StreamElements MediaRequest
// @author DannyAAM
// @match https://streamelements.com/widgets/mememachine*
// @match https://streamelements.com/dashboard/mediarequest/general
// @icon https://www.google.com/s2/favicons?domain=streamelements.com
// @grant none
@danny8376
danny8376 / VoiceChannelUserJoinNotification.plugin.js
Last active July 4, 2020 05:27
!!!OUTDATED!!! Use https://github.com/danny8376/DannyAAMBetterDiscordAddons/tree/master/Plugins/VoiceChannelUserJoinNotification instead! A simple BetterDiscord plugin for you to monitor specific users joining voice channels in spcific guilds.
/**
* @name VoiceChannelUserJoinNotification
* @description !!!OUTDATED 舊版本!!! A simple BetterDiscord plugin for you to monitor specific users joining voice channels in spcific guilds. Press Alt + V to open the voice log.
* @displayName VoiceChannelUserJoinNotification
* @authorId 275978619354873856
* @authorLink https://saru.moe/
* @source https://gist.github.com/danny8376/b0df6dcc78b8f9f6baee5f716d7971e6
*/
/* ========================================

Keybase proof

I hereby claim:

  • I am danny8376 on github.
  • I am dannyaamtw (https://keybase.io/dannyaamtw) on keybase.
  • I have a public key ASA9TiRPZj_NB5WUR8T4jpO8sT9cZnH5JQNaCa1ldiJH7Ao

To claim this, I am signing this object:

..........................F.
Failures:
1) CrystalLib::Parser types parses complete array
Failure/Error: var.type.should eq(IncompleteArrayType.new(PrimitiveType.int))
expected: #<CrystalLib::IncompleteArrayType:0xee2200 @type=#<CrystalLib::PrimitiveType:0xecafc0 @kind=Int>>
got: #<CrystalLib::ConstantArrayType:0xee2240 @type=#<CrystalLib::PrimitiveType:0xecafe0 @kind=Int>, @size=1>