Skip to content

Instantly share code, notes, and snippets.

View KiaraGrouwstra's full-sized avatar
💁‍♀️

Kiara Grouwstra KiaraGrouwstra

💁‍♀️
  • BIJ1
  • Utrecht, the Netherlands
  • 23:02 (UTC +02:00)
View GitHub Profile
@KiaraGrouwstra
KiaraGrouwstra / doxc-to-md.csv
Created March 31, 2024 20:12
docx to markdown
intent replace regex with
debold headers # +\*\*(.*)\*\* # $1
de-underline links \[<u>(.*)</u>\] [$1]
de-underline links \[<u>([\n\s\S]*?)</u>\] [$1]
remove empty comments <!-- -→\n+
ditch quote blocks ^(\s*)> ? $1
upgrade bolded lines to h2 (\[?)\*\*(.*)\*\* ## $1$2
normalize quotes '
normalize quotes '
normalize quotes
@KiaraGrouwstra
KiaraGrouwstra / config
Created March 31, 2024 15:06
kanshi config
profile lid_closed {
output HDMI-A-1 enable
}
profile undocked {
output eDP-1 enable
}
profile home_office {
output HDMI-A-1 enable mode 1366x768@60Hz position 0,0
# If a config.py file exists, this file is ignored unless it's explicitly loaded
# via config.load_autoconfig(). For more information, see:
# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml
# DO NOT edit this file by hand, qutebrowser will overwrite it.
# Instead, create a config.py - see :help for details.
config_version: 2
settings:
bindings.commands:
global:
@KiaraGrouwstra
KiaraGrouwstra / bisect-nix.md
Last active April 22, 2024 06:53
debugging nix builds using git bisect

System flake

git bisect start $BAD $GOOD && git bisect run $CMD

nixpkgs package

either:

  • nix-bisect: smartly pick bisect bad/skip in automated bisects and give nicer outputs
@KiaraGrouwstra
KiaraGrouwstra / brave-search-vim.user.js
Last active January 23, 2024 15:59
DDG-like Vim keybindings for Brave Search
// ==UserScript==
// @name DDG-like Vim keybindings for Brave Search
// @namespace https://gist.github.com/KiaraGrouwstra/94c77deb4ba1ac7c464568bb9a895b76
// @version 0.0.2
// @description navigate search results by keyboard!
// @author KiaraGrouwstra
// @match https://search.brave.com/*
// @grant none
// ==/UserScript==
@KiaraGrouwstra
KiaraGrouwstra / hcl2nix.sh
Last active January 25, 2024 23:07
hcl2nix.sh
#!/usr/bin/env sh
# usage: cat my-file.hcl | ./hcl2nix.sh > my-file.nix
cat << EOF
{
$(sed -E 's/\}$/};/g' \
| sed -E 's/\]$/];/g' \
| sed -E 's/= (.*[^\[\{])$/= \1;/g' \
| sed -E 's/ \{/ = {/g' \
| sed -E 's/^(\w+) "/\1."/g' \
| sed -E 's/" "/"."/g' \
@KiaraGrouwstra
KiaraGrouwstra / voting-advice.md
Last active July 19, 2023 18:05
data-backed voting advice
@KiaraGrouwstra
KiaraGrouwstra / pokemon-scarlet-egg-pivots.csv
Last active December 23, 2022 01:26
pokemon available in scarlet/violet that can bridge egg groups
group Amorphous Bug Dragon Fairy Field Flying Grass Human-Like Mineral Monster Water 1 Water 2 Water 3
Amorphous -
Bug -
Dragon Dreepy -
Fairy -
Field Seviper/Silicobra Pichu/Pachirisu/Dedenne/Tandemaus -
Flying Swablu/Noibat -
Grass Applin Hoppip/Shroomish Spirigatito -
Human-Like Ralts Impidimp Lucario Hawlucha Cacnea -
Mineral Sinistea Frigibax Snorunt/Falinks Cufant/Fidough -
# prerequisite: create $censored_pdf from $original_pdf using chrome print pdf -> tick 'print as image' (linux chrome) -> save as pdf
# split
for page_range in ${original_page_ranges[*]}; do
pdftk $original_pdf cat $page_range output $page_range.pdf
done
for page_range in ${censored_page_ranges[*]}; do
pdftk $censored_pdf cat $page_range output $page_range.pdf
done
@KiaraGrouwstra
KiaraGrouwstra / buurten-utrecht.geojson
Created December 28, 2021 20:43
buurten-utrecht.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.