Skip to content

Instantly share code, notes, and snippets.

@vimagick
Last active November 5, 2026 05:33
Show Gist options
  • Select an option

  • Save vimagick/15b97989cc7dc817c1bd48cae9992ebf to your computer and use it in GitHub Desktop.

Select an option

Save vimagick/15b97989cc7dc817c1bd48cae9992ebf to your computer and use it in GitHub Desktop.

gah

bash -c "$(curl -fsSL https://raw.githubusercontent.com/get-gah/gah/refs/heads/master/tools/install.sh)"
export GAH_UNATTENDED=true
export GAH_DB_URL=https://gist.github.com/vimagick/15b97989cc7dc817c1bd48cae9992ebf/raw/gah-db.json
gah aliases refresh
gah aliases show
# FIXME
gah install cull
# fallback
brew install rashida-thorne/cull/cull
{
"$schema": "./schema.json",
"aliases": {
"mlr": "johnkerl/miller",
"dnsx": "projectdiscovery/dnsx",
"subfinder": "projectdiscovery/subfinder",
"naabu": "projectdiscovery/naabu",
"cull": "rashida-thorne/cull",
"chatgpt": "kardolus/chatgpt-cli",
"jq": "jqlang/jq"
}
}
# See: https://github.com/get-gah/gah/issues/42
+GAH_DB_URL="${GAH_DB_URL:-https://raw.githubusercontent.com/get-gah/gah-db/refs/heads/master/db.json}"
GAH_DB_FILE="$GAH_CACHE_DIR/db.json"
function http_get() {
local url="$1"
# if curl is available, use it, otherwise use wget.
if command -v curl >/dev/null 2>&1; then
- curl -s "${GITHUB_AUTH_ARGS[@]}" "$url"
+ curl -sL "${GITHUB_AUTH_ARGS[@]}" "$url"
else
wget -q -O- "${GITHUB_AUTH_ARGS[@]}" "$url"
fi
}
function fetch_db() {
print_debug "Fetching DB"
- http_get "https://raw.githubusercontent.com/get-gah/gah-db/refs/heads/master/db.json" > "$GAH_DB_FILE"
+ http_get "$GAH_DB_URL" > "$GAH_DB_FILE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment