Skip to content

Instantly share code, notes, and snippets.

View qguv's full-sized avatar
vibing

Quint Guvernator qguv

vibing
View GitHub Profile
@qguv
qguv / vscode-wayland.md
Last active April 3, 2024 06:40
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:
@qguv
qguv / internet_uccs.md
Last active March 4, 2024 17:14
Automatic WPA Supplicant Configuration for GNU/Linux

Get a hard-wired ethernet connection

Disable all other network daemons

This is just an example; disable and stop all active daemons.

sudo systemctl stop dhcpcd
sudo systemctl disable dhcpcd
@qguv
qguv / ue5_sav.ksy
Created January 14, 2024 21:57
Parser for Unity Engine 5 save files (tested on Pseudoregalia saves)
meta:
id: pseudoregalia_save
endian: le
seq:
- id: magic
contents: GVAS
- id: unknown1
size: 22
- id: version
type: strn
@qguv
qguv / get_stickers.py
Last active January 6, 2024 14:01
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
qguv / BashNP-Guide.txt
Created December 2, 2019 13:30
shudder's guide to network programming in bash (Mirror of broken http://shudder.daemonette.org/source/BashNP-Guide.txt)
shudder's guide to network programming in bash
==============================================
1. What's this?
I'm kind of a maniac when it's about doing nifty things with
tools not originally designed for that.that's why I wrote the "guide".
maybe there are some other resources that document this (not
counting the bash manual page) but I wanted to express my own
impressions on the possibilities of bash.
@qguv
qguv / filimin_fix_gradient.js
Created November 19, 2023 14:24
Filimin fix gradient (User script)
// ==UserScript==
// @name Filimin fix gradient
// @version 1
// @include https://manager.filimin.com/products/*/edit
// ==/UserScript==
function make_stops(start_deg, end_deg, n_stops) {
const stops = [];
const span_deg = (
end_deg > start_deg
@qguv
qguv / pancakes.md
Created August 12, 2023 22:09
Fluffy vegan pancakes

Fluffy vegan pancakes

Prep: 15 minutes. Cooking: a few minutes per round. One batch serves about 3 people.

Tools

  • large mixing bowl
  • griddle (alternatively: several flat frying pans)
  • large, thin spatula
  • soup ladle
@qguv
qguv / configuration.yaml
Last active May 5, 2023 18:19
get data from a sensor.community (airRohr) sensor into Home Assistant locally
rest: !include_dir_list rest/
@qguv
qguv / static-filters.txt
Last active May 2, 2023 12:54
uBlock Origin static filters
! to keep your filters updated, import this list as:
! https://gist.githubusercontent.com/qguv/0b1def9db429a4caf6a97fd7b48b52b2/raw/static-filters.txt
! 2021-01-18 https://stackoverflow.com
! accessibility: remove dark rabbit-hole distraction links
! to update:
! 1. visit https://stackexchange.com/sites?view=list
! 2. open devtools (F12)
! 3. choose the console tab
! 4. paste the following (without the ! at the beginning)
@qguv
qguv / 0001-float-window.patch
Created February 4, 2023 18:56
glslviewer-git float window
From b54569d3510e0c35e8d3fe5207f68adea5fa1a4f Mon Sep 17 00:00:00 2001
From: Quint Guvernator <quint@guvernator.net>
Date: Sat, 4 Feb 2023 19:47:38 +0100
Subject: [PATCH] float window
---
src/window.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/window.cpp b/src/window.cpp