Compare commits

..

5 Commits

Author SHA1 Message Date
andonome cd7ddd15b2 CMD: sort 2026-06-03 06:07:28 +02:00
andonome 88eefd2c1e CMD: read sizes 2026-06-03 05:43:07 +02:00
andonome 54e4cc5149 Publish lists with title 'Rundown:' 2026-06-02 07:46:03 +02:00
andonome 9901404a91 Rename git setup 2026-06-02 07:36:03 +02:00
andonome 4e76fec33c Systemd fixups 2026-05-26 02:53:36 +02:00
4 changed files with 28 additions and 5 deletions
+25 -2
View File
@@ -200,6 +200,13 @@ shell: sh
bin: fzf
tag: comfy
aim: Read the minimal size of a git repo
cmd: git count-objects -vH | grep -Po 'size-pack: \K.*'
note: Git repositories are never at their minimal size.
shell: sh
bin: git
tag: size
aim: Email a pull request which points to your git server
tag: git
shell: sh
@@ -286,7 +293,7 @@ shell: sh
bin: journalctl
tag: system
aim: Find errors since a date
aim: Find service errors in systemd since a date
cmd: date=2027-01-01
+ journalctl --since=${date} --grep="EXT4-fs error"
shell: sh
@@ -294,7 +301,8 @@ bin: journalctl
tag: system
aim: Limit the systemd's journal size to 2 gigabytes
cmd: journalctl --vacuum-size=2G
cmd: journalctl --disk-usage
+ journalctl --vacuum-size=2G
+ journalctl --disk-usage
shell: sh
bin: journalctl
@@ -413,6 +421,13 @@ bin: ntpd
tag: time
tag: system
aim: Convert bytes to human readable size
cmd: b=10392309
+ echo "$b" | numfmt --to=eic
shell: sh
bin: numfmt
tag: size
aim: Uncompress a PDF
cmd: pdftk ${input}.pdf output ${output}.pdf uncompress
shell: sh
@@ -477,6 +492,14 @@ bin: ssh
tag: system
tag: comfy
aim: List enabled systemd services
cmd: systemctl list-unit-files --state enabled
cmd: systemctl --user list-unit-files --state enabled
shell: sh
bin: systemd
tag: system
tag: service
aim: Check a service
cmd: sudo systemctl status mpd
shell: sh
+1 -1
View File
@@ -1,5 +1,5 @@
---
title: git
title: Setup git
tags:
- data
- setup
+1 -1
View File
@@ -18,7 +18,7 @@ $(publish): .publish/%.md: %.md | .dbs/notes.rec .dbs/requires.fmt
cmds != recsel command.rec -t command -G bin -CP bin | sort -u
lists = $(patsubst %,.publish/lists/%.md, $(cmds))
get_title = printf 'title: %s\n' '${1}'
get_title = printf 'title: Rundown: %s\n' '${1}'
get_tags = recsel -t $(basename $<) $< -G bin \
-e 'bin = "$(1)"' -U -CP tag,bin | \
sed 's/.*/- &/'
+1 -1
View File
@@ -1,5 +1,5 @@
---
title: Making Services
title: Make a Service
tags:
- systemd
---