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 | |
| input=$(cat) | |
| model_raw=$(echo "$input" | jq -r '.model.display_name // .model.id // "claude"') | |
| model_id=$(echo "$input" | jq -r '.model.id // ""') | |
| cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // ""') | |
| effort=$(echo "$input" | jq -r '.effort_level // .effortLevel // empty') | |
| output_style=$(echo "$input" | jq -r '.output_style.name // ""') |
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() { | |
| cat <<'EOF' | |
| Download Stripe invoices as PDFs (the same Stripe-generated PDFs customers get). | |
| Requirements: | |
| - macOS (uses BSD date) | |
| - curl |