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:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git credential-store
|
||||
|
||||
> `git` helper to store passwords on disk.
|
||||
> Git helper to store passwords on disk.
|
||||
> More information: <https://git-scm.com/docs/git-credential-store>.
|
||||
|
||||
- Store Git credentials in a specific file:
|
||||
|
||||
@@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# http
|
||||
|
||||
> HTTPie: an HTTP client designed for testing, debugging, and generally interacting with APIs & HTTP servers.
|
||||
> HTTPie: an HTTP client designed for testing, debugging, and generally interacting with APIs and HTTP servers.
|
||||
> More information: <https://httpie.io/docs/cli/usage>.
|
||||
|
||||
- Make a simple GET request (shows response header and content):
|
||||
- Make a simple GET request (shows response headers and content):
|
||||
|
||||
`http {{https://example.org}}`
|
||||
`http {{https://example.com}}`
|
||||
|
||||
- Print specific output content (`H`: request headers, `B`: request body, `h`: response headers, `b`: response body, `m`: response metadata):
|
||||
- Print specific parts of the content (`H`: request headers, `B`: request body, `h`: response headers, `b`: response body, `m`: response metadata):
|
||||
|
||||
`http --print {{H|B|h|b|m|Hh|Hhb|...}} {{https://example.com}}`
|
||||
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View error rate:
|
||||
|
||||
`ifstat {-e|--errors}}`
|
||||
`ifstat {{-e|--errors}}`
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use a specific network [i]nterface:
|
||||
|
||||
`qrcp {{send|receive}} --interface interface`
|
||||
`qrcp {{send|receive}} --interface {{interface}}`
|
||||
|
||||
- Keep the server alive:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Capture a video for a specific amount of seconds:
|
||||
|
||||
`rpicam-raw -t {{2000}}} -o {{path/to/file.raw}}`
|
||||
`rpicam-raw -t {{2000}} -o {{path/to/file.raw}}`
|
||||
|
||||
- Change video dimensions and framerate:
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open termusic to a specific directory. (It can be set permanently in `~/.config/termusic/config.toml`):
|
||||
|
||||
`termusic {path/to/directory}`
|
||||
`termusic {{path/to/directory}}`
|
||||
|
||||
- Disable showing the album cover for a specific file:
|
||||
|
||||
`termusic -c {path/to/music_file}`
|
||||
`termusic -c {{path/to/music_file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
25
tldr/pulumi-whoami
Normal file
25
tldr/pulumi-whoami
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pulumi whoami
|
||||
|
||||
> Print information about the currently logged in user.
|
||||
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_whoami/>.
|
||||
|
||||
- Print the username of the currently logged in user:
|
||||
|
||||
`pulumi whoami`
|
||||
|
||||
- Print detailed information about the currently logged in user:
|
||||
|
||||
`pulumi whoami {{-v|--verbose}}`
|
||||
|
||||
- Print detailed information about the currently logged in user as JSON:
|
||||
|
||||
`pulumi whoami {{-j|--json}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pulumi whoami {{-h|--help}}`
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Execute two actions (ping and traceroute) on two different targets:
|
||||
|
||||
`scamper -I "{{ping}} {{192.0.2.1}}" -I "{{trace}} {{192.0.2.2}}`
|
||||
`scamper -I "{{ping}} {{192.0.2.1}}" -I "{{trace}} {{192.0.2.2}}"`
|
||||
|
||||
- Ping several hosts with UDP, use a specific port number for the first ping and increase it for each subsequent ping:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user