Skip to content

Instantly share code, notes, and snippets.


James jaames

View GitHub Profile
jaames /
Last active Jul 5, 2020
Colors Live Windows beta guide

Installing the Colors Live beta

The Windows beta is distributed through the Discord game library. To access it, head to the Colors Live Discord server, at the top of the channel list you should see a tag called Dev Switch, click there, then click the Add to library button in the panel to the right.

Once the app has been added, go to your library by clicking the In Library header on the same panel. You should be able to install and launch the app from there!

Installing updates

To install an update, go to your Discord library and select the Colors Live beta. You may need to manually start the update install process by clicking the play button towards the top-right of the library page. One it has downloaded, you will be able to launch the app as normal.

jaames /
Created Jun 25, 2020
Redownload content from a given .saz Fiddler dump
import zipfile
import re
import urllib.request
from pathlib import Path
from sys import argv
if len(argv) < 3:
print('python3 < input.saz > < output dir >')
jaames / dnslog.js
Last active Jun 25, 2020
Crappy NodeJS DNS logger for debugging (plus response overrides!)
View dnslog.js
const dnsServer = require('dnsd');
const { Resolver } = require('dns').promises;
const overrides = [
{ name: '', type: 'A', addresses: [``, ``, ``] }
const resolver = new Resolver();
jaames /
Last active Jun 10, 2020
Useful Little Big Planet web endpoints

Level info

Returns the level title, icon, number of plays/hearts/lists and game (...kinda) for a given level ID

GET{ Level ID }

Param Values
theme default (required)
jaames /
Last active Mar 18, 2020
Animal Crossing New Horizons font decryptor for .bfttf or .bfotf files
# Animal Crossing New Horizons font decryptor for .bfttf or .bfotf files
# Usage: python3 input.bfttf output.ttf
from sys import argv
# might be other keys, who knows
key = [0x49, 0x62, 0x18, 0x06]
def xor(data, key):
offset = 0
jaames /
Last active Mar 11, 2020
Fancy CSS link underlines with inline SVGs (plus embedded animations!)
jaames /
Last active Apr 18, 2020
kwz optimisation idea
# original code:
for tile_offset_y in range(0, 240, 128):
for tile_offset_x in range(0, 320, 128):
# each large tile is made of 8 * 8 small tiles
for sub_tile_offset_y in range(0, 128, 8):
y = tile_offset_y + sub_tile_offset_y
# if the tile falls off the bottom of the frame, jump to the next large tile
if y >= 240: break
for sub_tile_offset_x in range(0, 128, 8):
View KwzParser.php
class KwzParser {
protected $data = null;
protected $offset = 0;
protected $size = 0;
public $sections = [];
public $meta = null;
public $frameMeta = null;
jaames / screensizes.json
Last active Oct 7, 2019
list of generic screensizes pulled from
View screensizes.json
"size": {
"width": 2560,
"height": 1440
"group": "extra-extra-large",
"devices": [
"Apple iMac 27-inch (5K)"
You can’t perform that action at this time.