diff --git a/tldr/dart b/tldr/dart index cbd6a36f..6b15bcf4 100644 --- a/tldr/dart +++ b/tldr/dart @@ -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` diff --git a/tldr/icontopbm b/tldr/icontopbm index ef388c02..dbc01e5d 100644 --- a/tldr/icontopbm +++ b/tldr/icontopbm @@ -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: . - View documentation for the current command: -`tldr sunicontopbm` +`tldr sunicontopnm` diff --git a/tldr/immich-cli b/tldr/immich-cli new file mode 100644 index 00000000..ccd18e7c --- /dev/null +++ b/tldr/immich-cli @@ -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: . + +- 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}}` diff --git a/tldr/immich-go b/tldr/immich-go new file mode 100644 index 00000000..8f344d57 --- /dev/null +++ b/tldr/immich-go @@ -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: . + +- 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}}}` diff --git a/tldr/linux/chrt b/tldr/linux/chrt index 7db4a376..63c6237f 100644 --- a/tldr/linux/chrt +++ b/tldr/linux/chrt @@ -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}}` diff --git a/tldr/linux/dockerd b/tldr/linux/dockerd index 90592075..6b5dfbad 100644 --- a/tldr/linux/dockerd +++ b/tldr/linux/dockerd @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # dockerd > A persistent process to start and manage Docker containers. -> More information: . +> More information: . - Run Docker daemon: diff --git a/tldr/linux/prime-run b/tldr/linux/prime-run new file mode 100644 index 00000000..d71117d0 --- /dev/null +++ b/tldr/linux/prime-run @@ -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: . + +- 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"`