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 | |
| # cf-wait — wait for the most recent CloudFront invalidation to complete | |
| # | |
| # If the most recent invalidation is already completed and older than 5 minutes, | |
| # creates a new one and waits for that instead. | |
| # | |
| # Usage: | |
| # cf-wait blog.example.com # wait for most recent (or create new) | |
| # cf-wait docs.example.com # wait for most recent (or create new) | |
| # cf-wait E1XXXXXXXXXXXXX # by distribution ID |
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
| {"schemaVersion":1,"label":"GovCloud EKS","message":"running","color":"green"} |
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 | |
| from __future__ import annotations | |
| import argparse | |
| import datetime as dt | |
| import hashlib | |
| import json | |
| import uuid | |
| from pathlib import 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
| #!/usr/bin/env zsh | |
| # extract_key — pull a single key from a JSON-producing command | |
| # | |
| # Generic pattern: run any command that outputs JSON, extract one key via jq. | |
| # The last argument is always the key; everything before it becomes the command arguments. | |
| # | |
| # Usage: | |
| # extract_key <command> [args...] <json_key> | |
| # | |
| # Examples: |
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 | |
| """ | |
| Claude Code PostToolUse hook: log Bash commands to atuin + wakatime. | |
| Every command Claude runs via the Bash tool gets: | |
| - Recorded in atuin so it appears in your shell history (`atuin history list`) | |
| - Sent to WakaTime as a heartbeat so AI-assisted coding shows up in your dashboard | |
| Fire-and-forget — never blocks Claude on logging failures. |
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 | |
| # jira-status — structured JSON status reader for go-jira | |
| # | |
| # Returns a clean JSON object with key ticket fields instead of | |
| # parsing go-jira's freeform text output. Ideal for scripting | |
| # and AI agent consumption. | |
| # | |
| # Usage: | |
| # jira-status NA-393 | |
| # jira-status NA-393 | jq -r .status |
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 | |
| # jira-comment — pipe-safe comment wrapper for go-jira | |
| # | |
| # Accepts comment body via stdin so you never need to shell-escape | |
| # quotes, backticks, URLs, or Atlassian [~accountid:] mentions. | |
| # | |
| # Usage: | |
| # echo "looks good, merging" | jira-comment NA-393 | |
| # jira-comment NA-393 <<'EOF' | |
| # Multi-line comment with "quotes" and `backticks` |
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 | |
| # kwhy: explain object lineage, writers, likely reconcilers, inputs, and revert risk. | |
| # MVP: kubectl + jq only, no cluster-side components required. | |
| usage() { | |
| cat <<'EOF' | |
| Usage: | |
| kwhy explain <kind> <name> -n <namespace> [--context <ctx>] [--format text|json] |
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 | |
| # kubeflow-rbac-smoke.sh — RBAC smoke checks via kubectl auth can-i | |
| # | |
| # Usage: | |
| # ./kubeflow-rbac-smoke.sh <kube-context> | |
| # ./kubeflow-rbac-smoke.sh mlinfra-prod | |
| # ./kubeflow-rbac-smoke.sh mlinfra-29 | |
| # |
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 | |
| # kubeflow-version-snapshot.sh — quick Kubeflow/KFP runtime version inventory | |
| # | |
| # Usage: | |
| # ./kubeflow-version-snapshot.sh <kube-context> [namespace] | |
| # ./kubeflow-version-snapshot.sh mlinfra-prod kubeflow | |
| # ./kubeflow-version-snapshot.sh mlinfra-29 kubeflow | |
| # |
NewerOlder