Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-11 00:20:25 +00:00
parent 52cb2c6c28
commit 7597be12db
9 changed files with 92 additions and 6 deletions

2
tldr/$
View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Dollar sign
# $
> Expand a Bash variable.
> More information: <https://gnu.org/software/bash/manual/bash.html#Shell-Variables>.

2
tldr/%
View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Percent sign
# %
> Manage jobs.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Job-Control-Basics>.

2
tldr/,
View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Comma
# ,
> Run commands without installing them.
> More information: <https://github.com/nix-community/comma>.

2
tldr/^
View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Caret
# ^
> Bash builtin to quick substitute a string in the previous command and run the result.
> Equivalent to `!!:s^string1^string2`.

37
tldr/devpod Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# devpod
> Launch reproducible development environments using Docker, Kubernetes, or SSH.
> More information: <https://devpod.sh/docs/quickstart/devpod-cli/>.
- Add a provider such as Docker or Kubernetes:
`devpod provider add {{provider_name}}`
- List all available providers:
`devpod provider list-available`
- Start a workspace from a GitHub repository with a specific IDE:
`devpod up {{github.com/user/repo}} {{[-i|--ide]}} {{vscode}}`
- Start a workspace from a local directory:
`devpod up {{path/to/project}}`
- Recreate an existing workspace:
`devpod up {{workspace_name}} {{[-r|--recreate]}}`
- Reset a workspace to a clean state:
`devpod up {{workspace_name}} {{[-x|--reset]}}`
- Add a custom provider from a GitHub repository:
`devpod provider add {{org/provider-repo}}`

View File

@@ -19,3 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
- Backup any modified files before formatting (the original file is renamed with a `.bk` extension):
`rustfmt --backup {{path/to/source.rs}}`
- Format code using a specific Rust style edition (formatting rules) verbosely:
`rustfmt --style-edition {{2015|2018|2021|2024}} {{[-v|--verbose]}} {{path/to/source1.rs path/to/source2.rs ...}}`
- Format code using a specific Rust edition (language features and parsing):
`rustfmt --edition {{2015|2018|2021|2024}} {{path/to/source1.rs path/to/source2.rs ...}}`

41
tldr/vcluster Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vcluster
> Create and manage lightweight virtual Kubernetes clusters in namespaces.
> More information: <https://www.vcluster.com/docs/vcluster>.
- Create a virtual cluster in a specific namespace:
`vcluster create {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}`
- Connect to a virtual cluster with a local port and insecure mode:
`vcluster connect {{vcluster_name}} {{[-n|--namespace]}} {{namespace}} --local-port {{port}} --insecure`
- List all virtual clusters:
`vcluster list`
- Delete a virtual cluster:
`vcluster delete {{vcluster_name}}`
- List platform-managed virtual clusters:
`vcluster platform list`
- Create a platform-managed virtual cluster:
`vcluster platform create {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}`
- Connect to a platform-managed virtual cluster:
`vcluster platform connect {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}`
- Delete a platform-managed virtual cluster:
`vcluster platform delete {{vcluster_name}} {{[-n|--namespace]}} {{namespace}}`

2
tldr/{
View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Curly brace
# {
> Multipurpose shell syntax.
> More information: <https://www.gnu.org/software/bash/manual/bash.html>.

2
tldr/~
View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Tilde
# ~
> Expand to a directory.
> More information: <https://gnu.org/software/bash/manual/bash.html#Tilde-Expansion>.