From 03b9dd8fee14f1e06f076e2636d446d5595c1561 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 16 Feb 2025 00:19:08 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/udevadm | 2 +- tldr/protoc | 12 ++++++++++++ tldr/pulumi-state | 29 +++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 tldr/pulumi-state diff --git a/tldr/linux/udevadm b/tldr/linux/udevadm index 8c4029e9..b5daf9a5 100644 --- a/tldr/linux/udevadm +++ b/tldr/linux/udevadm @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Reload all `udev` rules: -`sudo udevadm control --reload-rules` +`sudo udevadm control --reload` - Trigger all `udev` rules to run: diff --git a/tldr/protoc b/tldr/protoc index 9ea3c398..fc401a41 100644 --- a/tldr/protoc +++ b/tldr/protoc @@ -19,3 +19,15 @@ source: https://github.com/tldr-pages/tldr.git - Generate code for multiple languages: `protoc --csharp_out={{path/to/c#_output_directory}} --js_out={{path/to/js_output_directory}} {{input_file.proto}}` + +- Encode a text-format message into a protocol message from a `.proto` file: + +`protoc --encode={{TypeName}} {{input_file.proto}} < {{message.txt}}` + +- Decode a protocol message into text-format from a `.proto` file: + +`protoc --decode={{TypeName}} {{input_file.proto}} < {{message.bin}}` + +- Decode a protocol message into raw tag/value pairs: + +`protoc --decode_raw < {{message.bin}}` diff --git a/tldr/pulumi-state b/tldr/pulumi-state new file mode 100644 index 00000000..29186e80 --- /dev/null +++ b/tldr/pulumi-state @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pulumi state + +> Edit the current stack's state. +> More information: . + +- Delete a resource from the current stack's state: + +`pulumi state delete` + +- Move a resource from the current stack to another: + +`pulumi state move {{resource_urn}} --dest {{stack_name}}` + +- Rename a resource in the current stack's state: + +`pulumi state rename` + +- Repair an invalid state: + +`pulumi state repair` + +- Display help: + +`pulumi state --help`