A macOS-focused cleanup script for developers who accumulate a ridiculous amount of rebuildable cruft.
Great Delete scans your home directory for things like:
- Rust
target/directories node_modules/.next.nuxt
| #!/usr/bin/env python3 | |
| """ | |
| Split a .sql dump into chunks WITHOUT breaking SQL statements. | |
| - Splits only on semicolons that end a statement (outside strings/comments) | |
| - Keeps each chunk <= max_bytes (approx; never splits a statement) | |
| - Handles: single/double quotes, backticks, escaped quotes, --/# comments, /* */ comments | |
| """ | |
| from __future__ import annotations |
Efficiently checks the HTTP status of URLs listed in a Google Sheet and writes the results back in batches. Designed to handle large datasets without timeouts, using Python,
gspread, andrequests.
Install dependencies
pip install gspread google-auth requests
Set up your Google Sheets API credentials (OAuth2 service account or user credentials):
| { | |
| "style_name": "Digital Watercolor Fusion", | |
| "medium": "watercolor", | |
| "brush_stroke": "soft, layered", | |
| "edges": "feathered, faded", | |
| "opacity_variation": "high", | |
| "bleed_effect": "subtle at edges", | |
| "blending_mode": "overlay with transparency", | |
| "color_palette": { | |
| "primary": ["#a3b18a", "#588157", "#dad7cd"], |
| import os | |
| import re | |
| import csv | |
| from openpyxl import Workbook | |
| def find_php_files(base_path): | |
| """ | |
| Recursively find all .php files in the base directory. | |
| Args: |
I'm building a custom WordPress block for testimonials. I want you to write the PHP, JS, and HTML with an a11y-first approach. Assume a screen reader and keyboard-only user. Include screen reader text where appropriate, proper heading levels, semantic structure, and aria labels only if they’re absolutely necessary. Explain any a11y tradeoffs you make. Use WordPress best practices throughout.
🔒 Prompt Template: "A11Y-First WordPress Development"
Fluent Forms uses its own custom database tables (like wp_fluentform_forms, wp_fluentform_submissions, etc.) which are completely separate from the standard WordPress posts/meta tables that our plugin currently handles.
DB Version Control would NOT work out of the box for Fluent Forms data because it only exports:
wp_posts)wp_postmeta)wp_options)| { | |
| "profile_name": "Hyper-Real Techno-Futurist Studio Blur", | |
| "style_manifesto": "This visual style merges cinematic studio lighting, minimalistic fashion, and surreal futuristic motion. Subjects are hyper-real, yet blurred through light trails, lens flares, and artificial depth. Every shot looks like a still from a high-concept sci-fi dream sequence, mixing precision and abstraction.", | |
| "lighting": { | |
| "key_light": "hard-edged frontal or upper-left with diffusion gel", | |
| "rim_light": "split complementary tones (orange/cyan or blue/red)", | |
| "backlight": "narrow beam spotlight with bloom", | |
| "fill_light": "low-power edge fill on opposite side", | |
| "motion_streak_sources": [ |
| { | |
| "profile_name": "UncleBob Narrative-Tech Commentary", | |
| "style_manifesto": "This profile captures the idiosyncratic and intellectually confrontational writing style of Uncle Bob Martin. The tone balances technical rigor with opinionated commentary, cultural references, self-aware humor, and vivid metaphors. The format blends first-person storytelling, pedagogical code exploration, sarcastic rhetorical questions, and sweeping historical or philosophical context. Content must feel simultaneously like a software war story, a tech sermon, and a late-night code rant. Above all, it should feel human, deliberate, and built to last.", | |
| "structure": { | |
| "intro": { | |
| "tone": "ironic, self-aware, occasionally antagonistic", | |
| "devices": [ | |
| "trigger warnings for the pedantic", | |
| "quote blocks to bait or mock overly rigid readers", |
A simple Python script that generates a Markdown overview of your project’s folder structure—complete with depth control and inline includes of your README.md, package.json, and composer.json. Outputs to filetree.md, with an optional --clip flag to copy the result to your clipboard.