Skip to content

Instantly share code, notes, and snippets.

View josancamon19's full-sized avatar
🎯
Focusing

Joan Cabezas josancamon19

🎯
Focusing
View GitHub Profile
@josancamon19
josancamon19 / clawdbot-gateway.sh
Created January 23, 2026 19:16
clawdbot-gateway.sh
#!/bin/bash
# clawdbot-gateway.sh - Ensure clawdbot gateway is running in detached tmux session
SESSION="clawdbot-gw"
CLAWDBOT="/.sprite/languages/node/nvm/versions/node/v22.20.0/bin/clawdbot"
# Check if gateway is responding
check_gateway() {
"$CLAWDBOT" gateway health &>/dev/null
return $?
@josancamon19
josancamon19 / contents.md
Last active January 11, 2026 19:28
wiki-kg stanford pipeline explained

1. API Endpoint Used

Wikimedia Enterprise API v2

  • Authentication: https://auth.enterprise.wikimedia.com/v1/login
  • Snapshots API: https://api.enterprise.wikimedia.com/v2/snapshots
  • Download endpoint: https://api.enterprise.wikimedia.com/v2/snapshots/{wiki_identifier}/chunks/{chunk_id}/download

Only namespace 0 (main articles) is downloaded — excluding talk pages, user pages, etc.


This file has been truncated, but you can view the full file.
{
"A00": "Cólera",
"A000": "Colera debido a vibrio cholerae o1, biotipo cholerae",
"A001": "Colera debido a vibrio cholerae o1, biotipo el tor",
"A009": "Colera no especificado",
"A01": "Fiebres tifoidea y paratifoidea",
"A010": "Fiebre tifoidea",
"A011": "Fiebre paratifoidea a",
"A012": "Fiebre paratifoidea b",