Skip to content

Instantly share code, notes, and snippets.

View coolreader18's full-sized avatar

Noa coolreader18

View GitHub Profile
diff --git a/.SRCINFO b/.SRCINFO
index c8855a5..55afe04 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = anki-official-binary-bundle
pkgdesc = The official binary shipped with the tested versions of the dependent libraries.
- pkgver = 2.1.49
+ pkgver = 2.1.53
pkgrel = 1
@coolreader18
coolreader18 / PUZ_FileFormat.md
Last active August 16, 2025 21:25
Detailed `puz` file format documentation

Originally taken from FileFormat.wiki from the puz project.

Introduction

PUZ is a file format commonly used by commercial software for crossword puzzles. There is, to our knowledge, no documentation of the format available online. This page (and the implementations) is the result of a bit of reverse engineering work.

@coolreader18
coolreader18 / make-machine-applicable.sh
Last active February 28, 2025 00:54
Make any rustc lint machine-applicable :)
#!/bin/bash
# this is gross
#
# to use, set RUSTC_WORKSPACE_WRAPPER to this file
# useful with `cargo fix` when adding a new lint to your codebase
#
# if you'd like to filter only to specific diagnostics, set the env variable
# MAKE_MACHINE_APPLICABLE_FILTER to a comma-separated list of lint names or error codes
@coolreader18
coolreader18 / pia_portforward_qbittorent.ps1
Created June 24, 2025 15:02
Set the qBittorent incoming port to the port forwarded by PIA VPN
$Uri = "http://localhost:6969"
$piactl = 'C:\Program Files\Private Internet Access\piactl.exe'
& $piactl monitor portforward | ForEach-Object {
try {
$Port = [int]$_
} catch {
return
}
$Body = @{ json = ConvertTo-Json @{ listen_port = $Port } }
scopeName: source.par
patterns:
- include: "#decl"
- include: "#def"
- include: "#typedef"
- include: "#let"
- include: "#keywords"
- include: "#comments"
- include: "#literals"
- include: "#function-calls"
@coolreader18
coolreader18 / Walgreens2TSV.user.js
Last active December 24, 2025 06:38
Userscript to convert a walgreens digital receipt to a tab-separated-values document
// ==UserScript==
// @name walgreens receipt -> tsv
// @namespace https://github.com/coolreader18
// @author coolreader18
// @match https://www.walgreens.com/orderhistory/order/details-ui*
// @grant GM_setClipboard
// @version 1.0
// @author -
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1
// @description Convert a walgreens digital receipt to a tab-separated-values document