Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / readme.md
Created May 10, 2024 08:45
nix git tip: use pr in flake uri
@573
573 / readme.md
Last active May 7, 2024 08:25
keyboard input moergo default keys screenshot print screen windows key winkey
@573
573 / readme.md
Created May 7, 2024 07:23
git tip: unstage all staged and discard unstaged files
  • resolve.sh assumes i.e. unshadowed cat, see here
  • resolve.sh only works as shown in the wiki when there are not yet any matching rules in rules.csv - to have a hands-on experience, delete rules.csv first
  • resolve.sh also assumes entries in i. e. 2017-unknown.journal, i. e.:
2017-05-03 (BP) COSTA COFFEE
    assets:Lloyds:current            2.43
    expenses:unknown                -2.43

2017-05-03 (BP) TESCO GROCERIES
@573
573 / readme.md
Created May 6, 2024 15:06
run a command that is shadowed by an alias or why alias is an antipattern
cat ./export/*unknown.journal \
                      | hledger -f - register -I -O csv \
                      | grep -v ":unknown" \
@573
573 / readme.md
Last active May 2, 2024 14:10
nix tip: github action to flake update
@573
573 / readme.md
Created April 27, 2024 21:24
pipewire patchbay for audio devices linux
  • recommended app: qpwgraph
  • can reset wrongly connected nodes easily
@573
573 / readme.md
Created April 27, 2024 21:21
linux tip: no sound with head phones headphone fix
  • pipewire but others should apply too
  • pavucontrol for adjusting volume:
    • one of the built-in audio off
  • the other: on "analog stereo duplex" or "analog stereo output"
@573
573 / readme.md
Created April 27, 2024 21:14
screen cast tip: nixGL -- nix run gpu-screen-recorder

probably needs nix shell h265 to run it in