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 zsh | |
| # Prune local Git branches that are already merged into the default base branch. | |
| # The script skips the base branch, the current branch, and branches with related stashes, | |
| # then asks for confirmation before deleting each eligible branch. | |
| prune_local_branches() { | |
| local version="1.0.0" | |
| case "${1:-}" in | |
| -h|--help) |
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 zsh | |
| VERSION="1.0.0" | |
| print_help() { | |
| echo "Usage: $0 <input-image>" | |
| echo "" | |
| echo "Example:" | |
| echo " $0 logo.png" | |
| echo "" |
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 zsh | |
| set -euo pipefail | |
| # --- CHECK DEPENDENCIES --- | |
| if ! command -v docker >/dev/null 2>&1; then | |
| echo "ERROR: docker not found." | |
| echo "Install Docker:" | |
| echo " brew install --cask docker" | |
| exit 1 |
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 zsh | |
| set -e | |
| # --- CONFIG --- | |
| NMAP_BIN="" | |
| BREW_BIN="" | |
| # --- FUNCTIONS --- | |
| function find_nmap() { |
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 zsh | |
| set -euo pipefail | |
| # ----------------------------------------------------------------------------- | |
| # Homebrew cleanup advisor (read-only) | |
| # | |
| # Performs checks corresponding to points 1..5: | |
| # 1) "Leaves" installed on request (explicit installs that nothing depends on) | |
| # 2) Staleness signal via filesystem access time on the Cellar formula dir | |
| # 3) Shell history frequency (what you actually run) |
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
| (async () => { | |
| "use strict"; | |
| const CONFIG = { | |
| selectors: { | |
| statusTitle: '[data-testid="panel-status-page-title-text"]', | |
| meetingTitle: '[data-tid="chat-title"] span[title]', | |
| meetingTime: '[data-tid="intelligent-recap-header"] span', | |
| meetingRecurrence: '[data-tid="recap-tab-list"] button[role="tab"][aria-selected="true"] span[dir="auto"]', | |
| chatTab: 'button[data-tid="tab-item-com.microsoft.chattabs.chat"]', |
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 zsh | |
| # create-youtube-short.zsh | |
| # Create a YouTube Short (1080x1920) from a static image | |
| # Audio is OPTIONAL: if missing, the video will be muted. | |
| set -euo pipefail | |
| SCRIPT_NAME="${0:t}" | |
| VERSION="1.1.0" |
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 zsh | |
| set -euo pipefail | |
| # ----------------------------------------------------------------------------- | |
| # ncdu-top-dirs.zsh | |
| # | |
| # Scans a target path with ncdu, exports the full scan as JSON, then extracts | |
| # the TOP N largest directories by *disk usage* (ncdu "dsize", not apparent size). | |
| # | |
| # Requirements: |
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 zsh | |
| set -u | |
| setopt extendedglob nullglob | |
| SCRIPT_NAME=${0:t} | |
| usage() { | |
| cat <<EOF | |
| Usage: $SCRIPT_NAME [options] [input_dir] |
NewerOlder