Update cheatsheets

This commit is contained in:
ivuorinen
2024-03-05 00:12:59 +00:00
parent 4fc14b09a3
commit d944cd295b
41 changed files with 535 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws cognito-idp
> Manage Amazon Cognito user pool and its users and groups using the CLI.
> Configure an Amazon Cognito user pool and its users and groups and authenticate them.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/index.html>.
- Create a new Cognito user pool:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws dynamodb
> CLI for AWS dynamodb.
> Manipulate an AWS Dynamodb database, a fast NoSQL database with predictable performance and seamless scalability.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/dynamodb/>.
- Create a table:

View File

@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws ec2
> CLI for AWS EC2.
> Provides secure and resizable computing capacity in the AWS cloud to enable faster development and deployment of applications.
> Manage AWS EC2 instances and volumes.
> AWS EC2 provides secure and resizable computing capacity in the AWS cloud for faster development and deployment of applications.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html>.
- Display information about a specific instance:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws eks
> CLI for Amazon EKS (Elastic Kubernetes Service).
> Manage Amazon Elastic Kubernetes Service (EKS) addons, clusters, and node groups.
> Amazon EKS is a service for easily running Kubernetes on AWS.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/index.html>.
- Create an EKS Cluster:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws iam
> CLI for AWS IAM.
> Interact with Identity and Access Management (IAM), a web service for securely controlling access to AWS services.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/index.html>.
- List users:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws kinesis
> Official AWS CLI for Amazon Kinesis streaming data services.
> Interact with the Amazon Kinesis Data Streams, a service that scales elastically for real-time processing of streaming big data.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/kinesis/index.html#cli-aws-kinesis>.
- Show all streams in the account:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws lambda
> CLI for AWS lambda.
> Use AWS Lambda, a compute service for running code without provisioning or managing servers.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/lambda/>.
- Run a function:

View File

@@ -5,8 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# aws rds
> CLI for AWS Relational Database Service.
> Create and manage relational databases.
> Use AWS Relational Database Service, a web service for setting up, operating and scaling relational databases.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/index.html>.
- Display help for a specific RDS subcommand:

13
tldr/bmptoppm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bmptoppm
> This command is superseded by `bmptopnm`.
> More information: <https://netpbm.sourceforge.net/doc/bmptoppm.html>.
- View documentation for the current command:
`tldr bmptopnm`

17
tldr/pambrighten Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pambrighten
> Change a PAM image's saturation and value.
> More information: <https://netpbm.sourceforge.net/doc/pambrighten.html>.
- Increase the saturation of each pixel by the specified percentage:
`pambrighten -saturation {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}`
- Increase the value (from the HSV color space) of each pixel by the specified percentage:
`pambrighten -value {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}`

18
tldr/pamcrater Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamcrater
> Create a PAM image of cratered terrain.
> See also: `pamshadedrelief`, `ppmrelief`.
> More information: <https://netpbm.sourceforge.net/doc/pamcrater.html>.
- Create an image of cratered terrain with the specified dimensions:
`pamcrater -height {{height}} -width {{width}} > {{path/to/output.pam}}`
- Create an image containing the specified number of craters:
`pamcrater -number {{n_craters}} > {{path/to/output.pam}}`

13
tldr/pamedge Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamedge
> Perform edge-detection on a Netpbm image.
> More information: <https://netpbm.sourceforge.net/doc/pamedge.html>.
- Perform edge-detection on a Netpbm image:
`pamedge {{path/to/input.pam}} > {{path/to/output.pam}}`

18
tldr/pamexec Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamexec
> Execute a shell command on each image in a Netpbm file.
> See also: `pamfile`, `pampick`, `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pamexec.html>.
- Execute a shell command on each image in a Netpbm file:
`pamexec {{command}} {{path/to/image.pam}}`
- Stop processing if a command terminates with a nonzero exit status:
`pamexec {{command}} {{path/to/image.pam}} -check`

14
tldr/pampick Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pampick
> Pick images out of a multi-image Netpbm stream.
> See also: `pamfile`, `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pampick.html>.
- Execute a shell command on each image in a Netpbm file:
`pampick {{image_number1 image_number2 ...}} < {{path/to/image.pam}} > {{path/to/output.pam}}`

13
tldr/pamrgbatopng Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamrgbatopng
> This command is superseded by `pamtopng`.
> More information: <https://netpbm.sourceforge.net/doc/pamrgbatopng.html>.
- View documentation for the current command:
`tldr pamtopng`

