| #!/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 |
| #!/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 |
| # Button remap for Kensington Expert Wireless Trackball to: | |
| # BACK MIDDLE | |
| # O | |
| # LEFT RIGHT | |
| # save this file under '/etc/udev/hwdb.d/90-kensington-expert-trackball-remap.hwdb' | |
| # run `sudo systemd-hwdb update` and reboot | |
| # | |
| # source: https://askubuntu.com/questions/1145057/remapping-mouse-buttons-to-keyboard-keys | |
| # and: https://gist.github.com/dnlvgl/d16fd822bc90dcdaaae262a76fad884e | |
| # |
aka what i did to get from nothing to done.
note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV
| #!C:\perl\perl\bin | |
| # sudo apt-get install libmodern-perl-perl libstring-crc32-perl | |
| use Modern::Perl; | |
| use String::CRC32; | |
| my $sil = 0; | |
| my $debugmode = 0; | |
| my $start = time; | |
| my @files; |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL