diff --git a/tldr/checkov b/tldr/checkov new file mode 100644 index 00000000..0fe1c15e --- /dev/null +++ b/tldr/checkov @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# checkov + +> Checkov is a static code analysis tool for Infrastructure as Code (IaC). +> It is also a software composition analysis (SCA) tool for images and open source packages. +> More information: . + +- Scan a directory containing IaC (Terraform, Cloudformation, ARM, Ansible, Bicep, Dockerfile, etc): + +`checkov --directory {{path/to/directory}}` + +- Scan an IaC file, omitting code blocks in the output: + +`checkov --compact --file {{path/to/file}}` + +- List all checks for all IaC types: + +`checkov --list` diff --git a/tldr/duf b/tldr/duf index 32aeb9b4..b3f4b2c8 100644 --- a/tldr/duf +++ b/tldr/duf @@ -23,3 +23,15 @@ source: https://github.com/tldr-pages/tldr.git - Sort the output by a specified criteria: `duf --sort {{size|used|avail|usage}}` + +- Show or hide specific filesystems: + +`duf --{{only-fs|hide-fs}} {{tmpfs|vfat|ext4|xfs}}` + +- Sort the output by key: + +`duf --sort {{mountpoint|size|used|avail|usage|inodes|inodes_used|inodes_avail|inodes_usage|type|filesystem}}` + +- Change the theme (if `duf` fails to use the right theme): + +`duf --theme {{dark|light}}` diff --git a/tldr/icontopbm b/tldr/icontopbm new file mode 100644 index 00000000..ef388c02 --- /dev/null +++ b/tldr/icontopbm @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# icontopbm + +> This command is superseded by `sunicontopbm`. +> More information: . + +- View documentation for the current command: + +`tldr sunicontopbm` diff --git a/tldr/pamarith b/tldr/pamarith new file mode 100644 index 00000000..6fcd5138 --- /dev/null +++ b/tldr/pamarith @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pamarith + +> Apply a binary function on two Netpbm images. +> See also: `pamfunc`. +> More information: . + +- Apply the specified binary function pixel-wise on the two specified images (which must be of the same size): + +`pamarith -{{add|subtract|multiply|divide|difference|minimum|maximum|...}} {{path/to/image1.pam|pbm|pgm|ppm}} {{path/to/image2.pam|pbm|pgm|ppm}}` diff --git a/tldr/pbmto4425 b/tldr/pbmto4425 new file mode 100644 index 00000000..006d93e2 --- /dev/null +++ b/tldr/pbmto4425 @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pbmto4425 + +> Display a PBM image on an AT&T 4425 terminal. +> See also: `ppmtoterm`, `pbmtoascii`. +> More information: . + +- Display a PBM image on an AT&T 4425 terminal using the terminal's mosaic graphics character set: + +`pbmto4425 {{path/to/image.pbm}}` diff --git a/tldr/pbmtoascii b/tldr/pbmtoascii index 7355cd0c..3a175364 100644 --- a/tldr/pbmtoascii +++ b/tldr/pbmtoascii @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pbmtoascii > Convert a PBM image to ASCII graphics. +> See also: `ppmtoascii`, `asciitopgm`, `ppmtoterm`. > More information: . - Read a PBM file as input and produce an ASCII output: diff --git a/tldr/pbmtoicon b/tldr/pbmtoicon new file mode 100644 index 00000000..8c262d0f --- /dev/null +++ b/tldr/pbmtoicon @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pbmtoicon + +> This command is superseded by `pbmtosunicon`. +> More information: . + +- View documentation for the current command: + +`tldr pbmtosunicon` diff --git a/tldr/pbmtosunicon b/tldr/pbmtosunicon new file mode 100644 index 00000000..ef95652e --- /dev/null +++ b/tldr/pbmtosunicon @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pbmtosunicon + +> Convert a PBM image into a Sun icon. +> More information: . + +- Convert a PBM image into a Sun icon: + +`pbmtosunicon {{path/to/input.pbm}} > {{path/to/output.ico}}` diff --git a/tldr/pnmarith b/tldr/pnmarith new file mode 100644 index 00000000..cd17b228 --- /dev/null +++ b/tldr/pnmarith @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pnmarith + +> This command is superseded by `pamarith`. +> More information: . + +- View documentation for the current command: + +`tldr pamarith` diff --git a/tldr/pnmquant b/tldr/pnmquant index b0b4b932..f839fa1f 100644 --- a/tldr/pnmquant +++ b/tldr/pnmquant @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Quantize the colors in a PNM image into a smaller set. > This command is a combination of `pnmcolormap` and `pnmremap` and accepts the union of their options, except `-mapfile`. +> See also: `pnmquantall`. > More information: . - Generate an image using only `n_colors` or less colors as close as possible to the input image: diff --git a/tldr/pnmquantall b/tldr/pnmquantall new file mode 100644 index 00000000..a00fe6f4 --- /dev/null +++ b/tldr/pnmquantall @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pnmquantall + +> Run `pnmquant` on multiple files at once such that they share a common colormap. +> See also: `pnmquant`. +> More information: . + +- Run `pnmquant` on multiple files with the specified parameters, overwriting the original files: + +`pnmquantall {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}` + +- Save the quantised images to files named the same as the input files, but with the specified extension appended: + +`pnmquantall -ext {{extension}} {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}` diff --git a/tldr/ppmquantall b/tldr/ppmquantall new file mode 100644 index 00000000..f085c6bd --- /dev/null +++ b/tldr/ppmquantall @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmquantall + +> This command is superseded by `pnmquantall`. +> More information: . + +- View documentation for the current command: + +`tldr pnmquantall` diff --git a/tldr/ppmtoascii b/tldr/ppmtoascii new file mode 100644 index 00000000..17380690 --- /dev/null +++ b/tldr/ppmtoascii @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmtoascii + +> Convert a PPM image to an ASCII image using ANSI terminal color codes. +> See also: `ppmtoterm`, `pbmtoascii`, `pbmto4425`. +> More information: . + +- Convert a PPM image to an ASCII image, combining an area of 1x2 pixels into a character: + +`ppmtoascii {{path/to/input.ppm}} > {{path/to/output.txt}}` + +- Convert a PPM image to an ASCII image, combining an area of 2x4 pixels into a character: + +`ppmtoascii -2x4 {{path/to/input.ppm}} > {{path/to/output.txt}}` diff --git a/tldr/ppmtoterm b/tldr/ppmtoterm new file mode 100644 index 00000000..162011c5 --- /dev/null +++ b/tldr/ppmtoterm @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmtoterm + +> Convert a PPM image to an ANSI ISO 6429 ASCII image. +> See also: `ppmtoascii`, `pbmtoascii`, `pbmto4425`. +> More information: . + +- Convert a PPM image to an ANSI ISO 6429 ASCII image, mapping each pixel to an individual character: + +`ppmtoterm {{path/to/input.ppm}} > {{path/to/output.txt}}` diff --git a/tldr/sox b/tldr/sox index 44561a0b..dc115894 100644 --- a/tldr/sox +++ b/tldr/sox @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Trim an audio file to the specified times: -`sox {{path/to/input_audio}} {{path/to/output_audio}} trim {{start}} {{end}}` +`sox {{path/to/input_audio}} {{path/to/output_audio}} trim {{start}} {{duration}}` - Normalize an audio file (adjust volume to the maximum peak level, without clipping): diff --git a/tldr/sunicontopbm b/tldr/sunicontopbm new file mode 100644 index 00000000..509bdce4 --- /dev/null +++ b/tldr/sunicontopbm @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# sunicontopnm + +> Convert a Sun icon into a Netpbm image. +> More information: . + +- Convert a Sun icon into a Netpbm image: + +`sunicontopnm {{path/to/input.ico}} > {{path/to/output.pbm}}` diff --git a/tldr/trivy b/tldr/trivy index d2a46c4b..d9bffdcc 100644 --- a/tldr/trivy +++ b/tldr/trivy @@ -6,20 +6,36 @@ source: https://github.com/tldr-pages/tldr.git # trivy > Scanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues. -> More information: . +> More information: . -- Scan an image: +- Scan a Docker image for vulnerabilities and exposed secrets: `trivy image {{image:tag}}` +- Scan a Docker image filtering the output by severity: + +`trivy image --severity {{HIGH,CRITICAL}} {{alpine:3.15}}` + +- Scan a Docker image ignoring any unfixed/unpatched vulnerabilities: + +`trivy image --ignore-unfixed {{alpine:3.15}}` + - Scan the filesystem for vulnerabilities and misconfigurations: `trivy fs --security-checks {{vuln,config}} {{path/to/project_directory}}` -- Scan a directory for misconfigurations: +- Scan a IaC (Terraform, CloudFormation, ARM, Helm and Dockerfile) directory for misconfigurations: `trivy config {{path/to/iac_directory}}` +- Scan a local or remote Git repository for vulnerabilities: + +`trivy repo {{path/to/local_repository_directory|remote_repository_URL}}` + +- Scan a Git repository up to a specific commit hash: + +`trivy repo --commit {{commit_hash}} {{repository}}` + - Generate output with a SARIF template: `trivy image --format {{template}} --template {{"@sarif.tpl"}} -o {{path/to/report.sarif}} {{image:tag}}`