From 9c3f085aee740bbcab07e6f1ca32f1144279171c Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 25 Nov 2024 00:18:55 +0000 Subject: [PATCH] Update cheatsheets --- tldr/fabric | 42 ++++++++++++++++++++++++++++++++++ tldr/hugo-server | 4 ++++ tldr/linux/bootc | 30 ++++++++++++++++++++++++ tldr/linux/flatpak-mask | 21 +++++++++++++++++ tldr/linux/flatpak-remote-info | 21 +++++++++++++++++ tldr/linux/flatpak-update | 21 +++++++++++++++++ 6 files changed, 139 insertions(+) create mode 100644 tldr/fabric create mode 100644 tldr/linux/bootc create mode 100644 tldr/linux/flatpak-mask create mode 100644 tldr/linux/flatpak-remote-info create mode 100644 tldr/linux/flatpak-update diff --git a/tldr/fabric b/tldr/fabric new file mode 100644 index 00000000..3f5a8178 --- /dev/null +++ b/tldr/fabric @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# fabric + +> An open-source framework for augmenting humans using AI. +> Provides a modular framework for solving specific problems using a crowdsourced set of AI prompts. +> More information: . + +- Run the setup to configure fabric: + +`fabric --setup` + +- List all available patterns: + +`fabric --listpatterns` + +- Run a pattern with input from a file: + +`fabric --pattern {{pattern_name}} < {{path/to/input_file}}` + +- Run a pattern on a YouTube video URL: + +`fabric --youtube "{{https://www.youtube.com/watch?v=video_id}}" --pattern {{pattern_name}}` + +- Chain patterns together by piping output from one to another: + +`fabric --pattern {{pattern1}} | fabric --pattern {{pattern2}}` + +- Run a custom user-defined pattern: + +`fabric --pattern {{custom_pattern_name}}` + +- Run a pattern and save the output to a file: + +`fabric --pattern {{pattern_name}} --output {{path/to/output_file}}` + +- Run a pattern with the specified variables: + +`fabric --pattern {{pattern_name}} --variable "{{variable_name}}:{{value}}"` diff --git a/tldr/hugo-server b/tldr/hugo-server index 645e6144..1f88b70b 100644 --- a/tldr/hugo-server +++ b/tldr/hugo-server @@ -20,6 +20,10 @@ source: https://github.com/tldr-pages/tldr.git `hugo server --minify` +- Build and serve a site in the production environment with full re-renders while minifying supported formats: + +`hugo server --environment {{production}} --disableFastRender --minify` + - Display help: `hugo server --help` diff --git a/tldr/linux/bootc b/tldr/linux/bootc new file mode 100644 index 00000000..1ac8a5d3 --- /dev/null +++ b/tldr/linux/bootc @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# bootc + +> Boot and upgrade via container images. +> Manages transactional, in-place operating system updates using OCI/Docker container images. +> More information: . + +- Show deployments in the order they will appear in the bootloader: + +`bootc status` + +- Check if any updates are available: + +`bootc upgrade --check` + +- Prepare a new update and reboot into it: + +`bootc upgrade --apply` + +- Change OS base to new container image: + +`bootc switch {{image}}` + +- Reboot into the previous ostree deployment: + +`bootc rollback` diff --git a/tldr/linux/flatpak-mask b/tldr/linux/flatpak-mask new file mode 100644 index 00000000..39ec4271 --- /dev/null +++ b/tldr/linux/flatpak-mask @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# flatpak mask + +> Mask out updates and automatic installation. +> More information: . + +- Ignore updates for a specific flatpak: + +`flatpak mask {{com.example.app}}` + +- Undo ignore updates: + +`flatpak mask --remove {{com.example.app}}` + +- List all currently masked patterns: + +`flatpak mask {{--system|--user}}` diff --git a/tldr/linux/flatpak-remote-info b/tldr/linux/flatpak-remote-info new file mode 100644 index 00000000..6e3fb1c7 --- /dev/null +++ b/tldr/linux/flatpak-remote-info @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# flatpak remote-info + +> Show information about an application or runtime in a remote. +> More information: . + +- Show information about a flatpak: + +`flatpak remote-info {{remote_name}} {{com.example.app}}` + +- Show a log of previous versions in a remote: + +`flatpak remote-info --log {{remote_name}} {{com.example.app}}` + +- Show information about the specific commit, rather than the latest version: + +`flatpak remote-info --commit={{COMMIT}} {{remote_name}} {{com.example.app}}` diff --git a/tldr/linux/flatpak-update b/tldr/linux/flatpak-update new file mode 100644 index 00000000..559be916 --- /dev/null +++ b/tldr/linux/flatpak-update @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# flatpak update + +> Update flatpak applications and runtimes. +> More information: . + +- Update all installed applications and runtimes (use `-y` to confirm all prompts automatically): + +`flatpak update` + +- Update only a specific app: + +`flatpak update {{com.example.app}}` + +- Update/Downgrade to a specific commit (also see flatpak remote-info and flatpak mask): + +`flatpak update --commit={{COMMIT}} {{com.example.app}}`