From 61e0353c6b70c289fab06e2de4b13ea7027ccb47 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 15 Sep 2025 00:20:39 +0000 Subject: [PATCH] Update cheatsheets --- tldr/feh | 10 +++---- tldr/linux/mkvpropedit | 25 ++++++++++++++++++ tldr/linux/systemctl-soft-reboot | 25 ++++++++++++++++++ tldr/linux/systemctl-suspend-then-hibernate | 17 ++++++++++++ tldr/pulumi-stack-hist | 12 +++++++++ tldr/pulumi-stack-history | 29 +++++++++++++++++++++ 6 files changed, 113 insertions(+), 5 deletions(-) create mode 100644 tldr/linux/mkvpropedit create mode 100644 tldr/linux/systemctl-soft-reboot create mode 100644 tldr/linux/systemctl-suspend-then-hibernate create mode 100644 tldr/pulumi-stack-hist create mode 100644 tldr/pulumi-stack-history diff --git a/tldr/feh b/tldr/feh index 5065b784..0cb022cb 100644 --- a/tldr/feh +++ b/tldr/feh @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # feh > Lightweight image viewing utility. -> More information: . +> More information: . - View images locally or using a URL: @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - View images recursively: -`feh --recursive {{path/to/images}}` +`feh {{[-r|--recursive]}} {{path/to/images}}` - View images without window borders: -`feh --borderless {{path/to/images}}` +`feh {{[-x|--borderless]}} {{path/to/images}}` - Set the behavior when reaching the beginning or end of the image list: @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Use a specific slideshow cycle delay: -`feh --slideshow-delay {{seconds}} {{path/to/images}}` +`feh {{[-D|--slideshow-delay]}} {{seconds}} {{path/to/images}}` - Use a specific wallpaper mode (centered, filled, maximized, scaled or tiled): @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Create a montage of all images within a directory, outputting as a new image: -`feh --montage --thumb-height {{150}} --thumb-width {{150}} --index-info "{{%nn%wx%h}}" --output {{path/to/montage_image.png}}` +`feh {{[-m|--montage]}} {{[-E|--thumb-height]}} {{150}} {{[-y|--thumb-width]}} {{150}} --index-info "{{%nn%wx%h}}" {{[-o|--output]}} {{path/to/montage_image.png}}` diff --git a/tldr/linux/mkvpropedit b/tldr/linux/mkvpropedit new file mode 100644 index 00000000..f1dcd4a8 --- /dev/null +++ b/tldr/linux/mkvpropedit @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# mkvpropedit + +> Modify properties of existing Matroska files without a complete remux. +> More information: . + +- Delete title: + +`mkvpropedit {{[-d|--delete]}} title {{path/to/file.mkv}}` + +- Mark subtitle track 3 as SDH - Subtitles for deaf and hearing impared: + +`mkvpropedit {{path/to/file.mkv}} {{[-e|--edit]}} track:s3 {{[-s|--set]}} flag-hearing-impaired=1` + +- Mark audio track 2 as Default: + +`mkvpropedit {{path/to/file.mkv}} {{[-e|--edit]}} track:a2 {{[-s|--set]}} flag-default=1` + +- Delete the name of video track 1: + +`mkvpropedit {{path/to/file.mkv}} {{[-e|--edit]}} track:v1 {{[-d|--delete]}} name` diff --git a/tldr/linux/systemctl-soft-reboot b/tldr/linux/systemctl-soft-reboot new file mode 100644 index 00000000..200ccade --- /dev/null +++ b/tldr/linux/systemctl-soft-reboot @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl soft-reboot + +> Shut down and reboot userspace, leaving the kernel running. +> More information: . + +- Perform a soft reboot immediately: + +`systemctl soft-reboot` + +- Force a soft reboot: + +`systemctl soft-reboot --force` + +- Schedule a soft reboot for a specific time: + +`systemctl soft-reboot --when "{{timestamp}}"` + +- Cancel a scheduled soft reboot: + +`systemctl soft-reboot --when cancel` diff --git a/tldr/linux/systemctl-suspend-then-hibernate b/tldr/linux/systemctl-suspend-then-hibernate new file mode 100644 index 00000000..e6ca49ec --- /dev/null +++ b/tldr/linux/systemctl-suspend-then-hibernate @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl suspend-then-hibernate + +> Suspend the system, then automatically hibernate after a period of inactivity. +> More information: . + +- Suspend the system and hibernate after the configured delay: + +`systemctl suspend-then-hibernate` + +- Force suspend-then-hibernate (bypass inhibitor locks): + +`systemctl suspend-then-hibernate --force` diff --git a/tldr/pulumi-stack-hist b/tldr/pulumi-stack-hist new file mode 100644 index 00000000..3c00cf9c --- /dev/null +++ b/tldr/pulumi-stack-hist @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pulumi stack hist + +> This command is an alias of `pulumi stack history`. + +- View documentation for the original command: + +`tldr pulumi stack history` diff --git a/tldr/pulumi-stack-history b/tldr/pulumi-stack-history new file mode 100644 index 00000000..00c9e3bc --- /dev/null +++ b/tldr/pulumi-stack-history @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pulumi stack history + +> Display history for a stack. +> More information: . + +- Display history for the current stack: + +`pulumi stack {{[hist|history]}}` + +- Display history for the current stack showing full dates instead of relative dates: + +`pulumi stack {{[hist|history]}} --full-dates` + +- Display history for the current stack in JSON format: + +`pulumi stack {{[hist|history]}} {{[-j|--json]}}` + +- Display history for a specific stack: + +`pulumi stack {{[hist|history]}} {{[-s|--stack]}} {{stack_name}}` + +- Display help: + +`pulumi stack {{[hist|history]}} {{[-h|--help]}}`