Skip to content

Instantly share code, notes, and snippets.

View leogdion's full-sized avatar

leogdion leogdion

View GitHub Profile
#!/usr/bin/env bash
#
# deploy-xcode.sh — install Xcode + simulator runtimes on a remote Mac,
# pulling the files from another machine.
#
# The xip extracts to Xcode.app (release) or Xcode-beta.app (beta);
# whatever comes out overwrites that same app in /Applications.
#
# Usage:
# ./deploy-xcode.sh <target-machine> <source-machine> <source-path>
Set up versioned, in-repo agent memory for this project — two stores, both committed to git.
First, create `.claude/agent-notes.md` as an append-only running log of my corrections and standing always/never directives, seeded with a self-describing header that says: read it at the start of every session before doing work; append one line per directive proactively (without being asked) whenever I make a correction or give an always/never instruction; newest lines at the bottom; one line per entry; and when a directive supersedes an earlier one, update or remove the stale line rather than leaving both.
Second, create `.claude/memory/` as this project's memory store, seeded with a `.claude/memory/MEMORY.md` index that explains the convention: one markdown file per project-scoped fact worth remembering (decisions, constraints, gotchas, context not derivable from the code or git history), each with a one-line entry in the index; update or delete memory files that turn out to be wrong rather than leaving stale one
@leogdion
leogdion / create_compound_clip.sh
Created July 12, 2026 20:22
Creates a Compound Clip from the Source Video for FCP
#!/bin/bash
# Function to process a single MP4 file
process_mp4() {
local INPUT_FILE="$1"
local OUTPUT_FILE="${INPUT_FILE%.*}.fcpxml"
echo "Processing: $INPUT_FILE"
# Get filename without extension
@leogdion
leogdion / rename.sh
Last active June 17, 2026 19:45
Rename Podcast Clips
#!/usr/bin/env bash
set -euo pipefail
# Usage: ./rename.sh "EAS-207. " [--apply]
# Dry-run by default; pass --apply to actually rename.
prefix=""
apply=0
for arg in "$@"; do
case "$arg" in
@leogdion
leogdion / cleanup-pr-caches.yml
Created June 14, 2026 22:37
GitHub Actions: auto-delete a PR's stranded caches when the PR closes
# .github/workflows/cleanup-pr-caches.yml
#
# Deletes all GitHub Actions caches scoped to a PR's merge ref as soon as the
# PR closes (merged or not). Those caches live on refs/pull/<N>/merge and can
# NEVER be restored by any other branch, so after the PR closes they are pure
# dead weight that otherwise lingers until 7-day-inactivity or LRU eviction.
#
# Drop this file into each repo at: .github/workflows/cleanup-pr-caches.yml
name: Cleanup PR caches
@leogdion
leogdion / compare-mkv.sh
Created May 31, 2026 14:39
Compare all MKV files in a directory to find the real movie among near-identical Blu-ray rip playlists
#!/usr/bin/env bash
#
# compare-mkv.sh — Compare all MKV files in a directory to find the real movie
# among near-identical Blu-ray rip playlists.
#
# Usage: ./compare-mkv.sh (operates on the current directory)
#
# Requires: ffprobe, ffmpeg (from FFmpeg). On macOS: brew install ffmpeg
set -euo pipefail
@leogdion
leogdion / generate-icons.sh
Created March 20, 2026 23:39
Export Icon Composer Icons for Press Kits and Web Sites
#!/bin/bash
# MonthBar Icon Exporter
# Exports all app icon renditions from Resources/AppIcon.icon:
# Marketing/Web/app-icon/ ← PNG + WebP at 1024px and 512px for all renditions
# ← Favicons (180, 32, 16px) and OG image (1200×630)
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Your First Week SaaS Launch Checklist

By MicroConf

Congrats! You've built the thing, launched the thing, and hopefully pre-sold the thing.

Now you need people to use it. Here's what to do in the first week of getting your product live. This checklist is designed for bootstrappers who are doing it all, from building the product to marketing it.

NOTE: This checklist assumes you haven’t yet set up email onboarding. The initial launch period is a great opportunity to stay connected with your first users, and lean on them for insights into how they’re using your product. The easiest way to stay connected in these early stages? Manually onboard each customer through outreach emails and live demos.

@leogdion
leogdion / README.md
Last active August 18, 2026 15:27
Vibe Coding Talk - Reference URLs
@leogdion
leogdion / .gitignore
Last active March 2, 2026 18:59
MacBook Air dev environment snapshot
# Created by https://www.toptal.com/developers/gitignore/api/macos
# Edit at https://www.toptal.com/developers/gitignore?templates=macos
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r