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 / 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
Created May 2, 2025 18:06
Make MacOS better

essentials

tiling window manager -> brew install rectangle
clipboard history -> brew install maccy
screenshots with easy markup editor -> brew install shottr (bound to cmd + shift + 2)
fix the menu bar -> brew install jordainbird-ice

terminal

the terminal i use (not ai terminal) -> brew install iterm2
the terminal i also use (not ai terminal) -> brew install kitty
the third terminal -> brew install warp

@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
@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/*