Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-11 00:20:40 +00:00
parent 9420175cb8
commit 3f758d63f7
10 changed files with 114 additions and 19 deletions

View File

@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
- Log out a specific username:
`az logout --username {{alias@somedomain.com}}`
`az logout --username {{alias@example.com}}`

View File

@@ -6,16 +6,22 @@ source: https://github.com/tldr-pages/tldr.git
# gpgv
> Verify OpenPGP signatures.
> Note: `gpgv` reads trusted pubkeys from `~/.gnupg/trustedkeys.kbx` in absence of the `--keyring` option.
> See also: `gpg`.
> More information: <https://www.gnupg.org/documentation/manuals/gnupg/gpgv.html>.
- Verify a signed file:
- Verify a clearsigned or inline-signed file (the signature is embedded in the file itself):
`gpgv {{path/to/file}}`
`gpgv {{path/to/file.asc}}`
- Verify a signed file using a detached signature:
- Verify a detached signature (`.asc` or `.sig`) against its corresponding data file:
`gpgv {{path/to/signature}} {{path/to/file}}`
`gpgv {{path/to/signature.asc}} {{path/to/data_file}}`
- Add a file to the list of keyrings (a single exported key also counts as a keyring):
- Verify a detached signature using a specific public keyring or exported public key file (`.gpg` or `.kbx`):
`gpgv --keyring {{./alice.keyring}} {{path/to/signature}} {{path/to/file}}`
`gpgv --keyring {{path/to/pubkey_or_keyring.gpg}} {{path/to/signature.asc}} {{path/to/data_file}}`
- Verify a detached signature using a specific public key file in plain text format (`.txt`):
`gpg --dearmor {{[-o|--output]}} {{path/to/pubkey.gpg}} {{path/to/pubkey.txt}} && gpgv --keyring {{path/to/pubkey.gpg}} {{path/to/signature.asc}} {{path/to/data_file}}`

25
tldr/gradle-build Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gradle build
> Build a project using Gradle.
> More information: <https://docs.gradle.org/current/userguide/gradle_basics.html>.
- Build the project:
`gradle build`
- Perform a clean build:
`gradle clean build`
- Build the project while skipping tests:
`gradle build {{[-x|--exclude-task]}} test`
- Build with more detailed logging:
`gradle build {{[-i|--info]}}`

13
tldr/jj-undo Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jj undo
> Undo the most recent recorded operation in a `jj` repository.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-undo>.
- Undo the last operation:
`jj undo`

12
tldr/linux/hwloc-ls Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# hwloc-ls
> This command is an alias of `lstopo-no-graphics`.
- View documentation for the original command:
`tldr lstopo-no-graphics`

View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl rescue
> Enter rescue mode.
> See also: `systemctl emergency`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#rescue>.
- Enter rescue mode:
`systemctl rescue`
- Enter rescue mode asynchronously:
`systemctl rescue --no-block`

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl reset-failed
> Reset the "failed" state of one or more units.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#reset-failed%20%5BPATTERN%E2%80%A6%5D>.
- Reset the failed state of all units:
`systemctl reset-failed`
- Reset the failed state of a specific unit:
`systemctl reset-failed {{unit}}`
- Reset multiple units at once:
`systemctl reset-failed {{unit_1 unit_2 ...}}`

View File

@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
- Package a web page:
`pake {{https://www.google.com/}}`
`pake {{https://www.example.com/}}`
- Package a web page with a specific window size:
`pake --width {{800}} --height {{600}} {{https://www.google.com/}}`
`pake --width {{800}} --height {{600}} {{https://www.example.com/}}`
- Package a web page with a custom application name and icon:
`pake --name {{Google}} --icon {{path/to/icon.ico}} {{https://www.google.com/}}`
`pake --name {{application_name}} --icon {{path/to/icon.ico}} {{https://www.example.com/}}`
- Package a web page with a non-resizable window:
`pake --no-resizable {{https://www.google.com/}}`
`pake --no-resizable {{https://www.example.com/}}`
- Package a web page with fullscreen mode:
`pake --fullscreen {{https://www.google.com/}}`
`pake --fullscreen {{https://www.example.com/}}`
- Package a web page with a transparent title bar:
`pake --transparent {{https://www.google.com/}}`
`pake --transparent {{https://www.example.com/}}`

View File

@@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
`sendmail < {{message.txt}} {{username}}`
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in `message.txt`:
- Send an email from `sender@example.com` (assuming the mail server is configured for this) to `receiver@example.com` containing the message in `message.txt`:
`sendmail < {{message.txt}} -f {{you@yourdomain.com}} {{test@gmail.com}}`
`sendmail < message.txt -f sender@example.com receiver@example.com`
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the file `file.zip`:
- Send an email from `sender@example.com` (assuming the mail server is configured for this) to `receiver@example.com` containing the file `file.zip`:
`sendmail < {{file.zip}} -f {{you@yourdomain.com}} {{test@gmail.com}}`
`sendmail < file.zip -f sender@example.com receiver@example.com`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Deploy site to custom domain (note that the DNS records must point to the surge.sh subdomain):
`surge {{path/to/my_project}} {{my_custom_domain.com}}`
`surge {{path/to/my_project}} {{example.com}}`
- List your surge projects:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Remove a project:
`surge teardown {{my_custom_domain.com}}`
`surge teardown {{example.com}}`