diff --git a/pages/common/aws-eks.md b/pages/common/aws-eks.md index 689227dad4..b54aa15e17 100644 --- a/pages/common/aws-eks.md +++ b/pages/common/aws-eks.md @@ -6,7 +6,7 @@ - Create an EKS Cluster: -`aws eks create-cluster --name {{cluster_name}} --role-arn {{eks_service_role_arn}} --resources-vpc-config {{subnetIds={{subnet_ids}},securityGroupIds={{security_group_ids}}}}` +`aws eks create-cluster --name {{cluster_name}} --role-arn {{eks_service_role_arn}} --resources-vpc-config subnetIds={{subnet_ids}},securityGroupIds={{security_group_ids}}` - Update kubeconfig to connect to the EKS Cluster: diff --git a/pages/common/coproc.md b/pages/common/coproc.md index 01c4a57fd9..9dd9563a2a 100644 --- a/pages/common/coproc.md +++ b/pages/common/coproc.md @@ -13,11 +13,11 @@ - Write to a specific coprocess `stdin`: -`echo "{{input}}" >&"${{{name}}[1]}"` +`echo "{{input}}" >&"${{{name[1]}}}"` - Read from a specific coprocess `stdout`: -`read {{variable}} <&"${{{name}}[0]}"` +`read {{variable}} <&"${{{name[0]}}}"` - Create a coprocess which repeatedly reads `stdin` and runs some commands on the input: diff --git a/pages/common/d8.md b/pages/common/d8.md index 5ab4d259a4..752bf3abf7 100644 --- a/pages/common/d8.md +++ b/pages/common/d8.md @@ -13,4 +13,4 @@ - Evaluate a JavaScript expression: -`d8 -e "{{code}}` +`d8 -e "{{code}}"` diff --git a/pages/common/dropdb.md b/pages/common/dropdb.md index 033c107670..3a8505d12e 100644 --- a/pages/common/dropdb.md +++ b/pages/common/dropdb.md @@ -18,7 +18,7 @@ - Force a password prompt before connecting to the database: -`dropdb {{[-W|--password]}} {{dbname}}}}` +`dropdb {{[-W|--password]}} {{dbname}}` - Suppress a password prompt before connecting to the database: diff --git a/pages/common/for.md b/pages/common/for.md index 0979c5f426..7dec219246 100644 --- a/pages/common/for.md +++ b/pages/common/for.md @@ -13,7 +13,7 @@ - Iterate over a given range of numbers: -`for {{variable}} in {{{from}}..{{to}}..{{step}}}; do {{echo "Loop is executed"}}; done` +`for {{variable}} in {{{from..to..step}}}; do {{echo "Loop is executed"}}; done` - Iterate over a given list of files: diff --git a/pages/common/highlight.md b/pages/common/highlight.md index 925a49dbd0..496f04f396 100644 --- a/pages/common/highlight.md +++ b/pages/common/highlight.md @@ -21,4 +21,4 @@ - Print a CSS stylesheet for a theme: -`highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}}] --stdout` +`highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} --stdout` diff --git a/pages/common/hyperfine.md b/pages/common/hyperfine.md index f9827bfb08..047d9a4e0b 100644 --- a/pages/common/hyperfine.md +++ b/pages/common/hyperfine.md @@ -25,4 +25,4 @@ - Run a benchmark where a single parameter changes for each run: -`hyperfine {{[-p|--prepare]}} '{{make clean}}' {{[-P|--parameter-scan]}} {{num_threads}} {{1}} {{10}} '{{make {{[-j|--jobs]}} {num_threads}}}'` +`hyperfine {{[-p|--prepare]}} '{{make clean}}' {{[-P|--parameter-scan]}} {{num_threads}} {{1}} {{10}} '{{make --jobs {num_threads}}}'` diff --git a/pages/common/jello.md b/pages/common/jello.md index 3401e6236c..d814610623 100644 --- a/pages/common/jello.md +++ b/pages/common/jello.md @@ -25,7 +25,7 @@ - Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name1` and `key_name2`): -`cat {{file.json}} | jello '{"{{key1}}": _.{{key_name1}}, "{{key_name}}": _.{{key_name2}}}'` +`cat {{file.json}} | jello '{{{"key1": _.key_name1, "key2": _.key_name2, ...}}}'` - Output the value of a given key to a string (and disable JSON output): diff --git a/pages/common/kubetail.md b/pages/common/kubetail.md index 1444c30b81..de4747b166 100644 --- a/pages/common/kubetail.md +++ b/pages/common/kubetail.md @@ -13,7 +13,7 @@ - To tail multiple containers from multiple pods: -`kubetail {{my_app}} {{[-c|--container]}} {my_container_1}} {{[-c|--container]}} {my_container_2}}` +`kubetail {{my_app}} {{[-c|--container]}} {{my_container_1}} {{[-c|--container]}} {{my_container_2}}` - To tail multiple applications at the same time separate them by comma: diff --git a/pages/common/linode-cli-linodes.md b/pages/common/linode-cli-linodes.md index 52d43f0833..0d35d23866 100644 --- a/pages/common/linode-cli-linodes.md +++ b/pages/common/linode-cli-linodes.md @@ -18,7 +18,7 @@ - Update settings for a Linode: -`linode-cli linodes update {{linode_id}} --label {{[new_label}}` +`linode-cli linodes update {{linode_id}} --label {{new_label}}` - Delete a Linode: diff --git a/pages/common/mamba-repoquery.md b/pages/common/mamba-repoquery.md index 5e8e7b2903..dfb5e565a0 100644 --- a/pages/common/mamba-repoquery.md +++ b/pages/common/mamba-repoquery.md @@ -9,7 +9,7 @@ - Search for all packages satisfying specific constraints: -`mamba repoquery search {{sphinx<5}}` +`mamba repoquery search "{{sphinx<5}}"` - List the dependencies of a package installed in the currently activated environment, in a tree format: diff --git a/pages/common/phpcbf.md b/pages/common/phpcbf.md index f684fa81ec..6609522fe7 100644 --- a/pages/common/phpcbf.md +++ b/pages/common/phpcbf.md @@ -21,7 +21,7 @@ - A comma-separated list of files to load before processing: -`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...)}}` +`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}` - Don't recurse into subdirectories: diff --git a/pages/common/quarto.md b/pages/common/quarto.md index 7bf83e2911..10509c9c11 100644 --- a/pages/common/quarto.md +++ b/pages/common/quarto.md @@ -13,7 +13,7 @@ - Render input file(s) to different formats: -`quarto render {{path/to/file.{{qmd|rmd|ipynb}}}} --to {{html|pdf|docx}}` +`quarto render {{path/to/file.[qmd|rmd|ipynb]}} --to {{html|pdf|docx}}` - Render and preview a document or a website: diff --git a/pages/common/swig.md b/pages/common/swig.md index d51a9bdc83..8bd41378ca 100644 --- a/pages/common/swig.md +++ b/pages/common/swig.md @@ -1,7 +1,7 @@ # swig > Generate bindings between C/C++ code and various high level languages such as JavaScript, Python, C#, and more. -> It uses special `.i` or `.swg` files to generate the bindings (C/C++ with SWIG directives, then outputs a C/C++ file that contains all the wrapper code needed to build an extension module. +> It uses special `.i` or `.swg` files to generate the bindings (C/C++ with SWIG directives), then outputs a C/C++ file that contains all the wrapper code needed to build an extension module. > More information: . - Generate a binding between C++ and Python: diff --git a/pages/common/trdsql.md b/pages/common/trdsql.md index af2de036da..5bcecb477a 100644 --- a/pages/common/trdsql.md +++ b/pages/common/trdsql.md @@ -9,7 +9,7 @@ - Interpret JSON list as a table and put objects inside as columns (path/to/file.json: `{"list":[{"age":"26","name":"Tanaka"}]}`): -`trdsql "SELECT * FROM {{path/to/file.json}}::.list` +`trdsql "SELECT * FROM {{path/to/file.json}}::.list"` - Manipulate complex SQL query with data from multiple CSV files with first line is header (`-ih`): diff --git a/pages/common/vagrant-validate.md b/pages/common/vagrant-validate.md index be817df4c6..2ed50c0808 100644 --- a/pages/common/vagrant-validate.md +++ b/pages/common/vagrant-validate.md @@ -10,4 +10,4 @@ - Ensure that the Vagrantfile is correctly structured while ignoring provider-specific configuration options: -`vagrant validate {{[-p|--ignore-provider]}} {{docker|hypervlibvirt|parallels|qemu|virtualbox|vmware_desktop}` +`vagrant validate {{[-p|--ignore-provider]}} {{docker|hypervlibvirt|parallels|qemu|virtualbox|vmware_desktop}}` diff --git a/pages/linux/keyd.md b/pages/linux/keyd.md index e11153cd6d..03c3fbe2c3 100644 --- a/pages/linux/keyd.md +++ b/pages/linux/keyd.md @@ -21,4 +21,4 @@ - Create a temporary binding: -`sudo keyd bind "{{pressed_key}} = {{output_key}}` +`sudo keyd bind "{{pressed_key}} = {{output_key}}"` diff --git a/pages/linux/pstoedit.md b/pages/linux/pstoedit.md index fc0f5aae61..8a178b1cde 100644 --- a/pages/linux/pstoedit.md +++ b/pages/linux/pstoedit.md @@ -5,7 +5,7 @@ - Convert a PDF page to PNG or JPEG format: -`pstoedit -page {{page_number}} -f magick {{path/to/file.pdf}} {{page.png|page.jpg]}}` +`pstoedit -page {{page_number}} -f magick {{path/to/file.pdf}} {{page.png|page.jpg}}` - Convert multiple PDF pages to numbered images: diff --git a/pages/linux/rpicam-still.md b/pages/linux/rpicam-still.md index 5154958645..58426a34a6 100644 --- a/pages/linux/rpicam-still.md +++ b/pages/linux/rpicam-still.md @@ -5,7 +5,7 @@ - Capture a photo with different encoding: -`rpicam-still {{[-e|--encoding]}} {{bmp|png|rgb|yuv420}} {{[-o|--output]}} {{path/to/file.{{bmp|png|rgb|yuv420}}}}` +`rpicam-still {{[-e|--encoding]}} {{bmp|png|rgb|yuv420}} {{[-o|--output]}} {{path/to/file.[bmp|png|rgb|yuv420]}}` - Capture a raw image: diff --git a/pages/linux/sfdisk.md b/pages/linux/sfdisk.md index 5d1b66f674..c6fc12b184 100644 --- a/pages/linux/sfdisk.md +++ b/pages/linux/sfdisk.md @@ -13,7 +13,7 @@ - Set the type of a partition: -`sfdisk --part-type {{path/to/device}}} {{partition_number}} {{swap}}` +`sfdisk --part-type {{path/to/device}} {{partition_number}} {{swap}}` - Delete a partition: diff --git a/pages/linux/unzipsfx.md b/pages/linux/unzipsfx.md index 4cbd166715..6feb8e9836 100644 --- a/pages/linux/unzipsfx.md +++ b/pages/linux/unzipsfx.md @@ -9,16 +9,16 @@ - Extract a self-extracting binary in the current directory: -`{{./path/to/binary)}}` +`{{./path/to/binary}}` - Test a self-extracting binary for errors: -`{{./path/to/binary)}} -t` +`{{./path/to/binary}} -t` - Print content of a file in the self-extracting binary without extraction: -`{{./path/to/binary)}} -c {{path/to/filename}}` +`{{./path/to/binary}} -c {{path/to/filename}}` - Print comments on Zip archive in the self-extracting binary: -`{{./path/to/binary)}} -z` +`{{./path/to/binary}} -z`