Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-10 00:18:20 +00:00
parent e46a713c5e
commit 803cf27344
9 changed files with 37 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# git credential-store # 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>. > More information: <https://git-scm.com/docs/git-credential-store>.
- Store Git credentials in a specific file: - Store Git credentials in a specific file:

View File

@@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# http # 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>. > 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}}` `http --print {{H|B|h|b|m|Hh|Hhb|...}} {{https://example.com}}`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- View error rate: - View error rate:
`ifstat {-e|--errors}}` `ifstat {{-e|--errors}}`

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Use a specific network [i]nterface: - Use a specific network [i]nterface:
`qrcp {{send|receive}} --interface interface` `qrcp {{send|receive}} --interface {{interface}}`
- Keep the server alive: - Keep the server alive:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Capture a video for a specific amount of seconds: - 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: - Change video dimensions and framerate:

View File

@@ -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`): - 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: - Disable showing the album cover for a specific file:
`termusic -c {path/to/music_file}` `termusic -c {{path/to/music_file}}`
- Display help: - Display help:

25
tldr/pulumi-whoami Normal file
View 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}}`

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Execute two actions (ping and traceroute) on two different targets: - 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: - Ping several hosts with UDP, use a specific port number for the first ping and increase it for each subsequent ping:

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Interpret C source files with a shebang inside the file: - Interpret C source files with a shebang inside the file:
`#!/full/path/to/tcc -run` `#!{{/full/path/to/tcc}} -run`