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 / disk-cleanup-report.md
Created September 21, 2025 23:25
macOS Disk Cleanup Report - Freed 35GB with plans for 50GB+ more

macOS Disk Cleanup Report

Executive Summary

Successfully freed up 35GB of disk space through systematic cleanup of Docker, caches, and temporary files. Available disk space increased from 43GB to 78GB.

Storage Analysis

Top Space Consumers

  • Library folder: 91GB (down from 120GB)
  • Application Support: 34GB
@zudsniper
zudsniper / LIQUID_TEMPLATING_LANGUAGE.md
Created July 22, 2025 23:48
Exa "deep-research-pro" model report on Liquid by Shopify.

Comprehensive Research Report on Shopify’s Liquid Templating Language (2025)

Introduction

Shopify’s Liquid is an open-source, Ruby-based template language introduced in 2006 as the backbone of Shopify themes. It enables developers to create reusable templates that render dynamic content—such as product titles, prices, and images—by combining objects, tags, and filters within HTML files (Shopify·GitHub). Liquid has since evolved beyond Shopify, powering diverse web applications and static site generators.

1) What Liquid Is and Its Core Features

Liquid’s syntax revolves around three primitives: objects, tags, and filters. Objects—delimited by {{ }}—output variables and store content, such as product.title or page.handle. Tags—delimited by {% %}—define control flow, iteration, and logic without rendering visible output. Filters—invoked via the pipe operator (|)—transform data, enabling operations like {{ price | money }} or `{{ author.na

@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'
@zudsniper
zudsniper / backup-and-update.sh
Last active May 13, 2025 07:56
start/wait for time machine backup, then update mac
#!/usr/bin/env bash
#
# backup-and-update.sh
# 1) Prevent system sleep (via caffeinate)
# 2) Run (or detect) a Time Machine backup
# 3) Wait for the backup to finish
# 4) If the target macOS installer is present:
# • launch startosinstall (major upgrade → reboot)
# Else if the target macOS update is downloaded (from Software Update):
# • install it using softwareupdate command
@zudsniper
zudsniper / 0-README.md
Created May 2, 2025 23:17 — forked from rvanbaalen/0-README.md
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

@zudsniper
zudsniper / MacOS.md
Last active September 29, 2025 16:12
Make MacOS better

introduction

I like MacOS. It has its flaws, but overall, as a productivity operating system, especially when paired with Apple's ARM chips, nothing really compares. However, there are a few things I find I need to do to get it just right. These are those things. Take the ones you value, leave the rest.

the missing package manager: homebrew

macos shouldve come with a package manager, but for some reason, doesn't -- so the community made one called Homebrew. Go to https://brew.sh, and copy the 1-liner installation script, then paste that into Terminal, type in your password once or twice, download the xCode developer tools, and eventually you'll be good to go. The following all use brew, the cli tool.

Done? OK, let's continue.


@zudsniper
zudsniper / .README.md
Last active March 27, 2025 00:48
install `cpyenv-activate` and `cpyenv-deactivate` to make pyenv virtualenvs work correctly in the integrated cursor terminal.

cursor-pyenv Installer

This installer allows you to easily install cursor-pyenv, a tool that fixes pyenv and pyenv-virtualenv integration within Cursor's terminal environment.

One-line Installation

You can install cursor-pyenv with this single command:

curl -fsSL https://gist.zod.tf/a8647e1ad63601aefa99a58de79596c8/raw/install-cursor-pyenv.sh | bash
@zudsniper
zudsniper / make_appimage_wrapper.sh
Last active March 6, 2025 20:48
make_appimage_wrapper.sh -- generate simple 'install_App.sh' scripts to install or update your appimage apps for ubuntu.
#!/bin/bash
# make_appimage_wrapper.sh v2
# > still wonky -- this one is gen'd by claude 3.7 sonnet, o1, o3-mini-high.
# Colors for terminal output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
@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 / flagged_email_trans.py
Created October 30, 2024 06:12
⛳️ perform some arbitrary logic on client and transaction data (for tanner)
import pandas as pd
import argparse
from loguru import logger
from colorama import Fore, Back, Style, init
import os
import glob
import time
import readline # For enabling tab completion
import rlcompleter # For readline completer