Skip to content

Instantly share code, notes, and snippets.

@sprtlw
sprtlw / we_crash_detector.sc
Last active January 1, 2026 22:52
World Eater Crash Detector
// AFK Detector for Carpet Mod - Scarpet Script
// Monitors player "_we1" and sends Pushover notification when they go AFK
// Requires: Carpet Mod + Scarpet Additions mod (for http_request function)
// Detection Method: Position changes only
// ============================================================================
// CONFIGURATION - EDIT THESE VALUES
// ============================================================================
// Pushover API credentials (get from https://pushover.net)
@sprtlw
sprtlw / invoke.sh
Last active August 1, 2024 08:09
Readarr convert epub to bionic reading
#!/bin/bash
# Check if readarr_eventtype is Test
if [ "$readarr_eventtype" == "Test" ]; then
echo "Event type is 'test'. Skipping script."
exit 0
fi
# Check if readarr_eventtype is download
if [ "$readarr_eventtype" != "Download" ]; then
@sprtlw
sprtlw / mkv_to_mp4.sh
Last active March 28, 2024 01:37
mkv_to_mp4.sh
#!/bin/bash
# mkv_to_mp4.sh converts a mkv file to an mp4, extracting all subtitles following plex naming format
# -s or -v will allow just using the subtitle or videos part of the script
# works with 4k dolby vision, hybrid, etc
# uses ffmpeg
# Function to display script usage
usage() {
echo "Usage: $0 <video_file> [-s | -v]"
@sprtlw
sprtlw / StardewACV3.ahk
Last active June 19, 2023 07:21
Stardew Valley Animation Cancel AHK Script // x to toggle, hold left click
#IfWinActive Stardew Valley
; Initialize Globals
isToggled := false
invOpen := false
; 150 - works well with pick, sword, hoe, everything else, 130 - works well with pick and sword
delay := 150
; Set the overlay position and font size
overlayX := 20