From 183ddc3482084634017b091e4e6ff3a9b9e27605 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 6 Dec 2024 00:18:56 +0000 Subject: [PATCH] Update cheatsheets --- tldr/acme.sh | 2 +- tldr/chmod | 2 +- tldr/gh-config | 2 +- tldr/licensor | 2 +- tldr/linux/kwriteconfig5 | 2 +- tldr/linux/swaybg | 2 +- tldr/mkfifo | 2 +- tldr/nuclei | 2 +- tldr/openai | 4 ++-- tldr/read | 2 +- tldr/rich | 2 +- tldr/semver | 2 +- tldr/trivy | 2 +- tldr/virt-install | 2 +- tldr/wfuzz | 4 ++-- tldr/windows/show-markdown | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tldr/acme.sh b/tldr/acme.sh index 4eb7f276..9938c4f4 100644 --- a/tldr/acme.sh +++ b/tldr/acme.sh @@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git - Install certificate files into the specified locations (useful for automatic certificate renewal): -`acme.sh --install-cert -d {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd {{"systemctl force-reload nginx"}}` +`acme.sh --install-cert -d {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"` diff --git a/tldr/chmod b/tldr/chmod index f8233b30..ef4d3a65 100644 --- a/tldr/chmod +++ b/tldr/chmod @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chmod > Change the access permissions of a file or directory. -> More information: . +> More information: . - Give the [u]ser who owns a file the right to e[x]ecute it: diff --git a/tldr/gh-config b/tldr/gh-config index 14f10f43..978f7e6a 100644 --- a/tldr/gh-config +++ b/tldr/gh-config @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Reset to default text editor: -`gh config set editor {{""}}` +`gh config set editor ""` - Disable interactive prompts: diff --git a/tldr/licensor b/tldr/licensor index 8216a9c8..e2486159 100644 --- a/tldr/licensor +++ b/tldr/licensor @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Specify a copyright holder named Bobby Tables: -`licensor {{MIT}} {{"Bobby Tables"}} > {{LICENSE}}` +`licensor {{MIT}} "{{Bobby Tables}}" > {{LICENSE}}` - Specify licence exceptions with a WITH expression: diff --git a/tldr/linux/kwriteconfig5 b/tldr/linux/kwriteconfig5 index 6e34f83e..8a17fa28 100644 --- a/tldr/linux/kwriteconfig5 +++ b/tldr/linux/kwriteconfig5 @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Configure KRunner to open with the Meta (Command/Windows) global hotkey: -`kwriteconfig5 --file {{~/.config/kwinrc}} --group {{ModifierOnlyShortcuts}} --key {{Meta}} {{"org.kde.kglobalaccel,/component/krunner_desktop,org.kde.kglobalaccel.Component,invokeShortcut,_launch"}}` +`kwriteconfig5 --file {{~/.config/kwinrc}} --group {{ModifierOnlyShortcuts}} --key {{Meta}} "{{org.kde.kglobalaccel,/component/krunner_desktop,org.kde.kglobalaccel.Component,invokeShortcut,_launch}}"` diff --git a/tldr/linux/swaybg b/tldr/linux/swaybg index 87815dd8..51eff864 100644 --- a/tldr/linux/swaybg +++ b/tldr/linux/swaybg @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Set the wallpaper to a static [c]olor: -`swaybg --color {{"#rrggbb"}}` +`swaybg --color "{{#rrggbb}}"` diff --git a/tldr/mkfifo b/tldr/mkfifo index fc2aa954..d2b9ac5f 100644 --- a/tldr/mkfifo +++ b/tldr/mkfifo @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Send data through a named pipe and send the command to the background: -`echo {{"Hello World"}} > {{path/to/pipe}} &` +`echo "{{Hello World}}" > {{path/to/pipe}} &` - Receive data through a named pipe: diff --git a/tldr/nuclei b/tldr/nuclei index 26c24fd3..c8129af3 100644 --- a/tldr/nuclei +++ b/tldr/nuclei @@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git - Run scan based on one or more [t]emplate [c]onditions: -`nuclei -tc {{"contains(tags, 'xss') && contains(tags, 'cve')"}} -u {{https://vulnerable.website}}` +`nuclei -tc "{{contains(tags, 'xss') && contains(tags, 'cve')}}" -u {{https://vulnerable.website}}` diff --git a/tldr/openai b/tldr/openai index 274e0d89..6e15668d 100644 --- a/tldr/openai +++ b/tldr/openai @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Create a completion: -`openai api completions.create --model {{ada}} --prompt {{"Hello world"}}` +`openai api completions.create --model {{ada}} --prompt "{{Hello world}}"` - Create a chat completion: @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Generate images via DALLĀ·E API: -`openai api image.create --prompt {{"two dogs playing chess, cartoon"}} --num-images {{1}}` +`openai api image.create --prompt "{{two dogs playing chess, cartoon}}" --num-images {{1}}` diff --git a/tldr/read b/tldr/read index 9e299a3a..dcfb9dc8 100644 --- a/tldr/read +++ b/tldr/read @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Assign multiple values to multiple variables: -`read {{_ variable1 _ variable2}} <<< {{"The surname is Bond"}}` +`read {{_ variable1 _ variable2}} <<< "{{The surname is Bond}}"` - Do not let backslash (\) act as an escape character: diff --git a/tldr/rich b/tldr/rich index 6970dff1..3b020add 100644 --- a/tldr/rich +++ b/tldr/rich @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Display text with formatting tags, custom alignment, and line width: -`rich --print {{"Hello [green on black]Stylized[/green on black] [bold]World[/bold]"}} --{{left|center|right}} --width {{10}}` +`rich --print "{{Hello [green on black]Stylized[/green on black] [bold]World[/bold]}}" --{{left|center|right}} --width {{10}}` diff --git a/tldr/semver b/tldr/semver index 2e4fd548..d6c0f590 100644 --- a/tldr/semver +++ b/tldr/semver @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Test with multiple ranges: -`semver {{1.2.3}} --range {{">=1.0"}} {{"<2.0"}}` +`semver {{1.2.3}} --range "{{>=1.0}}" "{{<2.0}}"` - Test multiple version strings and return only the ones that match: diff --git a/tldr/trivy b/tldr/trivy index d9bffdcc..c0e024c2 100644 --- a/tldr/trivy +++ b/tldr/trivy @@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git - Generate output with a SARIF template: -`trivy image --format {{template}} --template {{"@sarif.tpl"}} -o {{path/to/report.sarif}} {{image:tag}}` +`trivy image --format {{template}} --template "{{@sarif.tpl}}" -o {{path/to/report.sarif}} {{image:tag}}` diff --git a/tldr/virt-install b/tldr/virt-install index fddb4416..a91dd5db 100644 --- a/tldr/virt-install +++ b/tldr/virt-install @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Create a virtual machine and kickstart an automated deployment based on Fedora 35 using only remote resources (no ISO required): -`virt-install --name {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} --location={{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} --extra-args={{"inst.ks=https://path/to/valid/kickstart.org"}}` +`virt-install --name {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} --location={{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} --extra-args="{{inst.ks=https://path/to/valid/kickstart.org}}"` diff --git a/tldr/wfuzz b/tldr/wfuzz index 6b672b70..0819e38a 100644 --- a/tldr/wfuzz +++ b/tldr/wfuzz @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Use a custom [H]eader to fuzz subdomains while [h]iding specific response [c]odes and word counts. Increase the [t]hreads to 100 and include the target ip/domain: -`wfuzz -w {{path/to/file}} -H {{"Host: FUZZ.example.com"}} --hc {{301}} --hw {{222}} -t {{100}} {{example.com}}` +`wfuzz -w {{path/to/file}} -H "{{Host: FUZZ.example.com}}" --hc {{301}} --hw {{222}} -t {{100}} {{example.com}}` - Brute force Basic Authentication using a list of usernames and passwords from files for each FUZ[z] keyword, [h]iding response [c]odes of unsuccessful attempts: @@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git - Provide wordlist directly from the command-line and use POST request for fuzzing: -`wfuzz -z list,{{word1-word2-...}} {{https://api.example.com}} -d {{"id=FUZZ&showwallet=true"}}` +`wfuzz -z list,{{word1-word2-...}} {{https://api.example.com}} -d "{{id=FUZZ&showwallet=true}}"` - Provide wordlists from a file applying base64 and md5 encoding on them (`wfuzz -e encoders` lists all available encoders): diff --git a/tldr/windows/show-markdown b/tldr/windows/show-markdown index ae42186f..34ed4026 100644 --- a/tldr/windows/show-markdown +++ b/tldr/windows/show-markdown @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Render markdown to console from string: -`{{"# Markdown content"}} | Show-Markdown` +`"{{# Markdown content}}" | Show-Markdown` - Open Markdown file in a browser: