Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
l="/ip4/127.0.0.1/tcp/5001"
c="/ip4/127.0.0.1/tcp/9095"
ipfs="/usr/bin/ipfs"
if [[ "$@" =~ "--api" ]]; then
$ipfs "$@"
elif [[ "$1" = "--local" || "$1" = "-L" ]]; then
shift
$ipfs --api "$l" "$@"
from pyctr.crypto import CryptoEngine
from Cryptodome.Cipher import AES
from hashlib import sha256
a = CryptoEngine()
def print_diff(ori, enc, dec, postxt, *suffix):
if postxt == None:
return
if type(postxt) is tuple:
#!/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 September 8, 2023 14:55
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: