Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-24 00:20:26 +00:00
parent ad3bcf7733
commit a0e54c81e6
12 changed files with 92 additions and 17 deletions

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | b2sum`
- Read a file of BLAKE2 sums and filenames and verify all files have matching checksums:
- Read a file of BLAKE2 checksums and filenames and verify all files have matching checksums:
`b2sum --check {{path/to/file.b2}}`
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`b2sum --ignore-missing --check --quiet {{path/to/file.b2}}`
- Check a known BLAKE2 checksum of a file:
`echo {{known_blake2_checksum_of_the_file}} {{path/to/file}} | b2sum --check`

View File

@@ -20,10 +20,14 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | b3sum`
- Read a file of BLAKE3 sums and filenames and verify all files have matching checksums:
- Read a file of BLAKE3 checksums and filenames and verify all files have matching checksums:
`b3sum --check {{path/to/file.b3}}`
- Only show a message for missing files or when verification fails:
`b3sum --check --quiet {{path/to/file.b3}}`
- Check a known BLAKE3 checksum of a file:
`echo {{known_blake3_checksum_of_the_file}} {{path/to/file}} | b3sum --check`

View File

@@ -24,9 +24,9 @@ source: https://github.com/tldr-pages/tldr.git
`hyprctl workspaces`
- Call a dispatcher with an argument:
- Call a dispatcher:
`hyprctl dispatch exec {{app}}`
`hyprctl dispatch {{dispatcher}}`
- Set a configuration keyword dynamically:

17
tldr/m4b-tool Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# m4b-tool
> Merge, split, and manipulate audiobook files with chapters.
> More information: <https://github.com/sandreas/m4b-tool>.
- Create an audiobook with the audio files in the input directory:
`m4b-tool merge {{path/to/input_directory}} --output-file={{path/to/merged.m4b}}`
- Make chapters using the input files' names:
`m4b-tool merge {{path/to/input_directory}} --output-file={{path/to/merged.m4b}} --use-filenames-as-chapters`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | md5sum`
- Read a file of MD5 sums and filenames and verify all files have matching checksums:
- Read a file of MD5 checksums and filenames and verify all files have matching checksums:
`md5sum --check {{path/to/file.md5}}`
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`md5sum --ignore-missing --check --quiet {{path/to/file.md5}}`
- Check a known MD5 checksum of a file:
`echo {{known_md5_checksum_of_the_file}} {{path/to/file}} | md5sum --check`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | sha1sum`
- Read a file of SHA1 sums and filenames and verify all files have matching checksums:
- Read a file of SHA1 checksums and filenames and verify all files have matching checksums:
`sha1sum --check {{path/to/file.sha1}}`
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`sha1sum --ignore-missing --check --quiet {{path/to/file.sha1}}`
- Check a known SHA1 checksum of a file:
`echo {{known_sha1_checksum_of_the_file}} {{path/to/file}} | sha1sum --check`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | sha224sum`
- Read a file of SHA224 sums and filenames and verify all files have matching checksums:
- Read a file of SHA224 checksums and filenames and verify all files have matching checksums:
`sha224sum --check {{path/to/file.sha224}}`
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`sha224sum --ignore-missing --check --quiet {{path/to/file.sha224}}`
- Check a known SHA224 checksum of a file:
`echo {{known_sha224_checksum_of_the_file}} {{path/to/file}} | sha224sum --check`

View File

@@ -32,6 +32,6 @@ source: https://github.com/tldr-pages/tldr.git
`sha256sum --ignore-missing --check --quiet {{path/to/file.sha256}}`
- Check known SHA256 checksum of a file:
- Check a known SHA256 checksum of a file:
`echo {{known_sha256_checksum_of_the_file}} {{path/to/file}} | sha256sum --check`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | sha384sum`
- Read a file of SHA384 sums and filenames and verify all files have matching checksums:
- Read a file of SHA384 checksums and filenames and verify all files have matching checksums:
`sha384sum --check {{path/to/file.sha384}}`
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`sha384sum --ignore-missing --check --quiet {{path/to/file.sha384}}`
- Check a known SHA384 checksum of a file:
`echo {{known_sha384_checksum_of_the_file}} {{path/to/file}} | sha384sum --check`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | sha512sum`
- Read a file of SHA512 sums and filenames and verify all files have matching checksums:
- Read a file of SHA512 checksums and filenames and verify all files have matching checksums:
`sha512sum --check {{path/to/file.sha512}}`
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`sha512sum --ignore-missing --check --quiet {{path/to/file.sha512}}`
- Check a known SHA512 checksum of a file:
`echo {{known_sha512_checksum_of_the_file}} {{path/to/file}} | sha512sum --check`

View File

@@ -12,13 +12,9 @@ source: https://github.com/tldr-pages/tldr.git
`shasum {{path/to/file1 path/to/file2 ...}}`
- Calculate the SHA256 checksum for one or more files:
- Calculate the SHA checksum for one or more files with the specified algorithm:
`shasum --algorithm 256 {{path/to/file1 path/to/file2 ...}}`
- Calculate the SHA512 checksum for one or more files:
`shasum --algorithm 512 {{path/to/file1 path/to/file2 ...}}`
`shasum --algorithm {{1|224|256|384|512|512224|512256}} {{path/to/file1 path/to/file2 ...}}`
- Calculate a SHA1 checksum from `stdin`:
@@ -28,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
`shasum --algorithm 256 {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha256}}`
- Read a file of SHA1 sums and filenames and verify all files have matching checksums:
- Read a file of SHA checksums and filenames and verify all files have matching checksums (the algorithm will be automatically detected):
`shasum --check {{path/to/file}}`
@@ -39,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only show a message when verification fails, ignoring missing files:
`shasum --ignore-missing --check --quiet {{path/to/file}}`
- Check a known SHA checksum of a file:
`echo {{known_sha_checksum_of_the_file}} {{path/to/file}} | shasum --check`

30
tldr/wikiman Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# wikiman
> Offline search engine for documentation.
> Supports manual pages, Arch Wiki, Gentoo Wiki, FreeBSD documentation, and tldr-pages.
> More information: <https://github.com/filiparag/wikiman>.
- Search for a specific topic in all installed sources:
`wikiman {{search_term}}`
- Search for a topic in a specific [s]ource:
`wikiman -s {{source}} {{search_term}}`
- Search for a topic in two or more specific [s]ources:
`wikiman -s {{source1,source2,...}} {{search_term}}`
- List existing [S]ources:
`wikiman -S`
- Display [h]elp:
`wikiman -h`