Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-23 00:21:53 +00:00
parent 191a6f336e
commit faccb95d5c
7 changed files with 52 additions and 14 deletions

34
tldr/immich Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# immich
> Immich command-line interface (CLI) that allows you to perform certain actions.
> See also: `immich-go`.
> More information: <https://immich.app/docs/features/command-line-interface/>.
- Authenticate to Immich server:
`immich login {{server_url/api}} {{server_key}}`
- Upload some image files:
`immich upload {{file1.jpg file2.jpg ...}}`
- Upload a directory including subdirectories:
`immich upload --recursive {{path/to/directory}}`
- Create an album based on a directory:
`immich upload --album-name "{{My summer holiday}}" --recursive {{path/to/directory}}`
- Skip assets matching a glob pattern:
`immich upload --ignore {{**/Raw/** **/*.tif}} --recursive {{path/to/directory}}`
- Include hidden files:
`immich upload --include-hidden --recursive {{path/to/directory}}`

View File

@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
- Manage a cluster using a given kubernetes namespace:
`k9s --namespace {{kubernetes_namespace}} --cluster {{cluster_name}}`
`k9s {{[-n|--namespace]}} {{kubernetes_namespace}} --cluster {{cluster_name}}`
- Manage a cluster launching k9s in the pod view and enable debug logging:
`k9s --command {{pod}} --logLevel debug --cluster {{cluster_name}}`
`k9s {{[-c|--command]}} {{pod}} {{[-l|--logLevel]}} debug --cluster {{cluster_name}}`

View File

@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
- Read a PGM image, apply dithering and save it to a file:
`ppmditherbw {{path/to/image.pgm}} > {{path/to/file.pgm}}`
`pamditherbw {{path/to/image.pgm}} > {{path/to/file.pgm}}`
- Use the specified quantization method:
`ppmditherbw -{{floyd|fs|atkinson|threshold|hilbert|...}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
`pamditherbw -{{floyd|fs|atkinson|threshold|hilbert|...}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
- Use the atkinson quantization method and the specified seed for a pseudo-random number generator:
`ppmditherbw {{[-a|-atkinson]}} {{[-r|-randomseed]}} {{1337}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
`pamditherbw {{[-a|-atkinson]}} {{[-r|-randomseed]}} {{1337}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
- Specify the thresholding value for quantization methods that perform some sort of thresholding:
`ppmditherbw -{{fs|atkinson|thresholding}} {{[-va|-value]}} {{0.3}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
`pamditherbw -{{fs|atkinson|thresholding}} {{[-va|-value]}} {{0.3}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a left-to-right greyscale map:
`pgmtexture -lr > {{path/to/output.pgm}}`
`pgmramp -lr > {{path/to/output.pgm}}`
- Generate a top-to-bottom greyscale map:
`pgmtexture -tb > {{path/to/output.pgm}}`
`pgmramp -tb > {{path/to/output.pgm}}`
- Generate a rectangular greyscale map:
`pgmtexture -rectangle > {{path/to/output.pgm}}`
`pgmramp -rectangle > {{path/to/output.pgm}}`
- Generate a elliptical greyscale map:
`pgmtexture -ellipse {{path/to/image.pgm}} > {{path/to/output.pgm}}`
`pgmramp -ellipse {{path/to/image.pgm}} > {{path/to/output.pgm}}`
- Generate a greyscale map from the top-left corner to the bottom-right corner:
`pgmtexture -diagonal {{path/to/image.pgm}} > {{path/to/output.pgm}}`
`pgmramp -diagonal {{path/to/image.pgm}} > {{path/to/output.pgm}}`

View File

@@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
- Delete a feed at a specified index:
`r2e delete {{index}}`
- Display help:
`r2e {{[-h|--help]}}`

View File

@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
- Display help text for any command in the interactive CLI:
`> {{radare2_command}}?`
`{{radare2_command}}?`
- Run a shell command from the interactive CLI:
`> !{{shell_command}}`
`!{{shell_command}}`
- Dump raw bytes of current block to a file:

View File

@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Edit the starship configuration in the default editor:
`starship configure`
`starship config`
- Create a bug report GitHub issue pre-populated with information about the system and starship configuration: