Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-30 00:22:12 +00:00
parent 83a66a1427
commit f892946174
8 changed files with 149 additions and 7 deletions

29
tldr/dcgmi Normal file
View File

@@ -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: <https://developer.nvidia.com/dcgm>.
- 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]}}`

View File

@@ -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: <https://www.elastic.co/guide/en/elasticsearch/reference/current/elasticsearch-croneval.html>.
- 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]}}`

29
tldr/linux/certtool Normal file
View File

@@ -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: <https://gnutls.org/manual/gnutls.html#certtool-Invocation>.
- 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}}`

View File

@@ -8,9 +8,9 @@ source: https://github.com/tldr-pages/tldr.git
> Command-line Music Player.
> Use `<ArrowKeys>` to navigate, `<Enter>` to select, and numbers `<1>`-`<8>` switch between different views.
> See also: `ncmpcpp`, `clementine`, `qmmp`.
> More information: <https://cmus.github.io>.
> More information: <https://manned.org/cmus>.
- 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:
`<c>`
@@ -26,6 +34,6 @@ source: https://github.com/tldr-pages/tldr.git
`<s>`
- Quit cmus:
- Quit `cmus`:
`<q>`

14
tldr/linux/pirut Normal file
View File

@@ -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: <https://manned.org/pirut>.
- Launch `pirut`:
`pirut`

View File

@@ -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:

View File

@@ -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: <https://manned.org/masscan>.
- Scan an IP or network subnet for port 80:

33
tldr/papermc Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# papermc
> Manage a Minecraft server.
> More information: <https://github.com/Edenhofer/minecraft-server/blob/main/minecraftd.sh.in#L480>.
- 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`