This file contains 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
const dnsServer = require('dnsd'); | |
const { Resolver } = require('dns').promises; | |
const overrides = [ | |
{ name: 'game-prod.indreams.me', type: 'A', addresses: [`52.213.80.7`, `54.194.121.14`, `34.251.37.65`] } | |
]; | |
const resolver = new Resolver(); | |
resolver.setServers(['1.1.1.1']); |
This file contains 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 zipfile | |
import re | |
import urllib.request | |
from pathlib import Path | |
from sys import argv | |
if len(argv) < 3: | |
print('usage:') | |
print('python3 sazrip.py < input.saz > < output dir >') | |
exit() |
This file contains 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
checksum_dict = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
def calc_check_digit(filename): | |
sumc = int(filename[0:2], 16) | |
for i in range(1, 16): | |
char = ord(filename[i]) | |
sumc = (sumc + char) % 256 | |
return checksum_dict[sumc % len(checksum_dict)] | |
def set_check_digit(filename): |
This file contains 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
# 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 |
This file contains 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
<?php | |
// Project Kaeru KWPCF builder | |
// Written by James Daniel | |
// github.com/jaames / rakujira.jp | |
// ---- USAGE ---- | |
// create a new kaeruPrecache instance: | |
// |
This file contains 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
<?php | |
namespace App\Formats; | |
class PPMParser { | |
protected $data = null; | |
protected $offset = 0; | |
public $header = []; | |
public $meta = null; | |
public $animationHeader = null; |
This file contains 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
<?php | |
// ====== Mario Kart RKG (ghost trial data) Parser ====== | |
// | |
// Based on the documentation found here: | |
// http://wiki.tockdom.com/wiki/RKG | |
// | |
// Written by James Daniel | |
// github.com/jaames | rakujira.jp |
This file contains 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 numpy as np | |
from PIL import Image | |
from sys import argv | |
# format structure: | |
# header | |
# 4 bytes seem to be a checksum of some kind? they're definitely not a timestamp | |
# 8 bytes are some kind of magic/ident? (10RC1000 for me) | |
# 4 bytes padding ? |
This file contains 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
<?php | |
// ====== Mii Data Parser ====== | |
// | |
// Based on the documentation found here: | |
// http://wiibrew.org/wiki/Mii_Data#Mii_format | |
// | |
// Written by James Daniel | |
// github.com/jaames | rakujira.jp | |
// ====== Usage ====== | |
// |
This file contains 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/python | |
# Comment PPM -> NPF or Image script for Sudomemo | |
# github.com/Sudomemo | www.sudomemo.net | |
# | |
# Written by James Daniel | |
# github.com/jaames | rakujira.jp | |
# | |
# Command Line Args: |