Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name RGG Chess Stats
// @namespace http://tampermonkey.net/
// @version 2026-01-15
// @description Extra stats for each team in RGG Chess
// @author strayge
// @match https://rgg.land/checkers
// @match https://rgg.land/checkers/season/s4
// @icon https://www.google.com/s2/favicons?sz=64&domain=rgg.land
// @grant none
// ==UserScript==
// @name RGG Chess Rewind
// @namespace http://tampermonkey.net/
// @version 2026-01-15
// @description Allow to rewind chess moves on RGG Land
// @author strayge
// @match https://rgg.land/checkers
// @match https://rgg.land/checkers/season/s4
// @icon https://www.google.com/s2/favicons?sz=64&domain=rgg.land
// @grant none
@strayge
strayge / ml.ipynb
Created November 13, 2023 14:36
just testing NN stuff
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@strayge
strayge / pybrew.py
Created September 18, 2023 20:12
CLI tool for search Homebrew packages and sort results by downloads
"""
CLI tool for search packages on Homebrew repository by provided keyword.
Results sorted by downloads count (last 90 days).
Requirements:
pip install httpx colorama
"""
import argparse
import json
from pathlib import Path
@strayge
strayge / sqlite.ipynb
Created March 1, 2023 07:54
python sqlite performance test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@strayge
strayge / puzzle.ipynb
Created January 4, 2023 11:53
advent of code 2022 notes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@strayge
strayge / goad_windows_wsl.sh
Created September 15, 2022 13:02
goad windows wsl
# from windows (example below with zsh syntax)
py -m pip install pywinrm
git clone https://github.com/Orange-Cyberdefense/GOAD.git
cd GOAD
VAGRANT_HOME=.vagrant_home vagrant up
# in case no port access for winrm
# https://stackoverflow.com/questions/54010365/how-to-see-what-is-reserving-ephemeral-port-ranges-on-windows
# from WSL2 (ubuntu)
@strayge
strayge / docker-clean.md
Created April 26, 2022 14:59
Cleanup docker images and containers after failed builds

Cleanup docker images and containers after failed builds

Sometimes, there are some untagged images left behind after failed builds. In order to get rid of those, this script can be used.

#!/bin/bash
docker rm $(docker ps -aq)
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
@strayge
strayge / get_gists.py
Last active February 28, 2022 12:19
Download public and secret gists (token required)
# based on https://stackoverflow.com/a/16233710
import json
import urllib
from subprocess import call
import requests
import os
import math
import sys
USER = sys.argv[1]
@strayge
strayge / custom.css
Created January 20, 2022 20:54
vivaldi css fixes
/* disable white back glow on active favicons */
.tab-position .tab.active .tab-header .favicon {
filter: none !important;
}
/* hide new/restore buttons on tab list */
div.button-toolbar.toggle-trash,
div.button-toolbar.newtab {
display: none !important;
}