Skip to content

Instantly share code, notes, and snippets.

View akechi-haruka's full-sized avatar

Haruka akechi-haruka

  • Austria
  • 01:28 (UTC +01:00)
View GitHub Profile
@akechi-haruka
akechi-haruka / config_analog.json
Created June 19, 2025 13:26
APMv3 config.json with analog support
{
"common" :
{
"max_player" : 1,
"language" : "english",
"custom_resource_id" : [ "common" ]
},
"error" :
{
@akechi-haruka
akechi-haruka / winhttptest.c
Created April 10, 2025 15:51
WinHTTP HTTPS certificate tester
#include <stdio.h>
#include <windows.h>
#include <winhttp.h>
void CALLBACK callbackfunc(HINTERNET hInternet,
DWORD_PTR context,
DWORD code,
void* pInfo,
DWORD infoLength) {
if (code == WINHTTP_CALLBACK_STATUS_SECURE_FAILURE) {
@akechi-haruka
akechi-haruka / chuni_nettest.ps1
Created December 9, 2024 13:09
Chunithm matching network test
try {
$peerIP = "gmg.hopto.org"
$peerPort = 53488
write-host "Sending UDP $($peerIP):$($peerPort)"
$client = new-object net.sockets.udpclient
$client.Client.SendTimeout = 2000;
$client.Client.ReceiveTimeout = 2000;
$client.Client.SetSocketOption([System.Net.Sockets.SocketOptionLevel]::Socket, [System.Net.Sockets.SocketOptionName]::ReuseAddress, $true)
$LocalIpEndPoint = New-Object System.Net.IPEndPoint([system.net.ipaddress]::any), $peerPort
@akechi-haruka
akechi-haruka / Event.xml
Created September 4, 2024 15:53
Chunithm event00000012
<?xml version="1.0" encoding="utf-8"?>
<EventData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<dataName>event00000012</dataName>
<netOpenName>
<id>2110</id>
<str>v2_05 04_1</str>
<data />
</netOpenName>
<name>
<id>12</id>
move 9861396b-7a29-4e2c-855b-8d36c2fc5308.bin 001_0001.bin
move 3e9038c3-8a75-46cc-bab1-2dcf0a0ac8ed.bin 001_0002.bin
move ec97b54a-0321-465a-8dbd-68a48eb89f1c.bin 001_0003.bin
move 70b0d94e-0275-431c-afc3-84ad77ee5088.bin 001_0004.bin
move feb3c334-f7d3-446b-b002-edc60cb79d50.bin 001_0005.bin
move abc69e26-84e8-4374-958d-a06819ab89d3.bin 001_0006.bin
move 8a1d62c8-5c0c-4ec2-9ef7-ca032ab1e140.bin 001_0007.bin
move 33dab338-e4b4-4928-bb30-f54921353313.bin 001_0008.bin
move f495f5bf-794c-4502-a453-33cacc987292.bin 001_0009.bin
move 42908731-ba41-4c68-9607-d5c49cab1533.bin 001_0010.bin
using AMDaemon;
using System;
using System.Threading;
using System.IO;
namespace aimereadtest {
internal class Program {
const string LOG = "aimereadtest.log";
@akechi-haruka
akechi-haruka / chrono_network_test.ps1
Created April 2, 2024 17:43
Chrono Regalia Network Test Script
try {
$peerIP = "5.7.3.1"
$localIP = Get-NetIPAddress -AddressFamily IPV4 | Where-Object IPAddress -Like "5.7.3.*" | Select-Object IPAddress
if ($localIP -eq $null) {
write-host "VPN not found, using public IP address..."
$peerIP = "gmg.hopto.org"
}
$peerPort = 53960
write-host "Connecting to TCP $($peerIP):$($peerPort)"
@akechi-haruka
akechi-haruka / minihook.c
Created March 31, 2024 09:35
Chrono Reglia Segatools minihook
#include <windows.h>
#include <stdlib.h>
#include "amex/config.h"
#include "amex/ds.h"
#include "board/io3.h"
#include "board/io4.h"
#include "board/sg-reader.h"