Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
cd7ddd15b2
|
|||
|
88eefd2c1e
|
|||
|
54e4cc5149
|
|||
|
9901404a91
|
|||
|
4e76fec33c
|
+25
-2
@@ -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
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: git
|
||||
title: Setup git
|
||||
tags:
|
||||
- data
|
||||
- setup
|
||||
|
||||
@@ -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,5 +1,5 @@
|
||||
---
|
||||
title: Making Services
|
||||
title: Make a Service
|
||||
tags:
|
||||
- systemd
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user