Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-25 00:18:55 +00:00
parent a0e54c81e6
commit 9c3f085aee
6 changed files with 139 additions and 0 deletions

42
tldr/fabric Normal file
View File

@@ -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: <https://github.com/danielmiessler/fabric>.
- 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}}"`

View File

@@ -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`

30
tldr/linux/bootc Normal file
View File

@@ -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: <https://containers.github.io/bootc/>.
- 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`

21
tldr/linux/flatpak-mask Normal file
View File

@@ -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: <https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-mask>.
- 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}}`

View File

@@ -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: <https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-remote-info>.
- 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}}`

21
tldr/linux/flatpak-update Normal file
View File

@@ -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: <https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-update>.
- 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}}`