Skip to content

Instantly share code, notes, and snippets.

@kverb
kverb / init.sh
Created January 21, 2025 14:58
river config
#!/bin/sh
# lots of config lifted from https://github.com/warrior0x7/rivercfg/blob/main/.config/river/init
#
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
# Set background and border color
riverctl background-color 0x000000
riverctl border-width 1
riverctl border-color-focused 0xb0e0e6
@kverb
kverb / wsj_ladder.js
Created August 30, 2024 16:56
WSJ Ladder on cloudflare workers
// JS Snippet for a cloudflare worker to get the "Shareable" URL for a wsj.com article by URL.
// Requires a valid, authenticated wsj.com cookie jar.
// Uses a cloudflare workers KV namespace bound to `TestKV` to store/fetch the cookies.
// getting these cookies is a pain. This was extracted using the chrome dev tools > copy request as Fetch and manually filtering out just the cookie header
const default_cookies = 'datadome=7S65yfEc866mp9GpkZUQXtvYKJHblCG5VlkmmCEzHErmZn4Cxj1DizrKaq6u_WW~SL3xkFUyv2sas2PJxIMAdJxPJ3skZr009v4kbL4sHsdYAnJHZhN0wtr8F8WRDz1l; djcs_route=7055a21f-09ec-48b1-b187-06518dfd9f6f; ca_rt=3IX-ARt2INJ47c8pbe87kw.SvzY1D2JoWw2n_c_Y3_wN78ns1LcSsITZEjFkMVz9K-dt9Nv7zaM-KWrg7GZRSWwHURy6sMrpRN6x68I6P9mtncYsvXMhVCnFdZnEnVxlj8; _pcid=%7B%22browserId%22%3A%22ltofwg00gm2jgtk9%22%7D; cX_P=ltofwg00gm2jgtk9; _pubcid=ddebe880-2003-4d12-8da8-2511b02cc014; _sp_su=false; TR=V2-a80a4882c66bd273e8409f9b32bf2dc04f6968616ebc9adf8c862073eeb1efea; ab_uuid=2eaa406a-31e0-49a8-bad2-bb149907d4d2; _ncg_domain_id_=00f9e1d
@kverb
kverb / sonarrMKV.py
Last active February 16, 2023 17:21
add .mkv to sonarr comples but not imported
#!/usr/bin/python3
import os
import pathlib
####
# What is this for?
# For some reason, Sonarr does not support automatic NOR manual importing
# of files if the filenames are obfuscated and contain no file extension.
# IMO, if the episode directory can be parsed correctly, and there is only
# one file (without an obvious file type extension) in the directory, we can confidently
@kverb
kverb / fixup.patch
Created January 20, 2021 18:51
fixup SignalGroup struct & signal-cli daemon cmd for 0.7.4
commit 132eb3276585e8d33801e109094cbd00ca59a8d9
Author: kverb <[email protected]>
Date: Wed Jan 20 10:38:40 2021 -0800
fixup SignalGroup struct & signal-cli daemon cmd for 0.7.4
As of signal-cli v.0.7.4, the exec command needs to be slightly changed
in order to scan stdout correctly.
This might just be an issue with a warning message being emitted in
/*
original : https://github.com/turing753/minimal-functional-fox
*/
window#main-window {
/* *******************************************************************
You can tweak the major colors here, the names should
be self explanatory. If you want you can also import the stylesheet
generated by pywal and pass the variables from that stylesheet on to
--color-* vars.

Keybase proof

I hereby claim:

  • I am kverb on github.
  • I am kverb (https://keybase.io/kverb) on keybase.
  • I have a public key ASAqujKr2HYGsfN7JXjQQsH9JOC7mBHQEzIwFlGVsgZTrAo

To claim this, I am signing this object: