Skip to content

Instantly share code, notes, and snippets.

View yowmamasita's full-sized avatar
🎯
Focusing

Ben Adrian Sarmiento yowmamasita

🎯
Focusing
View GitHub Profile
@yowmamasita
yowmamasita / claude-cleanup.md
Last active January 21, 2026 07:07
Claude Code CLI leaves orphaned background processes that consume CPU/memory. This launchd daemon auto-kills processes not attached to a terminal (TTY) every hour, keeping only your active sessions.

Auto-cleanup Orphaned Claude Code CLI Processes on macOS

Claude Code CLI can leave orphaned background processes that consume CPU and memory. This solution automatically kills Claude processes that are no longer attached to a terminal.

How it works

Active Claude sessions are attached to a TTY (e.g., s001, s002). Orphaned processes show ?? in the TTY column. This script kills only the orphaned ones.

@yowmamasita
yowmamasita / fix_embedded_posters.sh
Created January 3, 2026 16:48
Plex Embedded Poster Fixer - Replaces ugly embedded posters (e.g., from BTM releases with watermarks) with clean TMDB posters
#!/bin/bash
# Plex Embedded Poster Fixer
# Finds movies with embedded posters OR no poster selected, and fixes them with TMDB posters
#
# Usage:
# PLEX_URL="http://localhost:32400" PLEX_TOKEN="your_token" ./fix_embedded_posters.sh
#
# Options:
# PLEX_URL - Your Plex server URL (required)
@yowmamasita
yowmamasita / winners.md
Created December 7, 2025 23:38
Goodreads Choice Awards Winners from 2011 to 2025

Goodreads Choice Awards Winners (2011-2025)

Scraped on 12/8/2025, 12:31:56 AM


2025

Fiction

@yowmamasita
yowmamasita / README.md
Created December 1, 2025 00:40
Zurg on_library_update script for triggering Stash scans via GraphQL API

Zurg on_library_update Script for Stash

This script triggers Stash library scans when zurg updates its library.

Features

  • Path-specific scanning - Only scans directories that were added/changed
  • Clean removed content - Removes entries from Stash when content is deleted
  • Full scan fallback - If no specific paths are provided
  • Configurable scan options - Enable/disable cover, preview, sprite generation
@yowmamasita
yowmamasita / lakers.ics
Created August 14, 2025 21:11
Los Angeles Lakers 2025-26 Schedule
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Los Angeles Lakers//2025-26 Schedule//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Lakers 2025-26 Schedule
X-WR-TIMEZONE:America/New_York
BEGIN:VTIMEZONE
TZID:America/New_York
BEGIN:DAYLIGHT
@yowmamasita
yowmamasita / what_to_test.py
Created October 31, 2024 12:21
This script generates a Go coverage profile, parses it to extract coverage data, calculates coverage percentages, and reports the top N files with the lowest coverage. It also provides recommendations for improving test coverage.
#!/usr/bin/env python3
import argparse
import sys
from collections import defaultdict
import fnmatch
import subprocess
COVERAGE_FILE = 'coverage'
@yowmamasita
yowmamasita / block.txt
Created September 5, 2024 21:42
# Nintendo Adguard filter block list
||aauth-lp1.ndas.srv.nintendo.net^
||accounts.nintendo.com^
||api.accounts.nintendo.com^
||app-a03.lp1.npns.srv.nintendo.net^
||app-a04.lp1.npns.srv.nintendo.net^
||app-a05.lp1.npns.srv.nintendo.net^
||app-b01.lp1.npns.srv.nintendo.net^
||app-b04.lp1.npns.srv.nintendo.net^
||aqua.hac.lp1.d4c.nintendo.net^
||atum.hac.lp1.d4c.nintendo.net^
package main
import (
"crypto/sha256"
"fmt"
"math"
"runtime"
"strings"
"sync"
"sync/atomic"
curl 'https://cdromance.org/' --data-raw 'cdrTicketInput=8139'
https://dl11.cdromance.com/download.php?file=Digimon%20World%203%20%28USA%29.7z&id=7683&platform=psx-iso&key=4160942065
https://dl8.cdromance.com/download.php?file=Digimon%20World%203%20%28USA%29.7z&id=7683&platform=psx-iso&key=4160942065
8370
https://dl8a.cdromance.com/download.php?file=a&platform=psx-iso&id=7914&key=7061873573
@yowmamasita
yowmamasita / snowjob.sh
Last active December 15, 2023 17:01 — forked from sontek/snowjob.sh
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear