Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-23 00:17:21 +00:00
parent 3081b6f11e
commit ec3b4a5083
6 changed files with 42 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Resolve dependency tree in a reverse order (from a dependency to its dependencies):
`cs resolve --reverse-tree {{group_id}}:{{artifact_id}}:{{artifact_version}`
`cs resolve --reverse-tree {{group_id}}:{{artifact_id}}:{{artifact_version}}`
- Print all the libraries that depends on a specific library:

37
tldr/dotenvx Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dotenvx
> A better `dotenv`, from the creator of `dotenv`.
> More information: <https://dotenvx.com/docs>.
- Run a command with environment variables from a `.env` file:
`dotenvx run -- {{command}}`
- Run a command with environment variables from a specific `.env` file:
`dotenvx run -f {{path/to/file.env}} -- {{command}}`
- Set an environment variable with encryption:
`dotenvx set {{key}} {{value}}`
- Set an environment variable without encryption:
`dotenvx set {{key}} {{value}} --plain`
- Return environment variables defined in a `.env` file:
`dotenvx get`
- Return the value of an environment variable defined in a `.env` file:
`dotenvx get {{key}}`
- Return all environment variables from `.env` files and OS:
`dotenvx get --all`

View File

@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
- Show the last N number of commits from a certain author:
`git log {{--max-count|-n} {{number}} --author "{{author}}"`
`git log {{--max-count|-n}} {{number}} --author "{{author}}"`
- Show commits between two dates (yyyy-mm-dd):

View File

@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
- Write EOF (End-of-file) mark at the current position:
`mt -f {{/dev/nstX} eof`
`mt -f {{/dev/nstX}} eof`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
- Add important media from a chosen mirror:
`sudo urpmi.addmedia --distrib ftp://{{mirror_website}/mirror/mageia/distrib/{{version}}/{{arch}}`
`sudo urpmi.addmedia --distrib ftp://{{mirror_website}}/mirror/mageia/distrib/{{version}}/{{arch}}`
- Automatically select mirrors from a mirror list:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- List the instances in the specified state belonging to the specified compartment:
`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} list instances --state={{running|terminated|paused}} --compartment-id={{compartment_id}`
`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} list instances --state={{running|terminated|paused}} --compartment-id={{compartment_id}}`
- Create a new instance: