Navigation Menu

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 / 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 / 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
@qguv
qguv / build.ninja
Created February 3, 2023 18:08
build a C binary step-by-step
libs = -lc
rule compile
command = gcc -Wall -Werror -Wpedantic -S -o $out $in
rule assemble
command = gcc -c -o $out $in
rule link
command = gcc $libs -o $out $in
@qguv
qguv / zendo.py
Last active November 27, 2022 15:46
#!/usr/bin/env python3
import collections
import functools
import itertools
import math
import primefac
import sys
tf_try_calls = []
@qguv
qguv / move_to_inbox.js
Created October 9, 2022 16:03
'Move to Inbox' in Basic HTML View in Gmail
// ==UserScript==
// @name 'Move to Inbox' in Basic HTML View in Gmail
// @namespace https://quint.guvernator.net
// @version 0.1
// @description add an option to move emails to the inbox in the basic HTML view of Gmail
// @author qguv
// @match https://mail.google.com/mail/u/*/h/*/?*&s=*
// @exclude https://mail.google.com/mail/u/*/h/*/?*&s=i*
// @grant none
// ==/UserScript==
@qguv
qguv / standard_vegan_bowl.txt
Created September 12, 2022 17:42
Standard vegan bowl
## ingredients
- a sweet potato
- some quinoa
- field greens (or mix)
- cherry tomatoes
- vegan battered chicken slices
- unsweetened vegan yoghurt
- cucumber (garnish, optional)
- pine nuts (optional but really healthy here)