Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-22 00:22:44 +00:00
parent b4c3b9f9ca
commit 2e2b744bba
8 changed files with 17 additions and 17 deletions

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Calculate an expression:
`bc --expression='{{5 / 3}}'`
`bc --expression '{{5 / 3}}'`
- Execute a script:
@@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git
- Calculate an expression with the specified scale:
`bc --expression='scale = {{10}}; {{5 / 3}}'`
`bc --expression '{{scale = 10; 5 / 3}}'`
- Calculate a sine/cosine/arctangent/natural logarithm/exponential function using `mathlib`:
`bc --mathlib --expression='{{s|c|a|l|e}}({{1}})'`
`bc --mathlib --expression '{{s|c|a|l|e}}({{1}})'`

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Display the list in a specific output format:
`herd list --format={{txt|xml|json|md}}`
`herd list --format {{txt|xml|json|md}}`
- List all commands without describing their arguments:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Use a custom directory (defaults to the output of `getconf DARWIN_USER_TEMP_DIR`, or `/tmp`):
`mktemp --tmpdir={{/path/to/tempdir}}`
`mktemp --tmpdir {{/path/to/tempdir}}`
- Use a custom path template (`X`s are replaced with random alphanumeric characters):

View File

@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
- Read a file aloud:
`say --input-file={{filename.txt}}`
`say --input-file {{filename.txt}}`
- Say a phrase with a custom voice and speech rate:
`say --voice={{voice}} --rate={{words_per_minute}} "{{I'm sorry Dave, I can't let you do that.}}"`
`say --voice {{voice}} --rate {{words_per_minute}} "{{I'm sorry Dave, I can't let you do that.}}"`
- List the available voices (different voices speak in different languages):
`say --voice="?"`
`say --voice "?"`
- Say something in Polish:
`say --voice={{Zosia}} "{{Litwo, ojczyzno moja!}}"`
`say --voice {{Zosia}} "{{Litwo, ojczyzno moja!}}"`
- Create an audio file of the spoken text:
`say --output-file={{filename.aiff}} "{{Here's to the Crazy Ones.}}"`
`say --output-file {{filename.aiff}} "{{Here's to the Crazy Ones.}}"`

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Write output to another file:
`shuf {{path/to/input_file}} --output={{ath/to/output_file}}`
`shuf {{path/to/input_file}} --output {{ath/to/output_file}}`
- Generate random numbers in the range 1 to 10:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new Mac VM from a specific ipsw file:
`tart create --from-ipsw={{latest|path/to/file.ipsw}} {{vm-name}}`
`tart create --from-ipsw {{latest|path/to/file.ipsw}} {{vm-name}}`
- Run an existing VM:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Scan a GitHub organization for verified secrets:
`trufflehog github --org={{trufflesecurity}} --only-verified`
`trufflehog github --org {{trufflesecurity}} --only-verified`
- Scan a GitHub repository for verified keys and get JSON output:
@@ -22,15 +22,15 @@ source: https://github.com/tldr-pages/tldr.git
- Scan a GitHub repository along with its Issues and Pull Requests:
`trufflehog github --repo={{https://github.com/trufflesecurity/test_keys}} --issue-comments --pr-comments`
`trufflehog github --repo {{https://github.com/trufflesecurity/test_keys}} --issue-comments --pr-comments`
- Scan an S3 bucket for verified keys:
`trufflehog s3 --bucket={{bucket name}} --only-verified`
`trufflehog s3 --bucket {{bucket name}} --only-verified`
- Scan S3 buckets using IAM Roles:
`trufflehog s3 --role-arn={{iam-role-arn}}`
`trufflehog s3 --role-arn {{iam-role-arn}}`
- Scan individual files or directories:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A youtube-dl fork with additional features and fixes.
> Download videos from YouTube and other websites.
> See also: `yt-dlp`, `ytfzf`.
> See also: `ytfzf`.
> More information: <https://github.com/yt-dlp/yt-dlp>.
- Download a video or playlist (with the default options from command below):