Skip to content

Instantly share code, notes, and snippets.

View Ghost---Shadow's full-sized avatar
🥔
eating potatoes

Souradeep Nanda Ghost---Shadow

🥔
eating potatoes
View GitHub Profile
@Ghost---Shadow
Ghost---Shadow / SKILL.md
Created November 10, 2026 03:46
why-therefore: a Claude skill for an in-context why/therefore consistency ritual (untested)
name why-therefore
description Run the why/therefore consistency ritual on a draft answer before committing to it. For each load-bearing claim, abduce its cause ("why?"), then check blind that the cause alone leads back to the claim and not to a plausible wrong alternative ("therefore?"), and revise every claim that fails. Use this whenever the user asks to "run the ritual", asks for a why/therefore or causal-consistency check, says "are you sure?", "sanity-check this" or "double-check your reasoning", and also when an answer rests on a chain of causal or factual claims where a self-contradiction would be costly, such as a root-cause analysis, a diagnosis, an explanation of why something happened, a plan with dependencies, or a summary of evidence.

Why/Therefore ritual

"Why" is the inverse of "therefore". If a claim is something you really hold, it must survive a round trip: from the claim to its cause, and from the cause back to the claim. A claim that cannot make the trip back is a claim you w

@Ghost---Shadow
Ghost---Shadow / auto_unlock.py
Created November 5, 2026 19:21
The Farmer Was Replaced: auto-unlock everything you can afford. Call it in your farm loop, idle overnight, wake up to new unlocks.
"""
auto_unlock.py - unlock everything you can afford, automatically
(The Farmer Was Replaced)
Goes through every entry in Unlocks and tries to unlock it. Anything
you can't afford yet is simply skipped, so it's safe to call as often
as you like.
Call it once per pass of your farming loop and leave the game running
overnight: whatever your farm earns gets spent on new unlocks and
@Ghost---Shadow
Ghost---Shadow / prospect.py
Created November 5, 2026 15:23
The Miner Was Replaced (The Farmer Was Replaced DLC): ore prospector that predicts cave-ins, checks every block exactly once, mines top to bottom so no ore is lost, and walks a sorted snake route.
"""
prospect.py - ore prospector for The Miner Was Replaced
(the mining DLC for The Farmer Was Replaced)
Digs a shaft at the drone's start position and mines every ore block
the resulting cave-ins expose, without checking any block twice and
without losing ore to cave-ins.
How it works
------------
@Ghost---Shadow
Ghost---Shadow / jans_life_quantum_sim.py
Created July 1, 2026 07:59
A fun side-project inspired by "The Alters" (11 bit studios, 2025), a game where protagonist Jan Dolski uses an in-fiction quantum computer to "branch" alternate versions of himself (the "Alters") from pivotal decision points in his own past. The game itself hand-waves the actual quantum computer and instead makes you scavenge the game world for…
"""
Jan's Life Paths, as a Quantum Decision Tree
==============================================
A fun side-project inspired by "The Alters" (11 bit studios, 2025), a
game where protagonist Jan Dolski uses an in-fiction quantum computer
to "branch" alternate versions of himself (the "Alters") from pivotal
decision points in his own past. The game itself hand-waves the actual
quantum computer and instead makes you scavenge the game world for
physical qubits to power it - which is a funny bit of irony, since the
@Ghost---Shadow
Ghost---Shadow / sir-eci-electoral-roll-download.md
Created February 18, 2026 06:07
Step-by-step guide for downloading West Bengal electoral roll PDFs from India's ECI portal (voters.eci.gov.in) and the CEO West Bengal historical portal — including CAPTCHA handling, XHR interception to capture the base64 PDF payload, and Bengali OCR for finding names in scanned rolls.
{"label":"coverage","message":"96.47%","schemaVersion":1,"color":"brightgreen","namedLogo":"bun"}
@Ghost---Shadow
Ghost---Shadow / eslint-airbnb.config.js
Created January 18, 2026 03:34
ESLint Configuration - Airbnb Style Guide
/**
* ESLint Configuration - Airbnb Style Guide
*
* This configuration file contains all the rules and best practices from the
* Airbnb JavaScript Style Guide, converted to the modern ESLint flat config format.
*
* The rules are organized into the following categories:
* - Possible Errors: Rules to catch potential runtime errors and logic issues
* - Best Practices: Rules to enforce JavaScript best practices
* - Strict Mode: Enforces proper use of strict mode
@Ghost---Shadow
Ghost---Shadow / keep_awake.py
Created November 13, 2025 13:41
Latest windows update causes my PC to randomly restart unless I do this. (or maybe its broken ACER drivers)
#!/usr/bin/env python3
"""
Script to keep Windows awake by typing random ASCII characters.
Press Ctrl+C to stop.
"""
import random
import string
import time
from pynput.keyboard import Controller
@Ghost---Shadow
Ghost---Shadow / compress_pdf_through_jpg.py
Created November 3, 2025 06:47
Compress PDF files by converting to JPEG files to bring it down under 2MB
#!/usr/bin/env python3
"""
PDF Compression Script - Using PyMuPDF to convert pages to JPG and rebuild
Installation:
pip install PyMuPDF Pillow
Usage:
python compress_pdf_final.py
"""
@Ghost---Shadow
Ghost---Shadow / astral_verification.py
Last active September 19, 2025 06:09
Emoji OTP for astral projection - when letters/numbers become unreadable, emojis remain accessible
"""
Emoji OTP for astral projection - when letters/numbers become unreadable, emojis remain accessible
https://claude.ai/share/d24abbf3-323b-4d03-8a5d-be613cff0286
Use Ctrl + '+' (plus) key to zoom in terminal
"""
import random
import time