-
Linux
-
Void Linux:
-
perf stat -r N -d CMD is a great way to measure command running time on Linux.
-
Various tip to inspect the system: https://news.ycombinator.com/item?id=16685452
-
https://dev.to/brpaz/my-linux-development-environment-of-2018-ch7
-
C, Unix, and low-level programming: http://vendu.twodots.nl/wizardcode.html
-
Command-line resources:
-
Free C books: https://github.com/EbookFoundation/free-programming-books/blob/master/free-programming-books.md
-
Regular expressions:
# === {{CMD}} path/to/file
# === cat path/to/file | {{CMD}} no-section
html-no-section () {
grep -Pzo '(?s)(\A.+?)(?=\n\<!--)' $@
}
# === {{CMD}} STYLE|FOOT|... path/to/file
# === cat path/to/file | {{CMD}} STYLE|FOOT|...
html-section () {
section="$1"; shift
grep -Pzo '(?s)^\<!--\s+'$section'\s+-->\s?\n\K(.+?)(?=\n<!--|\Z)' $@
}
- Bash: Things I wish I knew before: https://news.ycombinator.com/item?id=16084763