- Swift App Template: Tuist, Fastlane, mise and multi-platform CI in one starter project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Point a Namecheap-hosted apex domain at GitHub Pages using the Namecheap API. | |
| Namecheap's setHosts call REPLACES every record on the domain, so this script: | |
| 1. fetches the current records (getHosts) and saves them to a backup XML file, | |
| 2. removes only the records that would conflict with GitHub Pages | |
| (A/AAAA/ALIAS/CNAME/URL/FRAME at @ and www, plus an old challenge TXT record), | |
| 3. keeps everything else (MX, other TXT, other subdomains...) unchanged, | |
| 4. adds the GitHub Pages A/AAAA records, the www CNAME and (optionally) | |
| the domain-verification TXT record. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Copy the newest Xcode .xip and any exported simulator SDK bundles to the | |
| # Downloads folder of one or more machines over SSH. Everything else visible in | |
| # each remote Downloads folder is first moved to a dated folder in that | |
| # machine's Trash, or to a dated folder inside Downloads if that fails. If any | |
| # file could not go to the Trash, the copy still runs with a warning and existing | |
| # files are left alone, with a new item of the same name copied under a -new | |
| # suffix. Otherwise re-running resumes interrupted transfers and skips files that | |
| # are already up to date. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # simclean.sh — delete simulator devices and runtimes for a given OS major version. | |
| # | |
| # ./simclean.sh 27 # dry run, all platforms | |
| # ./simclean.sh 27 --apply # actually delete | |
| # ./simclean.sh 27 --apply --platform iOS | |
| # ./simclean.sh --sweep --apply # only clean unavailable devices / broken runtimes | |
| # | |
| set -euo pipefail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
NewerOlder