Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-07 00:13:50 +00:00
parent b1ff90caa8
commit 7680979e10
7 changed files with 93 additions and 4 deletions

View File

@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Compile a Dart file to a native binary:
`dart compile exe {{path/to/file.dart}}`
- Apply automated fixes to the current project:
`dart fix --apply`

View File

@@ -5,9 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
---
# icontopbm
> This command is superseded by `sunicontopbm`.
> This command is superseded by `sunicontopnm`.
> More information: <https://netpbm.sourceforge.net/doc/icontopbm.html>.
- View documentation for the current command:
`tldr sunicontopbm`
`tldr sunicontopnm`

34
tldr/immich-cli Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# immich-cli
> Immich has a command line interface (CLI) that allows you to perform certain actions from the command line.
> 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}}`

30
tldr/immich-go Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# immich-go
> Immich-Go is an open-source tool designed to streamline uploading large photo collections to your self-hosted Immich server.
> See also: `immich-cli`.
> More information: <https://github.com/simulot/immich-go>.
- Upload a Google Photos takeout file to Immich server:
`immich-go -server={{server_url}} -key={{server_key}} upload {{path/to/takeout_file.zip}}`
- Import photos captured on June 2019, while auto-generating albums:
`immich-go -server={{server_url}} -key={{server_key}} upload -create-albums -google-photos -date={{2019-06}} {{path/to/takeout_file.zip}}`
- Upload a takeout file using server and key from a config file:
`immich-go -use-configuration={{~/.immich-go/immich-go.json}} upload {{path/to/takeout_file.zip}}`
- Examine Immich server content, remove less quality images, and preserve albums:
`immich-go -server={{server_url}} -key={{server_key}} duplicate -yes`
- Delete all albums created with the pattern "YYYY-MM-DD":
`immich-go -server={{server_url}} -key={{server_key}} tool album delete {{\d{4}-\d{2}-\d{2}}}`

View File

@@ -20,6 +20,10 @@ source: https://github.com/tldr-pages/tldr.git
`chrt --max`
- Set the scheduling policy for a process:
- Set the scheduling priority of a process:
`chrt --pid {{priority}} {{PID}}`
- Set the scheduling policy of a process:
`chrt --{{deadline|idle|batch|rr|fifo|other}} --pid {{priority}} {{PID}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dockerd
> A persistent process to start and manage Docker containers.
> More information: <https://docs.docker.com/engine/reference/commandline/dockerd/>.
> More information: <https://docs.docker.com/reference/cli/dockerd/>.
- Run Docker daemon:

17
tldr/linux/prime-run Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# prime-run
> Run a program using an alternative Nvidia graphics card.
> More information: <https://wiki.archlinux.org/title/PRIME#PRIME_render_offload>.
- Run a program using a dedicated Nvidia GPU:
`prime-run {{command}}`
- Validate whether the Nvidia card is being used:
`prime-run glxinfo | grep "OpenGL renderer"`