Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-31 00:19:32 +00:00
parent 05a60e354f
commit 17ca2e244e
9 changed files with 115 additions and 15 deletions

41
tldr/az-quantum Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# az quantum
> Manage Azure Quantum workspaces and submit quantum jobs to providers (preview, requires quantum extension).
> More information: <https://learn.microsoft.com/cli/azure/quantum>.
- Create a new Azure Quantum workspace:
`az quantum workspace create {{[-g|--resource-group]}} {{ResourceGroup}} {{[-l|--location]}} {{Location}} {{[-w|--workspace-name]}} {{Workspace}} {{[-a|--storage-account]}} {{MyStorageAccountName}}`
- List all Azure Quantum workspaces:
`az quantum workspace list`
- Set a default Azure Quantum workspace:
`az quantum workspace set {{[-g|--resource-group]}} {{ResourceGroup}} {{[-w|--workspace-name]}} {{Workspace}}`
- Submit a QIR quantum job to a target:
`az quantum job submit {{[-g|--resource-group]}} {{ResourceGroup}} {{[-w|--workspace-name]}} {{Workspace}} {{[-l|--location]}} {{Location}} {{[-t|--target-id]}} {{Id}} --job-name {{Job}} --job-input-file {{QirBitcode.bc}} --job-input-format {{qir.v1}}`
- List all jobs in a Quantum Workspace:
`az quantum job list {{[-g|--resource-group]}} {{ResourceGroup}} {{[-l|--location]}} {{Location}} {{[-w|--workspace-name]}} {{Workspace}}`
- Get the output of a quantum job:
`az quantum job output {{[-g|--resource-group]}} {{ResourceGroup}} {{[-w|--workspace-name]}} {{Workspace}} --job-id {{Job}}`
- List available provider offerings in a location:
`az quantum offerings list {{[-l|--location]}} {{Location}}`
- Set a default target for job submissions:
`az quantum target set {{[-t|--target-id]}} {{Id}}`

30
tldr/linux/pokego Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pokego
> Displays Pokémon sprites in color directly in your terminal.
> Inspired by Phoney badger's `pokemon-colorscripts` but offers enhanced speed and efficiency.
> More information: <https://github.com/rubiin/pokego>.
- Print a specific Pokémon:
`pokego --name charizard`
- Print a specific shiny Pokémon:
`pokego --name spheal -shiny`
- Print an alternative form of a Pokémon:
`pokego --name blastoise --form mega`
- Print random Pokémon from generations 1-3 (range):
`pokego --random 1-3`
- Do not display Pokémon name (default: false):
`pokego --random 1-3 --no-title`

29
tldr/ludusavi Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ludusavi
> Backup video game save data.
> More information: <https://github.com/mtkennerly/ludusavi/blob/master/docs/cli.md>.
- Backup games:
`ludusavi backup --path {{path/to/backup}}`
- Restore games:
`ludusavi restore --path {{path/to/backup}} {{"game1" "game2" ...}}`
- List backups:
`ludusavi backups --path {{path/to/backup}}`
- Wrap launcher game:
`ludusavi wrap --gui --infer {{heroic|lutris|steam}} -- {{game_launch_commands}}`
- Wrap standalone game:
`ludusavi wrap --gui --name {{name}} -- {{game_launch_commands}}`

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set a configuration key to a specific value:
`npm config set {{key}}={{value}}`
`npm config set {{key}} {{value}}`
- Delete a configuration key:

View File

@@ -18,19 +18,19 @@ source: https://github.com/tldr-pages/tldr.git
- Star a package from a specific registry:
`npm star {{package_name}} --registry={{registry_url}}`
`npm star {{package_name}} --registry {{registry_url}}`
- Star a private package that requires authentication:
`npm star {{package_name}} --auth-type={{legacy|oauth|web|saml}}`
`npm star {{package_name}} --auth-type {{legacy|oauth|web|saml}}`
- Star a package by providing an OTP for two-factor authentication:
`npm star {{package_name}} --otp={{otp}}`
`npm star {{package_name}} --otp {{otp}}`
- Star a package with detailed logging:
`npm star {{package_name}} --loglevel=verbose`
`npm star {{package_name}} --loglevel verbose`
- List all your starred packages:
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
- List your starred packages from a specific registry:
`npm star --list --registry={{registry_url}}`
`npm star --list --registry {{registry_url}}`

View File

@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
- Unstar a package from a specific registry:
`npm unstar {{package_name}} --registry={{registry_url}}`
`npm unstar {{package_name}} --registry {{registry_url}}`
- Unstar a private package that requires authentication:
`npm unstar {{package_name}} --auth-type={{legacy|oauth|web|saml}}`
`npm unstar {{package_name}} --auth-type {{legacy|oauth|web|saml}}`
- Unstar a package by providing an OTP for two-factor authentication:
`npm unstar {{package_name}} --otp={{otp}}`
`npm unstar {{package_name}} --otp {{otp}}`
- Unstar a package with a specific logging level:
`npm unstar {{package_name}} --loglevel={{silent|error|warn|notice|http|timing|info|verbose|silly}}`
`npm unstar {{package_name}} --loglevel {{silent|error|warn|notice|http|timing|info|verbose|silly}}`

View File

@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display username of the current user in the specific registry:
`npm whoami --registry={{registry_url}}`
`npm whoami --registry {{registry_url}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Join all the lines into a single line, using the specified delimiter:
`paste {{[-s|--serial]}} {{[-d|--delimiters]}} {{delimiter}} {{path/to/file}}`
`paste {{[-sd|--serial --delimiters]}} {{delimiter}} {{path/to/file}}`
- Merge two files side by side, each in its column, using TAB as delimiter:

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Archive files/directories excluding specified ones:
`zip {{[-r|--recurse-paths]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{-x|--exclude}} {{path/to/excluded_files_or_directories}}`
`zip {{[-r|--recurse-paths]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{[-x|--exclude]}} {{path/to/excluded_files_or_directories}}`
- Archive files/directories with a specific compression level (`0` - the lowest, `9` - the highest):
@@ -27,11 +27,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create an encrypted archive with a specific password:
`zip {{[-r|--recurse-paths]}} {{[-e|--encrypt]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
`zip {{[-re|--recurse-paths --encrypt]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Archive files/directories to a multi-part split Zip archive (e.g. 3 GB parts):
`zip {{[-r|--recurse-paths]}} {{[-s|--split-size]}} {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
`zip {{[-rs|--recurse-paths --split-size]}} {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Print a specific archive contents: