Skip to content

Instantly share code, notes, and snippets.

@GMMan
GMMan / S90overclock
Created January 25, 2021 20:25
Overclock script for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
}
stop() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
@GMMan
GMMan / gpce4_test.md
Created August 4, 2022 06:01
GPCE4 Test Program

GPCE4 Test Program

Entry

Before powering on the MCU, raise TEST pin high, configure wait states, select the test to run, and configure any inputs.

Test mode selection

Determines whether MCU starts in test mode.

@GMMan
GMMan / power_manage.md
Last active April 6, 2023 22:17
PlayStation Classic power management system, documented

PlayStation Classic power management system, documented

This document describes the power management system on the PlayStation Classic. It is mostly focused on the power_manage executable: the command line arguments, control files, and processes. It'll also touch upon the system service setup and startup script.

There are a few components to the power management system: the startup script, the power management service, thermal kernel modules, and supporting programs such as the USB reset script and thermal handling scripts. Let's start with

@GMMan
GMMan / be_battles.md
Last active February 11, 2023 23:33
Vital Bracelet BE Battle Logic

Vital Bracelet BE Battle Logic

If you're looking for Vital Bracelet (Digital Monster, Digivice -V-, Characters, Vital Hero) battle logic, please see here.

Encounter and setup

Each character on a BEM has three encounter chance percentages: one for phase 1-4, one for phase 5-7, and one for phase 8. For Dims and VBMs, there is no

@GMMan
GMMan / vb_battles.md
Last active December 31, 2022 00:59
Digimon Vital Bracelet Battle Logic

Digimon Vital Bracelet Battle Logic

If you're looking for Vital Bracelet BE battle logic, please see here.

Encounter and setup

Each Digimon on a Dim has two encounter chance percentages: one for when your current Digimon is a Rookie or Champion, and one for Ultimate or Mega. A

@GMMan
GMMan / build_xtrapc_ultra.md
Last active November 12, 2022 08:59
Xtra-PC Ultra Build Guide

Building Xtra-PC Ultra from Source

Superseded by this repo. See wiki page for build instructions.

@GMMan
GMMan / .gitignore
Last active September 6, 2022 11:02
Partial Steam Workshop manager implementation
solution
@GMMan
GMMan / passwords.txt
Created October 27, 2021 20:17
Dragon Quest: The Adventure of Dai - Portable Adventure passwords
Note that the first one appears to be a story unlock password. Not sure what
that means since I kind of skipped over the message box that displayed for it.
Original page for that is at https://www.takaratomy-arts.co.jp/specials/dqdai-pa/pw/
6B8HY 10xやくそう
NUGBV 30xやくそう
LBKWF 30xやくそう
K5L2Z 30xやくそう
YWVYC 30xやくそう
VCGVU 30xやくそう
@GMMan
GMMan / S40rndis
Created January 7, 2021 17:12
RNDIS enabler for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
echo "rndis" > "/sys/class/android_usb/android0/functions"
echo 1 > "/sys/class/android_usb/android0/f_rndis/wceis"
echo 1 > "/sys/class/android_usb/android0/enable"
sleep 1
ifconfig rndis0 169.254.215.100 netmask 255.255.0.0
}
@GMMan
GMMan / decompress_rwdata.cs
Created December 3, 2020 23:40
Game & Watch decompress RWdata snippet
static void DecompressRwData(BinaryReader br, int init_pos, string savePath)
{
br.BaseStream.Seek(init_pos + 4, SeekOrigin.Begin);
int startOffset = init_pos + 4 + br.ReadInt32();
uint length = br.ReadUInt32() >> 1; // lowest bit indicates whether to add base from r9
uint dest = br.ReadUInt32();
br.BaseStream.Seek(startOffset, SeekOrigin.Begin);
File.WriteAllBytes(savePath, DoDecompressRwData(br, length));
}