To enable screen capture in OBS under Wayland, install wlrobs.
Follow the instructions found here.
(Install mercurial first, if required.)
# clone and compile
hg clone https://hg.sr.ht/~scoopta/wlrobs
cd wlrobsTo enable screen capture in OBS under Wayland, install wlrobs.
Follow the instructions found here.
(Install mercurial first, if required.)
# clone and compile
hg clone https://hg.sr.ht/~scoopta/wlrobs
cd wlrobsWhen maintaining code and, successively, building old (10+ years) Dockerfile images,
problems may arise because the base image may be based off a Debian distribution,
which is no longer available. I.e. /etc/apt/sources.list cointains references,
which no longer exist. For example, ruby:2.3
is based off Debian 9 (stretch), as can be seen.
# # cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"| sudo apt install supercollider | |
| pw-jack scide # start supercollider IDE using Pipewire-Jack | |
| # Inside the IDE, test that things are working: | |
| s.boot | |
| { [SinOsc.ar(440, 0, 0.2), SinOsc.ar(442, 0, 0.2)] }.play; # Ctrl+Enter | |
| # Ctrl+. to stop playback |
| # 1. Install official Linux drivers from Brother | |
| # e.g. https://support.brother.com/g/b/downloadtop.aspx?c=us_ot&lang=en&prod=ds640_us_eu_as | |
| # 2. Install sane-utils (Debian) | |
| sudo apt install sane-utils | |
| # 3. Connect scanner, list available scanners | |
| scanimage -L | |
| # device `brother5:bus2;dev2' is a Brother DS-640 USB scanner |
| # Given a comma-separated list of strings, | |
| # quote each string separately in double-quotes | |
| # for exampe, for using the list of strings in Python. | |
| # | |
| # Use sed to replace word boundaries (\b) with a quote character ("). | |
| head -1 some_csv_file.csv | sed -e 's|\b|"|g' | |
| # head -1 topic_to_policy_llm_CORRECTED.csv | |
| # topic_id,match,policy_field_flo,policy_field_llm,topic,source,policy_id_llm |
| # Find PDFs, for example in sorted order, | |
| # using https://gist.github.com/sepastian/5a39eb7aff7adcf2ba2460ca0738664a | |
| find -type f -name '*pdf' | \ | |
| while read f | |
| do | |
| # Append file 2 ... N | |
| if [ -f all.pdf ]; then | |
| ~/go/bin/pdfcpu merge -m append all.pdf "${f}" | |
| continue | |
| fi |
| # Use the `sort` command to sort by German month names. | |
| # | |
| # E.g. sort files containing month names in ther path. | |
| # make sure desired locale is installed | |
| $ localectl list-locales | |
| C.UTF-8 | |
| en_US.UTF-8 | |
| # install missing locales, if required |
This guide describes how to setup networking under Debian Linux on a laptop. While there are many options to choose from, Debian 12 (bookworm) uses NetworkManager and wpa_supplicant as a default. This guide installs systemd-networkd and iwd, with the goal of controlling networking form the command line, using modern components.
The official Debian documentation lists various options and serves as a starting point.
Replacing NetworkManager with systemd-networkd has been done following the official Debian docs and a great guide by Fernanto Cejas.
| # Activate Python venv when changing into directory containing .venv/bin/activate; | |
| # deactivate Python venv when leaving directory containing .venv/bin/activate. | |
| # | |
| # Handle edge case, where presend and new directory contain .venv/bin/activate, | |
| # i.e. switching from one venv into the next. | |
| # | |
| # This works for Bash only, place at the end of ~/.bashrc. | |
| # | |
| # Based on https://unix.stackexchange.com/a/170282 | |
| cd() { |
| #!/bin/bash | |
| set -euo pipefail | |
| # Select all objects which do not contain an attribute named 'message'. | |
| # | |
| # Background: a log file contains messages from an application and | |
| # numerous messages from Mongo db; the messages from Mongo contain | |
| # an attribute called 'message', the application logs contain 'msg' | |
| # instead. Filter the application logs only by selecting all objects |