Skip to content

Instantly share code, notes, and snippets.

# Download the key
curl -fsSLO https://ppa.tenstorrent.com/tt-pkg-key.asc
# Import to keyring
sudo gpg --dearmor tt-pkg-key.asc
sudo mv tt-pkg-key.asc.gpg /usr/share/keyrings/tt-pkg-key.gpg
# Find our distro
export DISTRO=$(awk '/VERSION_ID/{print $0~/22/ ? "jammy" : "noble"}' /etc/os-release)
@knauth
knauth / reader
Created February 7, 2022 09:08
Modified version of the Webcomics reader userscript to include support for Starslip
(function(){
var defaultSettings = {
prefetchNext: 5, //number of prefetched pages ahead
prefetchBack: 5, //number of prefetched pages behind
prefetchNextStart: 2, //number of prefetched pages ahead when the script starts
prefetchBackStart: 1, //number of prefetched pages behind when the script starts
prefetchNoNext: true, //specifies if previous page should be prefetched when theres no next page
fullLayout: true, //true for full layout mode, false for minimalistic mode
clickImgNavigates: true, //specifies if clicking the image will change pages
clikLeftHalfGoesBack: true, //specifies if clicking the left half of the image will take you to the previous page