Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Configuration
SERVICE_NAME="gemini"
KEY_ATTRIBUTE="api-key"
PREDEFINED_PROMPT="Answer the following question directly and provide the single best answer."
# Functions
@zvchei
zvchei / get-route.sh
Last active May 16, 2025 15:18
Retrieves the route for a given domain using the `ip` and `dig` tools.
#!/bin/bash
HOST="$1"
if [[ -z "$HOST" ]]; then
echo "Usage: $0 <HOSTNAME>"
exit 1
fi
IP_ADDRESS=$(dig +short A "$HOST" 2>/dev/null)