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:
@@ -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}})'`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
10
tldr/osx/say
10
tldr/osx/say
@@ -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.}}"`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user