Skip to content

Instantly share code, notes, and snippets.

@KaiStarkk
KaiStarkk / monitor-vultr-archive.sh
Created March 1, 2026 20:01
Archived monitor-vultr script (removed from variss)
#!/bin/bash
# Monitor for orphaned Vultr VPS instances
# Alerts if an instance persists for 2+ consecutive checks (30 min intervals)
# State file tracks instance IDs and their first-seen timestamps
source /root/.matrix/credentials
STATE_FILE="/var/lib/vultr-instance-state"
ALERT_THRESHOLD=2 # Number of consecutive checks before alerting
@KaiStarkk
KaiStarkk / sunshine-watchdog.sh
Created January 2, 2026 17:11
Sunshine disconnect watchdog - force-closes sessions on client disconnect
#!/usr/bin/env bash
# Watches Sunshine log for disconnects and force-closes session via API
# This triggers undo prep commands that would otherwise hang in "paused" state
SUNSHINE_LOG="${XDG_CONFIG_HOME:-$HOME/.config}/sunshine/sunshine.log"
SUNSHINE_API="https://localhost:47990/api"
SUNSHINE_USER="${SUNSHINE_USER:-your-username}"
SUNSHINE_PASS_FILE="${SUNSHINE_PASS_FILE:-$HOME/.config/sunshine_password}"
[[ ! -f "$SUNSHINE_LOG" ]] && { echo "Waiting for sunshine.log..."; while [[ ! -f "$SUNSHINE_LOG" ]]; do sleep 5; done; }
@KaiStarkk
KaiStarkk / README.md
Last active July 25, 2025 04:38
shameful_scraper - AI solution finder for the shameless podcast competition

Shameful Podcast ARG Solver

This tool was created for the Shameful Podcast competition. It performs the following tasks:

  • Monitors the podcast RSS feed and downloads the latest episode automatically.
  • Transcribes the episode using a local AI model running in PyTorch using CUDA cores to massively parallelize on the GPU.
  • Identifies the secret word for each episode using fuzzy string searching.
  • Determines the secret phrase by applying a coherence algorithm to find the most likely arrangement of the five words.

On the day of the competition, this tool solved the challenge just 9 seconds (!) after the episode was published.

@KaiStarkk
KaiStarkk / README.md
Last active July 25, 2025 04:38
wallpyper - a python wallpaper changer for reddit.

Wallpyper

A python wallpaper changer for reddit.

@KaiStarkk
KaiStarkk / README.md
Last active July 25, 2025 04:39
launchbox-VAPF-helper - this helper program is to enable setting up VAPF in LaunchBox

launchbox-VAPF-helper

This is a helper program. All credit for VAPF belongs with its author. VAPF can be found at https://www.orphanedgames.com/APF/apf_emulation/apf_emulation.html This helper program is to enable setting up VAPF in LaunchBox. This allows you to emulate APF MP-1000(/Imagination Machine[^1]) games.

Steps to set up Launchbox

  1. Setup 1a. Download VAPF from link above. 1b. Save to your LaunchBox emulators folder 1c. Clone this repo inside the VAPF directory
@KaiStarkk
KaiStarkk / main.py
Last active July 25, 2025 04:41
r36sync - tool for synchronising local directory to the R36 handheld console
import os
import subprocess
from distutils.util import strtobool
def run_rsync(source, destination, dry_run=False):
"""
Run rsync command to sync files between source and destination.
"""
flags = "-avh --update --delete"
if dry_run:
@KaiStarkk
KaiStarkk / Kai's Definitive Console List.md
Created November 15, 2024 07:47
Kai's Definitive Console List
Type Gen Manufacturer Name # Games Significance
Arcade Namco System 22
Arcade Sammy AtomisWave
Arcade Sega Hikaru
Arcade Sega Model 1
Arcade Sega Model 2
Arcade Sega Model 3
Arcade Sega NAOMI
Arcade Sega NAOMI 2