18
tldr/pamshadedrelief Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamshadedrelief
> Generate a shaded relief from an elevation map.
> See also: `pamcrater`, `ppmrelief`.
> More information: <https://netpbm.sourceforge.net/doc/pamshadedrelief.html>.
- Generate a shaded relief image with the input image interpreted as an elevation map:
`pamshadedrelief < {{path/to/input.pam}} > {{path/to/output.pam}}`
- Gamma adjust the image by the specified factor:
`pamshadedrelief -gamma {{factor}} < {{path/to/input.pam}} > {{path/to/output.pam}}`

25
tldr/pamslice Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamslice
> Extract one line of values out of a PAM image.
> More information: <https://netpbm.sourceforge.net/doc/pamslice.html>.
- Print the values of the pixels in the n'th row in a table:
`pamslice -row {{n}} {{path/to/image.pam}}`
- Print the values of the pixels in the n'th column in a table:
`pamslice -column {{n}} {{path/to/image.pam}}`
- Consider the m'th plane of the input image only:
`pamslice -row {{n}} -plane {{m}} {{path/to/image.pam}}`
- Produce output in a format suitable for input to an `xmgr` for visualisation:
`pamslice -row {{n}} -xmgr {{path/to/image.pam}}`

18
tldr/pamsplit Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamsplit
> Split a multi-image Netpbm file into multiple single-image Netpbm files.
> See also: `pamfile`, `pampick`, `pamexec`.
> More information: <https://netpbm.sourceforge.net/doc/pamsplit.html>.
- Split a multi-image Netpbm file into multiple single-image Netpbm files:
`pamsplit {{path/to/image.pam}}`
- Specify a pattern for naming output files:
`pamsplit {{path/to/image.pam}} {{file_%d.pam}}`

22
tldr/pamtogif Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamtogif
> Convert a Netpbm image into an unanimated GIF image.
> See also: `giftopnm`, `gifsicle`.
> More information: <https://netpbm.sourceforge.net/doc/pamtogif.html>.
- Convert a Netpbm image into an unanimated GIF image:
`pamtogif {{path/to/image.pam}} > {{path/to/output.gif}}`
- Mark the specified color as transparent in the output GIF file:
`pamtogif -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.gif}}`
- Include the specified text as a comment in the output GIF file:
`pamtogif -comment "{{Hello World!}}" {{path/to/image.pam}} > {{path/to/output.gif}}`

26
tldr/pamtopng Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamtopng
> Convert a PAM image to PNG.
> See also: `pnmtopng`, `pngtopam`.
> More information: <https://netpbm.sourceforge.net/doc/pamtopng.html>.
- Convert the specified PAM image to PNG:
`pamtopng {{path/to/image.pam}} > {{path/to/output.png}}`
- Mark the specified color as transparent in the output image:
`pamtopng -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.png}}`
- Include the text in the specified file as tEXt chunks in the output:
`pamtopng -text {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}`
- Cause the output file to be interlaced in Adam7 format:
`pamtopng -interlace {{path/to/image.pam}} > {{path/to/output.png}}`

17
tldr/pamtouil Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pamtouil
> Convert a PNM or PAM file into a Motif UIL icon file.
> More information: <https://netpbm.sourceforge.net/doc/pamtouil.html>.
- Convert a PNM or PAM file into a Motif UIL icon file:
`pamtouil {{path/to/input.pnm|pam}} > {{path/to/output.uil}}`
- Specify a prefix string to be printed in the output UIL file:
`pamtouil -name {{uilname}} {{path/to/input.pnm|pam}} > {{path/to/output.uil}}`

13
tldr/pcdindex Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pcdindex
> This command has been renamed to `pcdovtoppm`.
> More information: <https://netpbm.sourceforge.net/doc/pcdindex.html>.
- View documentation for the command under its current name:
`tldr pcdovtoppm`

25
tldr/pcdovtoppm Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pcdovtoppm
> Create an index image for a photo CD based on its overview file.
> More information: <https://netpbm.sourceforge.net/doc/pcdovtoppm.html>.
- Create a PPM index image from a PCD overview file:
`pcdovtoppm {{path/to/file.pcd}} > {{path/to/output.ppm}}`
- Specify the [m]aximum width of the output image and the maximum [s]ize of each of the images contained in the output:
`pcdovtoppm -m {{width}} -s {{size}} {{path/to/file.pcd}} > {{path/to/output.ppm}}`
- Specify the maximum number of images [a]cross and the maximum number of [c]olours:
`pcdovtoppm -a {{n_images}} -c {{n_colours}} {{path/to/file.pcd}} > {{path/to/output.ppm}}`
- Use the specified [f]ont for annotations and paint the background [w]hite:
`pcdovtoppm -a {{number}} -w {{path/to/file.pcd}} > {{path/to/output.ppm}}`

