Skip to content

Instantly share code, notes, and snippets.

@Chewt
Chewt / ogatak-install.sh
Created January 16, 2025 19:42
Ogatak installation script (linux)
#!/bin/bash
# install script to make installing ogatak easier
REPO_URL="https://api.github.com/repos/rooklift/ogatak/releases/latest"
CONFIG_URL="https://raw.githubusercontent.com/sanderland/katrain/refs/heads/master/katrain/KataGo/analysis_config.cfg"
# Use curl to fetch the JSON data for the latest release
RELEASE_DATA=$(curl -s -H "Accept: application/json" "$REPO_URL" 2>/dev/null)
# Extract the URL of the latest release using jq
@Chewt
Chewt / get-ogs-games.sh
Created March 12, 2024 23:21
Download all sgf files for a user from online-go.com
#!/usr/bin/bash
#
# This program will download all games on online-go.com for a specified user
BASE='https://online-go.com/'
API='api/v1'
# Get username and ID
echo 'What is your OGS Username? '
read USERNAME