for item in list
do
echo "$item"
done
for ((i=0; i<10; i++))
do
echo "$i"
done
…and more…
WezTerm is a powerful cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
A (Python) script to approximate the number of distinct values in a stream of elements using the (simple) Chakraborty/Vinodchandran/Meel algorithm (https://arxiv.org/pdf/2301.10191#section.2).
tldr:
Compared to sort/uniq:
– sort/uniq always uses less memory (about 30-50%).
– sort/uniq is about 5 times slower.
Compared to 'the awk construct':
– awk uses about the same amount of time (0.5x-2x).
– awk uses much more memory for large files. Basically linear to the file size, while ApproxiCount has an upper bound. For typical multi-GiB files this can mean factors of 20x-150x, e.g. 5GiB (awk) vs. 40MiB (aprxc).
Note to self: After a recent system update, my controller stopped working. Add the relevant lines to a udev rules file helped.
Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.
I guess the main issue was a mix auf 48k and 44k audio streams, so I set the default to 48k. According to pactl
all streams are 48k now.
/etc/pulse/daemon.conf
- default-sample-rate = 4...
Metadata within a file can tell a lot about you. Cameras record data about when and where a picture was taken and which camera was used. Office applications automatically add author and company information to documents and spreadsheets. This is sensitive information and you may not want to disclose it.
Metadata Cleaner allows you to view metadata in your files and to get rid of it, as much as possible.
Python GTK application to view and clean metadata in files, using mat2 · https://metadatacleaner.romainvigier.fr/