Skip to content

Instantly share code, notes, and snippets.

View zudsniper's full-sized avatar
🎲
snake eyes every time

zod zudsniper

🎲
snake eyes every time
View GitHub Profile
@zudsniper
zudsniper / setup-npx-for-claude.sh
Last active July 17, 2025 02:58
Comprehensive setup script for npx-for-claude - supports macOS and Linux with colorized output
#!/bin/bash
# npx-for-claude Setup Script
# Supports macOS and Linux (Ubuntu/Debian)
# Configures NVM, creates wrapper script, and sets up shell environment
# ANSI Color Codes
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
@rvanbaalen
rvanbaalen / 0-README.md
Last active May 16, 2025 12:35
Automatic Actions framework for Claude AI. Copy/paste into the Developer Tools of Claude desktop app.

Claude Auto-Actions Framework

A lightweight, extensible framework for automating interactions within the Claude AI interface.

Overview

This framework allows you to automate repetitive actions in Claude's UI by defining custom "actions" that execute when specific conditions are met. It uses a mutation observer to monitor DOM changes and triggers your defined actions automatically.

Features

@cognivator
cognivator / claude-mcp-npx-wrapper.md
Last active July 17, 2025 01:47
Configure Claude MCP for use with NVM

Claude MCP - with NVM

As documented by Jonathan Gastón Löwenstern (hereafter, JGL), loading Claude Desktop MCP servers while using Node Version Manager (NVM) can be fraught, and there is little assistance in the community. Thankfully, Jonathon describes and solves the problems.

My modification is the ability to configure and use an NVM alias for use with Claude MCPs, without hardcoding the node version.

Caveats: This is tested and known to work on MacOS Monterey with ZSH. I have not tried other flavors of MacOS, Linux, or shells.

The Strategy

@zudsniper
zudsniper / install_cursor.sh
Last active April 16, 2025 22:49 — forked from tatosjb/install-cursor-sh
install_cursor.sh -- auto-download latest and version compare
#!/bin/bash
# Exit on error
set -e
# --- Configuration ---
# (Configuration remains the same)
INSTALL_DIR="/opt"
SYMLINK_NAME="cursor"
SYMLINK_PATH="${INSTALL_DIR}/${SYMLINK_NAME}"
@zudsniper
zudsniper / reddit-redirect.user.js
Last active October 23, 2024 00:18 — forked from pjmore/redirect.js
reddit to old.reddit everywhere userscript (fork from Tom Watson's script)
// ==UserScript==
// @name Old Reddit Redirect
// @namespace zod.tf
// @version 0.1
// @description Forces usage of the old reddit version (from Tom Watson project, forked)
// @author zudsniper
// @match https://reddit.com/*
// @match https://www.reddit.com/*
// @match https://np.reddit.com/*
// @match https://amp.reddit.com/*
@AskinNet
AskinNet / kitty.md
Created May 10, 2024 07:29 — forked from pnsinha/kitty.md
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
@zudsniper
zudsniper / OBS_VIRTUAL_WEBCAM_RTSP.md
Created April 15, 2024 07:13
📽️ A chatGPT prompt & response explaining how to use OBS software to read in an RTSP stream as a virtual camera device.

You:

I want to use OBS (Open Broadcaster Software) to create a virtual webcam device that receives realtime video from an RTSP stream on port 554. How do I go about doing this? Give a guide that includes information about both Mac & Windows steps -- that is, to add (mac only) and (windows only) sections in the guide, not provide separate guides for each OS.


ChatGPT:

To use OBS (Open Broadcaster Software) to create a virtual webcam device that receives real-time video from an RTSP stream on port 554, follow these steps. I have included specific steps for both macOS and Windows.

@zudsniper
zudsniper / autoexpert-dev-tools.user.js
Last active April 3, 2024 17:49
🧶 Custom GPT Instance "AutoExpert" simple timeout helper [old glitchy version]
// ==UserScript==
// @name AutoExpert Dev Tools with Smart Interaction Detection and Auto-Stash
// @namespace https://gh.zod.tf/
// @version 2.0.2
// @description Enhance ChatGPT AutoExpert Dev instance by resetting the inactivity timer only on meaningful interactions and stashing content before timeout.
// @author AutoExpert & zudsniper
// @match https://chat.openai.com/g/g-pTF23RJ6f-autoexpert-dev*
// @grant GM_addStyle
// ==/UserScript==
@zudsniper
zudsniper / MacOS_ZIPZ.md
Last active June 20, 2024 14:24
🍎 zod's tip oh no not ... jason's suggestions for macOS use with some sanity (v1)

MacOS ZipZ

cuz like, Zod's tIPs oh no

by @zudsniper on github
v1.0.1

Introduction

MacOS is pretty good, in my opinion. It has some helpful native features. It also has various flaws, and areas where the community has had to pick up the slack and create the thing for good ol' bad Apple.

The Package Manager

@zudsniper
zudsniper / gptConvo2MD.js
Created February 12, 2024 14:40
🛩️ portable script to instantly download chatgpt conversation as markdown by pasting script into chromium devtools. AUTHOR @Creative_Original918 on Reddit
/**
* ALL CREDIT TO @Creative_Original918 on reddit for this!
* https://old.reddit.com/r/ChatGPT/comments/zm237o/save_your_chatgpt_conversation_as_a_markdown_file/jdjwyyo/
*/
function SaveChatGPTtoMD() {
const chatMessages = document.querySelectorAll(".text-base");
const pageTitle = document.title; const now = new Date(); const dateString = `${now.getFullYear()}-${(now.getMonth() + 1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')}-${now.getHours().toString().padStart(2, '0')}-${now.getMinutes().toString().padStart(2, '0')}-${now.getSeconds().toString().padStart(2, '0')}`;
let fileName = "ChatGPT log - " + pageTitle + ' - ' + dateString + ".md";
let markdownContent = "";