Skip to content

Instantly share code, notes, and snippets.

🐋
~

James jaames

🐋
~
Block or report user

Report or block jaames

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jaames
jaames / ffmpeg.js_makefile
Last active Aug 1, 2019
custom ffmpeg.js makefile
View ffmpeg.js_makefile
# Compile FFmpeg and all its dependencies to JavaScript.
# You need emsdk environment installed and activated, see:
# <https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html>.
# Modified by Jaames:
# - disable WASM output in the latest version of emscripten (1.38.31)
# - add the pad videofilter
# - add wav and pcm_s16le decoder
PRE_JS = build/pre.js
@jaames
jaames / dailylogochallenge.txt
Created Jun 17, 2019
Logo challenge list from dailylogochallenge.com -- for people like me who dislike inbox clutter
View dailylogochallenge.txt
1. Rocketship Logo (Aerolite, Axis, Comet, Quasar)
2. Hot Air Balloon (Lift, Crown (the very top part of the balloon), Whoosh)
3. Panda Logo (Panda Global, Bamboo, Endangered Panda Conservation)
4. Single Letter Logo
5. Driverless Car Logo (Autonome, Vrooom, Onward)
6. Coffee Shop (Dylan's Coffee, The Roasted Bean, Tazza)
7. Fashion Brand Wordmark (OAKAO, Deities, Adams & Abigail)
8. Ski Mountain Logo (Brass Peak, Mount Blanco, Traverse, Snowdrop)
9. Streaming Music Startup (Beat, Pitch, Bass)
10. Flame Logo (Sizzle, Liight, Flint & Flame)
View 3ds_packet_capture.md

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.

@jaames
jaames / ptcl.py
Created Apr 2, 2019
unfinished nintendo particle format (.ptcl) parser
View ptcl.py
# .ptcl parser for miitomo
# heavily unfinished, i couldn't work out how to find subtexture sizes
import struct
import numpy as np
from PIL import Image
class PTCLSection:
def __init__(self, magic=b'', offset=0, size=0, data_offset=0):
self.magic = magic
@jaames
jaames / kwz_adpcm_decoder.py
Last active May 28, 2019
kwz adpcm decoder
View kwz_adpcm_decoder.py
import numpy as np
import wave
import audioop
from sys import argv
step_table = np.array([
7, 8, 9, 10, 11, 12, 13, 14, 16, 17,
19, 21, 23, 25, 28, 31, 34, 37, 41, 45,
50, 55, 60, 66, 73, 80, 88, 97, 107, 118,
130, 143, 157, 173, 190, 209, 230, 253, 279, 307,
@jaames
jaames / manifest.json
Last active Dec 18, 2018
Webarchive asset manifest for Miitomo
View manifest.json
{
"remoteVersionUrl": "https://download-cdn.miitomo.com/native/20180125111639/manifests/v2_20180405_3_android/version.json",
"remoteManifestUrl": "https://download-cdn.miitomo.com/native/20180125111639/manifests/v2_20180405_3_android/manifest.json",
"packageUrl": "https://web.archive.org/web/0id_",
"version": "v2.0.1481",
"engineVersion": "2",
"assets": {
"20150101afesgaeukgwebp.zip": {
"md5": "",
"path": "http://download-cdn.miitomo.com/native/20180125111639/android/v2/20150101afesgaeukgwebp.zip",
View kwfc-guide.md

Setup

  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 178.62.43.212 and Secondary DNS to 1.1.1.1. Select "OK" to confirm.

@jaames
jaames / mii-qr.py
Created Jul 24, 2018
Decrypt Mii QR code data from 3DS / Wii U / Miitomo
View mii-qr.py
# Decrypt Mii QR codes from 3DS / Wii U / Miitomo
# Usage: python3 <input file> <output file>
# QR docs: https://www.3dbrew.org/wiki/Mii_Maker
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
jaames / kwzSignature.py
Last active Feb 9, 2019
resign a kwz for flipnote studio 3d. handles signature and all crc32 checksums.
View kwzSignature.py
# usage: python3 kwzSignature.py <privkey.pem> <target.kwz>
# rsa module installed with:
# pip3 install rsa
# documentation here:
# https://stuvel.eu/files/python-rsa-doc/usage.html
import struct
import rsa
import zlib
@jaames
jaames / drawingimage.py
Last active Feb 9, 2019
python class for processing miiverse drawing images
View drawingimage.py
from PIL import Image
SAMPLING_METHODS = {
"ANTIALIAS": Image.ANTIALIAS,
"BILINEAR": Image.BILINEAR,
"BICUBIC": Image.BICUBIC,
"NEAREST": Image.NEAREST
}
class drawingImage:
You can’t perform that action at this time.