mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -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
37
tldr/dotenvx
Normal 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`
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user