Skip to content

Instantly share code, notes, and snippets.

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

Kiara Grouwstra KiaraGrouwstra

💁‍♀️
  • Utrecht, the Netherlands
  • 01:45 (UTC +01:00)
View GitHub Profile
@KiaraGrouwstra
KiaraGrouwstra / nixpkgs-unstable-betterbird-build-failure.log
Created August 31, 2024 12:51
nixpkgs unstable betterbird build failure
This file has been truncated, but you can view the full file.
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/chsdviqn4gg2rf50dqzfz1qhlqshjxbj-thunderbird-115.9.0.source.tar.xz
source root is thunderbird-115.9.0
setting SOURCE_DATE_EPOCH to timestamp 1710518603 of file thunderbird-115.9.0/sourcestamp.txt
unpackPhase completed in 4 minutes 12 seconds
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/9lx1746yy56pn3dpc35l1xr6l3lykbin-env_var_for_system_dir-ff111.patch
patching file toolkit/xre/nsXREDirProvider.cpp
@KiaraGrouwstra
KiaraGrouwstra / ddg-vi-anywhere.js
Last active May 21, 2024 06:15
DDG-like Vim keybindings for any website
// ==UserScript==
// @name DDG-like Vim keybindings for any website
// @namespace https://gist.github.com/KiaraGrouwstra/cbc198f6be09f703c42327b2cb6a6947
// @version 0.0.3
// @description navigate page by keyboard!
// @author KiaraGrouwstra
// @match https://*/*
// @grant none
// @license WTFPL
// ==/UserScript==

prioriteiten

Alle Lampen Branden Telkens Rood:

  1. Aanwijzingen
  2. gedwongen invoegen
  3. belangrijke voertuigen
    • vervolg militaire colonne
    • voorrangsvoertuigen (sirene + blauwe zwaailichten)
  4. Lichten
@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 July 2, 2024 14:23
debugging nix builds using git bisect

⚠️ obsolete, instead see https://wiki.nixos.org/wiki/Bisecting

Bisecting is a feature of version control systems such as Git and Mercurial to easily pinpoint regressions. Owing to their reproducibility, Nix and NixOS are well-suited to this. As a result, there are a few common use-cases for Nix.

(If you don't have git available, you can make it available in a shell using:)

nix --extra-experimental-features 'nix-command flakes' shell nixpkgs#git
@KiaraGrouwstra
KiaraGrouwstra / brave-search-vim.user.js
Last active May 5, 2024 01:43
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.3
// @description navigate search results by keyboard!
// @author KiaraGrouwstra
// @match https://search.brave.com/*
// @grant none
// @license WTFPL
// ==/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' \