Compare commits
5 Commits
d7f8c9bae1
...
cd7ddd15b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
cd7ddd15b2
|
|||
|
88eefd2c1e
|
|||
|
54e4cc5149
|
|||
|
9901404a91
|
|||
|
4e76fec33c
|
+25
-2
@@ -200,6 +200,13 @@ shell: sh
|
|||||||
bin: fzf
|
bin: fzf
|
||||||
tag: comfy
|
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
|
aim: Email a pull request which points to your git server
|
||||||
tag: git
|
tag: git
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -286,7 +293,7 @@ shell: sh
|
|||||||
bin: journalctl
|
bin: journalctl
|
||||||
tag: system
|
tag: system
|
||||||
|
|
||||||
aim: Find errors since a date
|
aim: Find service errors in systemd since a date
|
||||||
cmd: date=2027-01-01
|
cmd: date=2027-01-01
|
||||||
+ journalctl --since=${date} --grep="EXT4-fs error"
|
+ journalctl --since=${date} --grep="EXT4-fs error"
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -294,7 +301,8 @@ bin: journalctl
|
|||||||
tag: system
|
tag: system
|
||||||
|
|
||||||
aim: Limit the systemd's journal size to 2 gigabytes
|
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
|
+ journalctl --disk-usage
|
||||||
shell: sh
|
shell: sh
|
||||||
bin: journalctl
|
bin: journalctl
|
||||||
@@ -413,6 +421,13 @@ bin: ntpd
|
|||||||
tag: time
|
tag: time
|
||||||
tag: system
|
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
|
aim: Uncompress a PDF
|
||||||
cmd: pdftk ${input}.pdf output ${output}.pdf uncompress
|
cmd: pdftk ${input}.pdf output ${output}.pdf uncompress
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -477,6 +492,14 @@ bin: ssh
|
|||||||
tag: system
|
tag: system
|
||||||
tag: comfy
|
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
|
aim: Check a service
|
||||||
cmd: sudo systemctl status mpd
|
cmd: sudo systemctl status mpd
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: git
|
title: Setup git
|
||||||
tags:
|
tags:
|
||||||
- data
|
- data
|
||||||
- setup
|
- 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
|
cmds != recsel command.rec -t command -G bin -CP bin | sort -u
|
||||||
lists = $(patsubst %,.publish/lists/%.md, $(cmds))
|
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 \
|
get_tags = recsel -t $(basename $<) $< -G bin \
|
||||||
-e 'bin = "$(1)"' -U -CP tag,bin | \
|
-e 'bin = "$(1)"' -U -CP tag,bin | \
|
||||||
sed 's/.*/- &/'
|
sed 's/.*/- &/'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: Making Services
|
title: Make a Service
|
||||||
tags:
|
tags:
|
||||||
- systemd
|
- systemd
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user