Instantly share code, notes, and snippets.


james jaames

View GitHub Profile
jaames / manifest.json
Last active Dec 18, 2018
Webarchive asset manifest for Miitomo
View manifest.json
"remoteVersionUrl": "",
"remoteManifestUrl": "",
"packageUrl": "",
"version": "v2.0.1481",
"engineVersion": "2",
"assets": {
"": {
"md5": "",
"path": "",
View ppmparser.php
class PPMParser {
protected $data = null;
protected $offset = 0;
public $header = [];
public $meta = null;
public $animationHeader = null;
public $soundHeader = null;
// This key can only be used to verify PPM signatures, not sign them


  1. Enter the Nintendo WFC Settings menu, which can be found in any WFC-enabled game.

  2. Select "Nintendo Wi-Fi Connection Settings".

  3. Set up a new connection if you haven't already done so, then select the connection slot you wish to use.

  4. Scroll down and set "Auto-obtain DNS" to "No", then set Primary DNS to and Secondary DNS to Select "OK" to confirm.

jaames /
Created Jul 24, 2018
Decrypt Mii QR code data from 3DS / Wii U / Miitomo
# Decrypt Mii QR codes from 3DS / Wii U / Miitomo
# Usage: python3 <input file> <output file>
# QR docs:
from Crypto.Cipher import AES
from sys import argv
key = bytes([0x59, 0xFC, 0x81, 0x7E, 0x64, 0x46, 0xEA, 0x61, 0x90, 0x34, 0x7B, 0x20, 0xE9, 0xBD, 0xCE, 0x52])
with open(argv[1], "rb") as infile, open(argv[2], "wb") as outfile:
jaames /
Last active Feb 9, 2019
resign a kwz for flipnote studio 3d. handles signature and all crc32 checksums.
# usage: python3 <privkey.pem> <target.kwz>
# rsa module installed with:
# pip3 install rsa
# documentation here:
import struct
import rsa
import zlib
jaames / gist:02130b89fcd2a08f3d4aa87b18e32fe3
Last active Feb 9, 2019
python class for processing miiverse drawing images
from PIL import Image
class drawingImage:
jaames /
Last active Jun 19, 2018
crappy miitomo asset scraper (v2)
# crappy miitomo asset downloader
# usage: python3 < url for manifest.json >
from pathlib import Path
from io import BytesIO
from sys import argv
import zipfile
import urllib.request
import json
jaames /
Last active Oct 31, 2018
Full set of questions dumped from Miitomo
jaames /
Last active Nov 30, 2018
custom flipnote thumbnail tool
# Custom Flipnote (.ppm) Thumbnail Tool
# Create a ppm thumbnail from any 64 x 48 image
# Requires Pillow -
# By Jaames < | @rakujira on twitter>
# Usage: python3 input.ppm thumb.png
from PIL import Image
from sys import argv