This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<h1>upload an FFL resource, then open your console</h1> | |
<p> | |
if you need it, get it from archive.org: <a target="_blank" href="https://web.archive.org/web/20180502054513/http://download-cdn.miitomo.com/native/20180125111639/android/v2/asset_model_character_mii_AFLResHigh_2_3_dat.zip">https://web.archive.org/web/20180502054513/http://download-cdn.miitomo.com/native/20180125111639/android/v2/asset_model_character_mii_AFLResHigh_2_3_dat.zip</a> | |
<div style="font-size: 11px;"> | |
before you try, if you paste that below it won't work since archive.org has no CORS policy :( this proxy from kaeru would work if it were https: <a target="_blank" href="http://ia-proxy.fs3d.net:8989/20180502054513id_/http://download-cdn.miitomo.com/native/20180125111639/android/v2/asset_model_character_mii_AFLResHigh_2_3_dat.zip">http://ia-proxy.fs3d.net:8989/20180502054513id_/http://download-cdn.miitomo.com/native/20180125111639/android/v2/asset_model_character_mii_AFLResHigh_2_3_dat.zip</a> | |
</div> | |
</p> | |
<!-- Inline HTML |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
/* eslint @stylistic/indent: ['error', 4] -- Define indent rules. */ | |
/** | |
* Convert 3DS/Wii U format Mii data (Ver3StoreData/FFLStoreData) to | |
* struct format used on studio.mii.nintendo.com before obfuscation. | |
* Ported from original C function, decompiled to pseudocode: https://gist.github.com/ariankordi/e6e66b8b03b1424d6e4e489fd9dd83bf | |
* @param {Uint8Array} dst - 46-byte destination raw studio data (unobfuscated / charInfoStudio). | |
* @param {Uint8Array} src - 96-byte source Ver3StoreData. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mitmproxy.http | |
from mitmproxy import ctx | |
import lz4.block | |
import binascii | |
# NOTE: miitomo common key is '9ec1c78fa2cb34e2bed5691c08432f04' | |
COMMON_KEY = "9ec1c78fa2cb34e2bed5691c08432f04" | |
SESSION_ID_COOKIE_NAME = "player_session_id" | |
def transform_common_key(s): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://sentry.io/api/* | |
# remove DISCORD(tm) NITRO(tm) button below friends list button in most cases | |
discord.com##[href="/store"] | |
discord.com##[href="/shop"] | |
discord.com##[href="/discovery"] | |
discord.com##[href="//discord.com/snowsgiving"] | |
discord.com##[href="/activities"] | |
discord.com##div[data-list-item-id=private-channels-uid_40___snowsgiving] | |
# remove discord ready animation n video | |
discord.com##video[class^="ready"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from struct import pack | |
import os | |
from kaitaistruct import KaitaiStream, BytesIO | |
if len(sys.argv) < 4: | |
print("CLI Usage: python mii2studio.py <input mii file / qr code / cmoc entry number> <output studio mii file> <input type (wii/ds/3ds/wiiu/miitomo/switchdb/switch/studio)>\n") | |
input_file = input("Enter the path to the input file (binary file or QR Code), a CMOC entry number, or a URL to a QR Code: ") | |
output_file = input("Enter the path to the output file (which will be importable with Mii Studio): ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: Meant to be built in my FFL-Testing repo, placed in src. | |
// LDFLAGS="-lssl -lcrypto" make SRC=src/extract-ffsd-from-ffl-odb.cpp EXEC=extract-ffsd-from-ffl-odb | |
#include <filedevice/rio_FileDeviceMgr.h> | |
#include <nn/ffl.h> | |
// get mii studio title id | |
#include <nn/ffl/detail/FFLiFileWriteBuffer.h> | |
#include <nn/ffl/FFLiMiiData.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys # for executable and exit | |
# OpenCV opens the camera and provides basic QR scanning. | |
# pip3 install opencv-python | |
try: | |
import cv2 | |
except ImportError as e: | |
# red then bold | |
print('\033[91m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pw=$(ffmpeg -hide_banner -loglevel fatal -video_size 720x480 -f v4l2 -ss 1 \ | |
-i /dev/v4l/by-id/usb-Elgato_Game_Capture_HD60_X_*-video-index0 \ | |
-frames:v 1 -f apng - \ | |
| zbarimg --quiet --raw --oneshot - \ | |
| awk -F ';' '{printf substr($3, 3)}') | |
if [ ! -z "$pw" ]; then | |
nmcli connection modify ENTER_SWITCH_SSID_HERE wifi-sec.psk "$pw" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
# import the service so a custom executable path can be specified | |
from selenium.webdriver.chrome.service import Service | |
from shutil import which | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
import selenium.common.exceptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>arian.splatnet-kindle</string> | |
<key>Program</key> | |
<string>/opt/homebrew/bin/python3</string> | |
<key>ProgramArguments</key> | |
<array> |
NewerOlder