mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 11:48:10 +00:00
Update cheatsheets
This commit is contained in:
38
tldr/goenv
Normal file
38
tldr/goenv
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# goenv
|
||||||
|
|
||||||
|
> Install, uninstall or switch between Golang versions.
|
||||||
|
> Supports version numbers like "1.16.15" or "1.22.8" etc.
|
||||||
|
> More information: <https://github.com/go-nv/goenv>.
|
||||||
|
|
||||||
|
- List all available goenv commands:
|
||||||
|
|
||||||
|
`goenv commands`
|
||||||
|
|
||||||
|
- Install a specific version of Golang:
|
||||||
|
|
||||||
|
`goenv install {{go_version}}`
|
||||||
|
|
||||||
|
- Use a specific version of Golang in the current project:
|
||||||
|
|
||||||
|
`goenv local {{go_version}}`
|
||||||
|
|
||||||
|
- Set the default Golang version:
|
||||||
|
|
||||||
|
`goenv global {{go_version}}`
|
||||||
|
|
||||||
|
- List all available Golang versions and highlight the default one:
|
||||||
|
|
||||||
|
`goenv versions`
|
||||||
|
|
||||||
|
- Uninstall a given Go version:
|
||||||
|
|
||||||
|
`goenv uninstall {{go_version}}`
|
||||||
|
|
||||||
|
- Run an executable with the selected Go version:
|
||||||
|
|
||||||
|
`goenv exec go run {{go_version}}`
|
||||||
29
tldr/minikube-start
Normal file
29
tldr/minikube-start
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# minikube start
|
||||||
|
|
||||||
|
> Start `minikube` with different configurations.
|
||||||
|
> More information: <https://minikube.sigs.k8s.io/docs/commands/start/>.
|
||||||
|
|
||||||
|
- Start `minikube` with a specific Kubernetes version:
|
||||||
|
|
||||||
|
`minikube start --kubernetes-version {{v1.24.0}}`
|
||||||
|
|
||||||
|
- Start `minikube` with specific resource allocations (e.g., memory and CPU):
|
||||||
|
|
||||||
|
`minikube start --memory {{2048}} --cpus {{2}}`
|
||||||
|
|
||||||
|
- Start `minikube` with a specific driver (e.g., VirtualBox):
|
||||||
|
|
||||||
|
`minikube start --driver {{virtualbox}}`
|
||||||
|
|
||||||
|
- Start `minikube` in the background (headless mode):
|
||||||
|
|
||||||
|
`minikube start --background`
|
||||||
|
|
||||||
|
- Start `minikube` with custom add-ons (e.g., the metrics server):
|
||||||
|
|
||||||
|
`minikube start --addons {{metrics-server}}`
|
||||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Specify a password ID to start an encrypted virtual machine:
|
- Specify a password ID to start an encrypted virtual machine:
|
||||||
|
|
||||||
`VBoxManage startvm {{vm_name|uuid}} --password-id {{password_id}}`
|
`VBoxManage startvm {{vm_name|uuid}} --password-id {{password_id}}`
|
||||||
|
|
||||||
- Start a virtual machine with an environment variable pair name value:
|
- Start a virtual machine with an environment variable pair name value:
|
||||||
|
|
||||||
`VBoxManage startvm {{vm_name|uuid}} --put-env={{name}}={{value}}`
|
`VBoxManage startvm {{vm_name|uuid}} --put-env={{name}}={{value}}`
|
||||||
|
|||||||
Reference in New Issue
Block a user