From 3f2128c494d6f2f872bc816e6316d86faa7f5b67 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 12 Aug 2025 00:20:27 +0000 Subject: [PATCH] Update cheatsheets --- tldr/cisco-ios/enable | 2 +- tldr/gst-inspect-1.0 | 10 +++++----- tldr/kubectl-get | 18 +++++++++++------- tldr/linux/blkid | 2 +- tldr/linux/loginctl | 1 + tldr/linux/pdfbook2 | 26 ++++++++++++++++++++++++++ tldr/linux/qm-create | 12 ++++++++++-- 7 files changed, 55 insertions(+), 16 deletions(-) create mode 100644 tldr/linux/pdfbook2 diff --git a/tldr/cisco-ios/enable b/tldr/cisco-ios/enable index b210fa9c..023115e6 100644 --- a/tldr/cisco-ios/enable +++ b/tldr/cisco-ios/enable @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # enable > Enter privileged execution mode. -> More information: . +> More information: . - Enter privileged execution mode: diff --git a/tldr/gst-inspect-1.0 b/tldr/gst-inspect-1.0 index dbe19933..0a04c3be 100644 --- a/tldr/gst-inspect-1.0 +++ b/tldr/gst-inspect-1.0 @@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git - List hardware transcoding capabilities of your device: -`gst-inspect-1.0 {{vaapi|nvcodec}}` +`gst-inspect-1.0 {{vaapi|nvcodec|...}}` - List available container plugins: -`gst-inspect-1.0 {{matroska|avi|ogg|isomp4}}` +`gst-inspect-1.0 {{matroska|avi|ogg|isomp4|...}}` - List available audio codecs: -`gst-inspect-1.0 {{opus|vorbis|flac}}` +`gst-inspect-1.0 {{opus|vorbis|flac|...}}` - List GStreamer core elements: @@ -30,11 +30,11 @@ source: https://github.com/tldr-pages/tldr.git - List plugins that utilize graphics APIs: -`gst-inspect-1.0 {{vulkan|opengl}}` +`gst-inspect-1.0 {{vulkan|opengl|...}}` - List available image codecs: -`gst-inspect-1.0 {{png|jpeg}}` +`gst-inspect-1.0 {{png|jpeg|...}}` - List all available plugins: diff --git a/tldr/kubectl-get b/tldr/kubectl-get index d5ac6f5c..cd2ad22d 100644 --- a/tldr/kubectl-get +++ b/tldr/kubectl-get @@ -10,27 +10,31 @@ source: https://github.com/tldr-pages/tldr.git - Get all namespaces in the current cluster: -`kubectl get namespaces` +`kubectl get {{[ns|namespaces]}}` - Get nodes in a specified namespace: -`kubectl get nodes {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}` - Get pods in a specified namespace: -`kubectl get pods {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}` - Get deployments in a specified namespace: -`kubectl get deployments {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[deploy|deployments]}} {{[-n|--namespace]}} {{namespace}}` - Get services in a specified namespace: -`kubectl get services {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[svc|services]}} {{[-n|--namespace]}} {{namespace}}` -- Get all resources in a specified namespace: +- Get other resources: -`kubectl get all {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{persistentvolumeclaims|secret}}` + +- Get all resources in all namespaces: + +`kubectl get all {{[-A|--all-namespaces]}}` - Get Kubernetes objects defined in a YAML manifest file: diff --git a/tldr/linux/blkid b/tldr/linux/blkid index eaaad719..b701a5c8 100644 --- a/tldr/linux/blkid +++ b/tldr/linux/blkid @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Get the UUID of the filesystem on a partition: -`blkid {{[-s|--match-tag]}} UUID {{[-o|--output]}} value {{/dev/sdXY}}` +`sudo blkid {{[-s|--match-tag]}} UUID {{[-o|--output]}} value {{/dev/sdXY}}` diff --git a/tldr/linux/loginctl b/tldr/linux/loginctl index a11fc5ac..cdb606e5 100644 --- a/tldr/linux/loginctl +++ b/tldr/linux/loginctl @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # loginctl > Manage the systemd login manager. +> See also: `lslogins`. > More information: . - Print all current sessions: diff --git a/tldr/linux/pdfbook2 b/tldr/linux/pdfbook2 new file mode 100644 index 00000000..62997380 --- /dev/null +++ b/tldr/linux/pdfbook2 @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pdfbook2 + +> Create a double sided printable PDF booklet from a PDF. +> Note: The booklet needs to be printed double-sided in landscape mode, flipped on the long edge. +> More information: . + +- Create a booklet named `file-book.pdf` with sane defaults: + +`pdfbook2 {{path/to/file.pdf}}` + +- Create a booklet with the paper size set to A4: + +`pdfbook2 {{[-p|--paper]}} a4paper {{path/to/file.pdf}}` + +- Create a booklet that has the inner margin reduced to 50 pixels (default = 150px): + +`pdfbook2 {{[-p|--paper]}} a4paper {{[-i|--inner-margin]}} 50 {{path/to/file.pdf}}` + +- Organize a large file with print signatures for binding into a larger booklet (signatures must be divisible by 4): + +`pdfbook2 {{[-p|--paper]}} a4paper --signature {{24}} {{path/to/file.pdf}}` diff --git a/tldr/linux/qm-create b/tldr/linux/qm-create index e48d32f7..697615d0 100644 --- a/tldr/linux/qm-create +++ b/tldr/linux/qm-create @@ -8,13 +8,17 @@ source: https://github.com/tldr-pages/tldr.git > Create or restore a virtual machine on QEMU/KVM Virtual Machine Manager. > More information: . -- Create a virtual machine: +- Create a virtual machine with access to 512MiB of memory and 1 CPU core: `qm {{[cr|create]}} {{100}}` - Automatically start the machine after creation: -`qm {{[cr|create]}} {{100}} --start 1` +`qm {{[cr|create]}} {{100}} --start` + +- Give the virtual machine a name: + +`qm {{[cr|create]}} {{100}} --name {{vm_name}}` - Specify the type of operating system on the machine: @@ -28,6 +32,10 @@ source: https://github.com/tldr-pages/tldr.git `qm {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}` +- Specify the install media: + +`qm {{[cr|create]}} {{100}} --cdrom {{local:iso/install-media.iso}}` + - Create a VM that bridges itself to the host network: `qm {{[cr|create]}} {{100}} --net{{0}} virtio,bridge=vmbr{{0}}`