Skip to content

Instantly share code, notes, and snippets.

View gparrello's full-sized avatar

Gerardo Parrello gparrello

View GitHub Profile
@gparrello
gparrello / omo.md
Last active March 4, 2026 20:24
easy install oh my opencode and agent of empires

Small (evolving) guide for my setup to use opencode agents and related tools.

How To

  1. install opencode
curl -fsSL https://opencode.ai/install | bash
@gparrello
gparrello / myip.sh
Created November 27, 2024 07:00
get your public IPv4
#!/bin/bash
# Define an associative array with command descriptions and commands
declare -A commands=(
["Cloudflare"]="dig +timeout=5 +short txt ch whoami.cloudflare @1.0.0.1"
["OpenDNS"]="dig +timeout=5 +short myip.opendns.com @resolver1.opendns.com"
["Google"]="dig +timeout=5 TXT +short o-o.myaddr.l.google.com @ns1.google.com"
)
# Function to execute a command and capture output