21
tldr/pgmcrater Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pgmcrater
> This command is superseded by `pamcrater`, `pamshadedrelief`, and `pamtopnm`.
> More information: <https://netpbm.sourceforge.net/doc/pgmcrater.html>.
- View documentation for `pamcrater`:
`tldr pamcrater`
- View documentation for `pamshadedrelief`:
`tldr pamshadedrelief`
- View documentation for `pamtopnm`:
`tldr pamtopnm`

13
tldr/pgmedge Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pgmedge
> This command is superseded by `pamedge`.
> More information: <https://netpbm.sourceforge.net/doc/pgmedge.html>.
- View documentation for the current command:
`tldr pamedge`

13
tldr/pgmnorm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pgmnorm
> This command is superseded by `pnmnorm`.
> More information: <https://netpbm.sourceforge.net/doc/pgmnorm.html>.
- View documentation for the current command:
`tldr pnmnorm`

13
tldr/pgmslice Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pgmslice
> This command is superseded by `pamslice`.
> More information: <https://netpbm.sourceforge.net/doc/pgmslice.html>.
- View documentation for the current command:
`tldr pamslice`

13
tldr/pgmtopbm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pgmtopbm
> This command is superseded by `pamditherbw`.
> More information: <https://netpbm.sourceforge.net/doc/pgmtopbm.html>.
- View documentation for the current command:
`tldr pamditherbw`

26
tldr/pngtopam Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pngtopam
> Convert a PNG image to a Netpbm image.
> See also: `pamtopng`.
> More information: <https://netpbm.sourceforge.net/doc/pngtopam.html>.
- Convert the specified PNG image to a Netpbm image:
`pngtopam {{path/to/image.png}} > {{path/to/output.pam}}`
- Create an output image that includes both the main image and transparency mask of the input image:
`pngtopam -alphapam {{path/to/image.png}} > {{path/to/output.pam}}`
- Replace transparent pixels by the specified color:
`pngtopam -mix -background {{color}} {{path/to/image.png}} > {{path/to/output.pam}}`
- Write tEXt chunks found in the input image to the specified text file:
`pngtopam -text {{path/to/file.txt}} {{path/to/image.png}} > {{path/to/output.pam}}`

13
tldr/pnmcut Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmcut
> This command is superseded by `pamcut`.
> More information: <https://netpbm.sourceforge.net/doc/pnmcut.html>.
- View documentation for the current command:
`tldr pamcut`

13
tldr/pnmenlarge Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmenlarge
> This command is superseded by `pamenlarge`.
> More information: <https://netpbm.sourceforge.net/doc/pnmenlarge.html>.
- View documentation for the current command:
`tldr pamenlarge`

13
tldr/pnmfile Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmfile
> This command is superseded by `pamfile`.
> More information: <https://netpbm.sourceforge.net/doc/pnmfile.html>.
- View documentation for the current command:
`tldr pamfile`

13
tldr/pnmflip Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmflip
> This command is superseded by `pamflip`.
> More information: <https://netpbm.sourceforge.net/doc/pnmflip.html>.
- View documentation for the current command:
`tldr pamflip`

13
tldr/pnminterp Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnminterp
> This command is superseded by `pamstretch`.
> More information: <https://netpbm.sourceforge.net/doc/pnminterp.html>.
- View documentation for the current command:
`tldr pamstretch`

13
tldr/pnmsplit Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmsplit
> This command is superseded by `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pnmsplit.html>.
- View documentation for the current command:
`tldr pamsplit`

13
tldr/ppmbrighten Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmbrighten
> This command is superseded by `pambrighten`.
> More information: <https://netpbm.sourceforge.net/doc/ppmbrighten.html>.
- View documentation for the current command:
`tldr pambrighten`

13
tldr/ppmnorm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmnorm
> This command is superseded by `pnmnorm`.
> More information: <https://netpbm.sourceforge.net/doc/ppmnorm.html>.
- View documentation for the current command:
`tldr pnmnorm`

13
tldr/ppmtogif Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmtogif
> This command is superseded by `pamtogif`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtogif.html>.
- View documentation for the current command:
`tldr pamtogif`

13
tldr/ppmtojpeg Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmtojpeg
> This command is superseded by `pnmtojpeg`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtojpeg.html>.
- View documentation for the current command:
`tldr pnmtojpeg`

13
tldr/ppmtomap Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmtomap
> This command is superseded by `pnmcolormap`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtomap.html>.
- View documentation for the current command:
`tldr pnmcolormap`

13
tldr/ppmtouil Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmtouil
> This command is superseded by `pamtouil`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtouil.html>.
- View documentation for the current command:
`tldr pamtouil`