Skip to content

Instantly share code, notes, and snippets.


Quint Guvernator qguv

View GitHub Profile
qguv /
Last active Jun 7, 2022
Extract the most commonly used stickers from your Telegram chat history.
#!/usr/bin/env python3
Extract the most commonly used stickers from your Telegram chat history as:
- a JSON obj mapping sticker paths to the number of times sent; or
- the above in text; or
- a simple webpage showing all the stickers.
_epilog = '''\
To get your Telegram chat history:
qguv / com.nextcloud.screenshots.location.plist
Last active Apr 13, 2022
Save macOS screenshots in ~/Pictures/Screenshots/YEAR/MONTH/
View com.nextcloud.screenshots.location.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
qguv /
Last active Mar 18, 2022
Visual Studio Code: Enable native Wayland support

Native wayland support is now working consistently for me in VSCode, giving much better text rendering. Unfortunately, it's still hidden behind some command-line flags.

By adding some files to /usr/local/*, you can ensure that VSCode always launches with these flags.

Adding launch flags to VSCode

Assuming that the VSCode launcher is /usr/bin/code-oss (as is the case in Arch):

  1. Create /usr/local/bin/code-oss with the following content:
// extended from example at:
pub struct SomeCollection<'a> {
strings: Vec<&'a str>,
impl<'a> SomeCollection<'a> {
pub fn new() -> Self {
SomeCollection {
qguv /
Created Jul 21, 2021
Elite Dangerous key bindings


  • Reset mouse: Mouse4

Flight throttle

  • 75%: C

Flight landing overrides

  • Thrust forward: W
  • Thrust backward: S
qguv / baghrir_recept.txt
Created Jan 14, 2021
Baghrir recipe (Dutch)
View baghrir_recept.txt
350 gr meel
150 gr griesmeel
Zakje bakpoeder
Zakje instant gist
800 ml lauw water
Snufje zout
Goed met elkaar mengen. Plaats t in n badje met lauw water en niet met gekookt water. Laat t rusten voor ongeveer 20 min.
Pan na iedere pannenkoek omspoelen met water
View basics.scm
; this can be evaluated at
(square x)
(* x x)
(range start length)
qguv /
Created Dec 17, 2020
Simple template renderer in POSIX sh
# see and
PROG=$(basename $0)
usage() {
echo "${PROG} <template-file> [config-file]"
expand() {
qguv / GMSE01.ini
Created Oct 23, 2020
Dolphin Emulator settings for Super Mario Sunshine (GameCube, NTSC, USA)
View GMSE01.ini
# Dolphin game-specific settings for: Super Mario Sunshine (GameCube, NTSC, USA)
# Avoids crashing after long periods of play
SyncGPU = True
qguv /
Created Jul 29, 2020
nginx host static files, add trailing slash when using implicit index.html, preserve anchors and queries
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
# ends in slash
location ~ /$ {
root /var/www/;
try_files $uri/index.html =404;