From f892946174cdb49bc7c17d2d1550d97655b44070 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 30 Jul 2025 00:22:12 +0000 Subject: [PATCH] Update cheatsheets --- tldr/dcgmi | 29 +++++++++++++++++++++++++++++ tldr/elasticsearch-croneval | 29 +++++++++++++++++++++++++++++ tldr/linux/certtool | 29 +++++++++++++++++++++++++++++ tldr/linux/cmus | 14 +++++++++++--- tldr/linux/pirut | 14 ++++++++++++++ tldr/linux/pw-link | 4 ++-- tldr/masscan | 4 ++-- tldr/papermc | 33 +++++++++++++++++++++++++++++++++ 8 files changed, 149 insertions(+), 7 deletions(-) create mode 100644 tldr/dcgmi create mode 100644 tldr/elasticsearch-croneval create mode 100644 tldr/linux/certtool create mode 100644 tldr/linux/pirut create mode 100644 tldr/papermc diff --git a/tldr/dcgmi b/tldr/dcgmi new file mode 100644 index 00000000..50abafb6 --- /dev/null +++ b/tldr/dcgmi @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dcgmi + +> Manage and monitor NVIDIA Data Center GPUs. +> More information: . + +- Display information on all available GPUs and processes using them: + +`dcgmi discovery {{[-l|--list]}}` + +- List created groups: + +`dcgmi group {{[-l|--list]}}` + +- Display current usage statistics for device 0: + +`dcgmi dmon {{[-e|--field-id]}}{{1001,1002,1003,1004,1005}}` + +- Display help: + +`dcgmi {{[-h|--help]}}` + +- Display help for a subcommand: + +`dcgmi {{subcommand}} {{[-h|--help]}}` diff --git a/tldr/elasticsearch-croneval b/tldr/elasticsearch-croneval new file mode 100644 index 00000000..50028682 --- /dev/null +++ b/tldr/elasticsearch-croneval @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# elasticsearch-croneval + +> Validates and evaluates a `cron` expression. This command helps verify that `cron` expressions are valid for use with Elasticsearch and produce the expected results. +> More information: . + +- Evaluate a `cron` expression and display the next 10 trigger times (default behavior): + +`elasticsearch-croneval "{{cron_expression}}"` + +- Evaluate a `cron` expression and display a specific number of future trigger times: + +`elasticsearch-croneval "{{cron_expression}}" {{[-c|--count]}} {{integer}}` + +- Display detailed information (including stack trace) for an invalid `cron` expression: + +`elasticsearch-croneval "{{invalid_cron_expression}}" {{[-d|--detail]}}` + +- Display minimal output (silent mode): + +`elasticsearch-croneval "{{cron_expression}}" {{[-s|--silent]}}` + +- Display verbose output: + +`elasticsearch-croneval "{{cron_expression}}" {{[-v|--verbose]}}` diff --git a/tldr/linux/certtool b/tldr/linux/certtool new file mode 100644 index 00000000..d5b70840 --- /dev/null +++ b/tldr/linux/certtool @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# certtool + +> Generate and manage X.509 certificates, keys, and PKI structures using GnuTLS. +> More information: . + +- Generate a private key and save it to a file: + +`certtool {{[-p|--generate-privkey]}} --outfile {{path/to/private.key}}` + +- Generate a self-signed certificate using a private key and a template file: + +`certtool {{[-s|--generate-self-signed]}} --load-privkey {{path/to/private.key}} --template {{path/to/info.template}} --outfile {{path/to/certificate.crt}}` + +- Generate a certificate signing request (CSR): + +`certtool {{[-q|--generate-request]}} --load-privkey {{path/to/private.key}} --template {{path/to/info.template}} --outfile {{path/to/request.csr}}` + +- Generate a certificate authority (CA) certificate: + +`certtool {{[-s|--generate-self-signed]}} --load-privkey {{path/to/ca.key}} --template {{path/to/ca.template}} --outfile {{path/to/ca.crt}}` + +- Verify a certificate against a CA certificate: + +`certtool --verify --infile {{path/to/certificate.crt}} --load-ca-certificate {{path/to/ca.crt}}` diff --git a/tldr/linux/cmus b/tldr/linux/cmus index af04cd4a..69eb940c 100644 --- a/tldr/linux/cmus +++ b/tldr/linux/cmus @@ -8,9 +8,9 @@ source: https://github.com/tldr-pages/tldr.git > Command-line Music Player. > Use `` to navigate, `` to select, and numbers `<1>`-`<8>` switch between different views. > See also: `ncmpcpp`, `clementine`, `qmmp`. -> More information: . +> More information: . -- Open cmus into the specified directory (this will become your new working directory): +- Open `cmus` into the specified directory (this will become your new working directory): `cmus {{path/to/directory}}` @@ -18,6 +18,14 @@ source: https://github.com/tldr-pages/tldr.git `<:>add {{path/to/file_or_directory}}` +- Refresh the metadata of songs in the library: + +`<:>update-cache` + +- Search for songs, albums, or artists: + +`{{something}}` + - Pause/unpause current song: `` @@ -26,6 +34,6 @@ source: https://github.com/tldr-pages/tldr.git `` -- Quit cmus: +- Quit `cmus`: `` diff --git a/tldr/linux/pirut b/tldr/linux/pirut new file mode 100644 index 00000000..05bde405 --- /dev/null +++ b/tldr/linux/pirut @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pirut + +> Graphical frontend for `yum`. +> See also: `yum`. +> More information: . + +- Launch `pirut`: + +`pirut` diff --git a/tldr/linux/pw-link b/tldr/linux/pw-link index 424b769b..4b286f5e 100644 --- a/tldr/linux/pw-link +++ b/tldr/linux/pw-link @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - List all audio output and input ports with their IDs: -`pw-link {{[-oiI|--output --input --ids]}}` +`pw-link {{[-oiI|--output --input --id]}}` - Create a link between an output and an input port: @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - List all links with their IDs: -`pw-link {{[-lI|--links --ids]}}` +`pw-link {{[-lI|--links --id]}}` - Display help: diff --git a/tldr/masscan b/tldr/masscan index be91fdcf..bcdd3876 100644 --- a/tldr/masscan +++ b/tldr/masscan @@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # masscan -> Network scanner for scanning as fast as possible. -> Best run with elevated privileges. Nmap compatibility run `masscan --nmap` to find out more. +> A very fast network scanner. +> Works best with elevated privileges. For help with Nmap compatibility, run `masscan --nmap`. > More information: . - Scan an IP or network subnet for port 80: diff --git a/tldr/papermc b/tldr/papermc new file mode 100644 index 00000000..026de329 --- /dev/null +++ b/tldr/papermc @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# papermc + +> Manage a Minecraft server. +> More information: . + +- Start a server: + +`papermc start` + +- Stop a server: + +`papermc stop` + +- Restart a server: + +`papermc restart` + +- Backup a world: + +`papermc backup` + +- Restore world data from a backup: + +`papermc restore {{path/to/filename}}` + +- Display help: + +`papermc`