Skip to content

Instantly share code, notes, and snippets.

View rakisaionji's full-sized avatar
✝️
God bless America.

Raki Saionji rakisaionji

✝️
God bless America.
View GitHub Profile
Windows Registry Editor Version 5.00
; Command Prompt
[HKEY_CLASSES_ROOT\Directory\shell\MenuCmd]
"MUIVerb"="Command Prompt"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
[HKEY_CLASSES_ROOT\Directory\background\shell\MenuCmd]
@rakisaionji
rakisaionji / eac_log_tool.py
Created August 28, 2026 23:56
EAC (Exact Audio Copy) log checksum checker & signer. Code generated by Claude.
#!/usr/bin/env python3
"""
eac_log_tool.py -- EAC (Exact Audio Copy) rip-log checksum checker & signer.
Reimplements the "Log checksum" algorithm EAC uses to sign its rip logs, so
you can verify whether a log has been tampered with, or (re-)sign a log
yourself (e.g. after fixing a rollout log, or when generating EAC-style
logs from another tool).
Algorithm credit: reverse-engineered by puddly, see
@rakisaionji
rakisaionji / verify_torrent.py
Created July 23, 2026 10:18
Verify downloaded data against a .torrent file's piece hashes, directly (no session, no network, no re-downloading). Code generated by Claude.
#!/usr/bin/env python3
"""
verify_torrent.py - Verify downloaded data against a .torrent file's piece
hashes, directly (no session, no network, no re-downloading).
Supports both:
- v1 torrents: SHA1 piece hashes, read via libtorrent's torrent_info.
- v2 / hybrid torrents (BEP52): per-file SHA256 merkle piece-layer hashes,
read directly from the raw bencoded metadata (libtorrent's python
bindings don't expose "file tree" / "piece layers" consistently across
@rakisaionji
rakisaionji / pyrun.c
Created June 29, 2026 00:04
Simply running a Python script "portably". Much better space-saving than packing with pyinstaller. Better when compile with tcc. Tested on Windows.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#ifdef _MSC_VER
#pragma warning(disable : 5045)
#endif
#ifdef _WIN32
@rakisaionji
rakisaionji / install-deps.sh
Last active June 28, 2026 10:41
Install ffmpeg, MP4Box (GPAC), and Bento4 tools on CentOS 9; builds GPAC and Bento4 from source, with automatic RPM Fusion setup for ffmpeg.
#!/usr/bin/env bash
set -euo pipefail
PREFIX=""
if [ "$EUID" -ne 0 ]; then
PREFIX="sudo "
fi
if ! command -v dnf >/dev/null 2>&1; then
echo "install-deps.sh does not support Non-RHEL/CentOS distros"
@rakisaionji
rakisaionji / submit.md
Created March 6, 2026 23:59 — forked from tanaikech/submit.md
Workaround for Retrieving Direct Links of All Sheets from URL of 2PACX-### of Web Published Google Spreadsheet

Workaround for Retrieving Direct Links of All Sheets from URL of 2PACX-### of Web Published Google Spreadsheet

This is a sample script for retrieving the direct links of all sheets from the URL like https://docs.google.com/spreadsheets/d/e/2PACX-###/pubhtml of the web published Google Spreadsheet. This sample script can be used for the following situation.

  1. The Spreadsheet is published to Web and the URL like https://docs.google.com/spreadsheets/d/e/2PACX-###/pubhtml is known
  2. You are not the owner of Google Spreadsheet.
  3. You don't know the Spreadsheet ID and Sheet IDs.

Under above situation, unfortunately, the direct links of each sheet cannot be directly retrieved. I think that this is the specification of Google side. So in this post, I would like to introduce a workaround for retrieving the direct links of each sheet under above situation.

@rakisaionji
rakisaionji / gemini-conservative-debate.md
Created October 2, 2025 23:24
Conservative Debate Challenge Accepted
@rakisaionji
rakisaionji / example.js
Created August 22, 2025 06:57 — forked from develpudu/example.js
NodeJS: How to run a process (also a shell script etc) on background separated with the parent node process.
const spawn = require('child_process').spawn;
// a command you want to execute.
const command = "node cli/hoge.js --aaa --bbb=123";
const parts = command.split(" ");
const cmd = parts[0];
const args = parts.splice(1);
// detached: true: This option makes the child process a leader of a new process group, allowing it to continue running after the parent process exits.
@rakisaionji
rakisaionji / fuck.py
Last active September 25, 2024 21:49 — forked from lyricalpaws/fuck.py
Grabs all of Marques Brownlee's shitty scam app (panels.art)'s wallpapers, with date keeping (also Python is fucking retarded)
import requests
import os
import time
from urllib.parse import urlparse
from datetime import datetime
DATE_PATTERN = "%a, %d %b %Y %H:%M:%S %Z"
def downloadImage(url, filePath):
try:
@rakisaionji
rakisaionji / psvita-vpk-transfer-guide.md
Created September 21, 2024 17:16 — forked from darkcolonist/psvita-vpk-transfer-guide.md
how to transfer VPK via FTP and install them in psvita (henkaku / vitashell)

#how to transfer games to your vita via FTP

###requirements

  • henkaku activated psvita 3.60
  • filezilla ftp client
  • wifi connection
  • make sure your psvita and computer are in the same wifi network

##in your computer

  • install filezilla (ftp client)