mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 03:57:13 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/immich
Normal file
34
tldr/immich
Normal 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}}`
|
||||||
4
tldr/k9s
4
tldr/k9s
@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Manage a cluster using a given kubernetes namespace:
|
- 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:
|
- 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}}`
|
||||||
|
|||||||
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Read a PGM image, apply dithering and save it to a file:
|
- 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:
|
- 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:
|
- 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:
|
- 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}}`
|
||||||
|
|||||||
10
tldr/pgmramp
10
tldr/pgmramp
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Generate a left-to-right greyscale map:
|
- 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:
|
- Generate a top-to-bottom greyscale map:
|
||||||
|
|
||||||
`pgmtexture -tb > {{path/to/output.pgm}}`
|
`pgmramp -tb > {{path/to/output.pgm}}`
|
||||||
|
|
||||||
- Generate a rectangular greyscale map:
|
- Generate a rectangular greyscale map:
|
||||||
|
|
||||||
`pgmtexture -rectangle > {{path/to/output.pgm}}`
|
`pgmramp -rectangle > {{path/to/output.pgm}}`
|
||||||
|
|
||||||
- Generate a elliptical greyscale map:
|
- 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:
|
- 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}}`
|
||||||
|
|||||||
4
tldr/r2e
4
tldr/r2e
@@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
- Delete a feed at a specified index:
|
- Delete a feed at a specified index:
|
||||||
|
|
||||||
`r2e delete {{index}}`
|
`r2e delete {{index}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`r2e {{[-h|--help]}}`
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Display help text for any command in the interactive CLI:
|
- Display help text for any command in the interactive CLI:
|
||||||
|
|
||||||
`> {{radare2_command}}?`
|
`{{radare2_command}}?`
|
||||||
|
|
||||||
- Run a shell command from the interactive CLI:
|
- Run a shell command from the interactive CLI:
|
||||||
|
|
||||||
`> !{{shell_command}}`
|
`!{{shell_command}}`
|
||||||
|
|
||||||
- Dump raw bytes of current block to a file:
|
- Dump raw bytes of current block to a file:
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Edit the starship configuration in the default editor:
|
- 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:
|
- Create a bug report GitHub issue pre-populated with information about the system and starship configuration:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user