Skip to content

Instantly share code, notes, and snippets.

@Prof9
Prof9 / bn4tourney.lua
Created October 18, 2015 01:03
MMBN4 Lua tournament matches viewer
local rng = -1;
function rngNext()
rng = rng + 1;
return rng;
end
function getTourneyBoard()
local tourneyNum = memory.readbyte(0x0200ACC5);
local boardPtr = 0x02001460 + tourneyNum * 0x20;
@Prof9
Prof9 / EncounterChanceCalc.cs
Last active September 15, 2016 22:17
Star Force encounter chance calculator
using System;
using System.Collections.Generic;
namespace EncounterChanceCalc {
class Program {
static void Main(string[] args) {
// SF1
//decimal rate = 0.10M;
// SF2 and SF3
decimal rate = 0.05M;
@Prof9
Prof9 / mixernoshadow.user.js
Last active June 16, 2017 02:50
Mixer No Shadow
// ==UserScript==
// @name Mixer No Shadow
// @description Makes the stream title, loading overlay and controls invisible on mixer. Ctrl+M toggles visibility of the controls.
// @author Prof. 9
// @version 0.1
// @match https://mixer.com/embed/player/*
// @run-at document-body
// @namespace prof9.mixernoshadow
// ==/UserScript==
@Prof9
Prof9 / zbmobile.js
Last active September 27, 2017 01:58
ZetaBoards mobile ads. Requires jQuery.
/*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*/
{
var main = $('#main');
@Prof9
Prof9 / drodtas.py
Created November 1, 2017 02:14
Input replay PoC on PS4 Remote Play using FreePIE
import time
fps = 60
print_interval = 10
def getTime():
return int(time.clock() * 1000)
def getFrameCount():
global start, fps, delay
@Prof9
Prof9 / tomc.asm
Created December 5, 2017 21:29
The One Mod Card
CARD_NO equ 0
ENGLISH equ 1
REVISION equ 0
.gba
.create "card.msg",0x0
.area 0x5C
@@header:
.dh @@scr0 - @@header
@Prof9
Prof9 / LZ77Decompress.cs
Created August 28, 2014 20:05
GBA LZ decompression function in C#
/// <summary>
/// Decompresses LZ77-compressed data from the given input stream.
/// </summary>
/// <param name="input">The input stream to read from.</param>
/// <returns>The decompressed data.</returns>
public static MemoryStream Decompress(Stream input) {
BinaryReader reader = new BinaryReader(input);
// Check LZ77 type.
if (reader.ReadByte() != 0x10)
@Prof9
Prof9 / scrape.js
Last active June 21, 2022 01:17
Quick-n-dirty Photobucket scraper
// Quick-n-dirty Photobucket scraper
// Dumps one page of photos on Photobucket at a time.
// You'll have to do the folder management yourself.
// Hey, it beats saving everything one by one!
//
// Before you use it:
// Change the 3 on line 39 to the number of digits in the server number of your Photobucket album.
// (You know... the XXX numbers in the url http://sXXX.photobucket.com)
//
// How to use:
@Prof9
Prof9 / guide.md
Last active June 25, 2022 04:21
Kaeru WFC connection guide for Nintendo Wi-Fi USB Connector

Notes:

  • For some people setting DNS settings in the Nintendo Wi-Fi USB Connector properties doesn't seem to work, if that applies to you you may have to set up DNS in the internet-facing connection properties instead.

Connection guide

  1. Set up a virtual machine running Windows XP.

    • Plenty of guides online on how to do this, so I won't be going into too much detail here.
    • I'd recommend using VirtualBox and the "Windows XP Mode" method found here, as all the downloads you need are from official sources: https://www.makeuseof.com/tag/download-windows-xp-for-free-and-legally-straight-from-microsoft-si/. NOTE: Skip the part where it tells you to set up Windows XP Virtual Machine Network Settings, you don't need to do this if the internet connection in your VM is already working.
@Prof9
Prof9 / LiveBot.js
Last active September 22, 2022 18:35
LiveBot: node.js script that notifies you when someone starts streaming specific games on Twitch or Hitbox.
var http = require("http");
var https = require("https");
// Stream objects are passed around in the code below. These are the properties:
// stream.platform = "Twitch" or "Hitbox"
// stream.name = name of the streamer
// stream.game = name of game (set in updateGame() call)
// stream.desc = stream status/description
// stream.url = url of stream
// stream.viewers = current amount of viewers