From a0e54c81e61486b461ddc944a91a9ae84988e3ee Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 24 Nov 2024 00:20:26 +0000 Subject: [PATCH] Update cheatsheets --- tldr/b2sum | 6 +++++- tldr/b3sum | 6 +++++- tldr/linux/hyprctl | 4 ++-- tldr/m4b-tool | 17 +++++++++++++++++ tldr/md5sum | 6 +++++- tldr/sha1sum | 6 +++++- tldr/sha224sum | 6 +++++- tldr/sha256sum | 2 +- tldr/sha384sum | 6 +++++- tldr/sha512sum | 6 +++++- tldr/shasum | 14 +++++++------- tldr/wikiman | 30 ++++++++++++++++++++++++++++++ 12 files changed, 92 insertions(+), 17 deletions(-) create mode 100644 tldr/m4b-tool create mode 100644 tldr/wikiman diff --git a/tldr/b2sum b/tldr/b2sum index ba51e7a6..c059ec00 100644 --- a/tldr/b2sum +++ b/tldr/b2sum @@ -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` diff --git a/tldr/b3sum b/tldr/b3sum index 71ec766e..ab136a3e 100644 --- a/tldr/b3sum +++ b/tldr/b3sum @@ -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` diff --git a/tldr/linux/hyprctl b/tldr/linux/hyprctl index 18cd0f89..71fe2aa6 100644 --- a/tldr/linux/hyprctl +++ b/tldr/linux/hyprctl @@ -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: diff --git a/tldr/m4b-tool b/tldr/m4b-tool new file mode 100644 index 00000000..aba02f6c --- /dev/null +++ b/tldr/m4b-tool @@ -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: . + +- 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` diff --git a/tldr/md5sum b/tldr/md5sum index 657d2a6f..7e41da94 100644 --- a/tldr/md5sum +++ b/tldr/md5sum @@ -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` diff --git a/tldr/sha1sum b/tldr/sha1sum index 2efe99f8..8c5830f8 100644 --- a/tldr/sha1sum +++ b/tldr/sha1sum @@ -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` diff --git a/tldr/sha224sum b/tldr/sha224sum index 34542822..3c210983 100644 --- a/tldr/sha224sum +++ b/tldr/sha224sum @@ -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` diff --git a/tldr/sha256sum b/tldr/sha256sum index 06d519f4..aa8e5619 100644 --- a/tldr/sha256sum +++ b/tldr/sha256sum @@ -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` diff --git a/tldr/sha384sum b/tldr/sha384sum index 9e909259..075715c6 100644 --- a/tldr/sha384sum +++ b/tldr/sha384sum @@ -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` diff --git a/tldr/sha512sum b/tldr/sha512sum index ea646d4d..e38feef3 100644 --- a/tldr/sha512sum +++ b/tldr/sha512sum @@ -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` diff --git a/tldr/shasum b/tldr/shasum index c537fc9e..5f90def3 100644 --- a/tldr/shasum +++ b/tldr/shasum @@ -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` diff --git a/tldr/wikiman b/tldr/wikiman new file mode 100644 index 00000000..6188b13e --- /dev/null +++ b/tldr/wikiman @@ -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: . + +- 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`