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
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 3, 2024 09:52
glove80 moergo keyboard umlaut

https://de.wikipedia.org/wiki/Tastaturbelegung_US-International#/media/Datei:KB_US-International.svg
Was struggling tofind the umlaut keys first a bit so here is how
alt and ctrl a meme temp and the key according to the linked resource
windows select us eng intl in settings time language
linux setxkbmap -model pc104 -layout us -variant altgr-intl
it's the rightside alt key https://de.wikipedia.org/wiki/Tastaturbelegung_US-International

crucial read, especially about indicators:

@573
573 / readme.md
Last active May 2, 2024 14:10
nix tip: github action to flake update
@573
573 / readme.md
Last active May 2, 2024 09:38
nix tip: boot raspberry 2 with u-boot and two sd cards
  • burn two sd cards with latest image
  • the one to be used in internal slot has to have at least u-boot
  • put the latter into the pi
  • put the other in a card reader connected via usb to pi
  • connect keyboard and monitor
  • power on pi
  • try help fatls
  • fatls usb 0:1
  • try printenv
  • run bootcmd_usb0
@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