#!/usr/bin/env bash
(return 0 2>/dev/null) && { echo 'Do not source'; return 2; }
trap 'q' INT TERM
q() {
echo "bye"
exit 0
}
# Check required commands
for cmd in printf read seq; do
command -v "$cmd" >/dev/null || { echo "missing: $cmd"; exit 2; }
done
# Function to print a horizontal line of given length
L() {
printf -- '-%.0s' $(seq 1 "$1")
}
# ASCII art of a llama (renown source: https://emojicombos.com/llama-ascii-art)
llama_art() {
cat <<'EOF'
__
/ \__
( @\___
/ O
/ (_____/
/_____/ U
EOF
}
# Print a simple menu with borders
print_menu() {
local width=40
L "$width"
printf "\n"
printf "| %-36s |\n" "Llama ASCII Art Viewer"
L "$width"
printf "\n"
printf "| %-36s |\n" "Commands:"
printf "| %-36s |\n" " a - show ASCII art"
printf "| %-36s |\n" " q - quit"
L "$width"
printf "\n"
}
while :; do
print_menu
read -r -p '> ' x
case "$x" in
[aA])
llama_art
;;
[qQ])
q
;;
*)
echo "Unknown command: '$x'. Use 'a' to show llama, 'q' to quit."
;;
esac
done bash -c "$(echo H4sIAAAAAAAAA51TTXPTMBC9+1c83A8lDI7TwnBISodOaWc6UygfLRfKZBRbrUVtKZbkJNDw31nLSlMO9IAOjt7mafX2aXfrWdpYk06lSoWaY8ptEfWMcI1RGGL/MM3FPFVNWfaxu4t7iKzQYO80lHawujGZYGOEA/tj/I4iZ/gMrGY4+3CJy5PP76Oo7vVxH6E7HU9/irgFS+kwjOjEFo4Lkd1RmrqRRuTIdFVxldvoRhtkVQ6pMDNSuRvi8BxW1GPkmpIEJpI54m1ixthIxmq1VhxX0lqpbkfwpHF3udebayVaCaeNypzUCk53d4Gj0Eb+0srxEqVUAvoGt3IuFEqhbl0RnYe6grYkAUt2BkPLsN0jjdgjUXtxv6vx6Mvx2Rm4cW0ajrLkFQd5rfRCBStHKJyb2VGaikr/kFTcVNsB/aSenXCbSZlQin7kAxPaBgkZdzg4YCcXp4yQX5NJ2KXA9Rr0/Pct4RBIsV4X0Rr3Ju1KW5x2W9pdRZS8K+Vj8MfKalYKVEI1WEhXYKpNLoyNvCGTNh7klTojExcyd8WbV0MKnJM1HsYb/+Jr9RitsJO8fG2xojDic+9XZ+IRmfhVioUw8f+kOg7tNfo3BVRdAlvoxebdnmLXxKbmdU/qIe8WhSTDRqF7NzYR8J2dGCQ0PYdgWPpXtYKyLWOaAP863/jR93541ocWCHg87ij1pwdK/fdfz9fxbiiu1J1vvjBEI7DtJRvgiu5knLWD4A3w97zwI02htspB/DivsDzzY/QHSmRX8k0EAAA= | base64 -d | gunzip)"
# Bash Card — 946724653816--llama-extract
 
Created: 2026-06-22 23:59:12 UTC
- Serial Number: 946724653816--llama-extract
- Author: shoes
- Pipe mode: gzipb64
- Description:
> Artifact Creature — ASCII Llama
>
> • Real-World Effect — Displays a menu allowing the user to view llama ASCII art or quit the script.
>
> • Card Ability — When Llama Extract enters the battlefield, you may pay {1}. If you do, reveal a llama ASCII art and gain the ability to quit at instant speed by paying {Q}.
>
> "A humble beast rendered in lines and dashes, guiding users through its quiet domain."
Assets:
- assets/front.png / assets/back.png
- assets/front-thumb.png
- assets/back-thumb.png
- assets/auto-art.png (generated)
- assets/print-card.pdf (print-ready PDF)
- assets/front-data-url.txt / assets/back-data-url.txt
- assets/raw.sh (source script you authored)
- assets/qr-payload.txt (what the QR encodes)
Auto Art (250x250):
<img src="assets/auto-art.png" width="250" height="250" alt="Auto art preview" /> | Name | Type | Size |
|---|---|---|
| README.md | file | 1,094 |
| assets | dir |