Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-08 00:17:49 +00:00
parent 72cd9d9e94
commit 70eb9d3aae
5 changed files with 86 additions and 9 deletions

22
tldr/cjxl Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cjxl
> Compress images to JPEG XL.
> Accepted input extensions are PNG, APNG, GIF, JPEG, EXR, PPM, PFM, PAM, PGX, and JXL.
> More information: <https://github.com/libjxl/libjxl>.
- Convert an image to JPEG XL:
`cjxl {{path/to/image.ext}} {{path/to/output.jxl}}`
- Set quality to lossless and maximize compression of the resulting image:
`cjxl --distance 0 --effort 9 {{path/to/image.ext}} {{path/to/output.jxl}}`
- Display an extremely detailed help page:
`cjxl --help --verbose --verbose --verbose --verbose`

18
tldr/djxl Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# djxl
> Decompress JPEG XL images.
> Accepted output extensions are PNG, APNG, JPEG, EXR, PGM, PPM, PNM, PFM, PAM, EXIF, XMP and JUMBF.
> More information: <https://github.com/libjxl/libjxl>.
- Decompress a JPEG XL image to another format:
`djxl {{path/to/image.jxl}} {{path/to/output.ext}}`
- Display an extremely detailed help page:
`djxl --help --verbose --verbose --verbose --verbose`

41
tldr/linux/proctl Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# proctl
> Manage projects licenses and languages, switch between templated licenses.
> More information: <https://github.com/HeCodes2Much/proctl>.
- List available licenses:
`proctl {{-ll|-list-licenses}}`
- List available languages:
`proctl {{-lL|-list-languages}}`
- Pick a license in a FZF menu:
`proctl {{-pl|-pick-license}}`
- Pick a language in a FZF menu:
`proctl {{-pL|-pick-language}}`
- Remove all licenses from the current project:
`proctl {{-r|-remove-license}}`
- Create a new license template:
`proctl {{-t|-new-template}}`
- Delete a license from templates:
`proctl {{-R|-delete-license}} {{@license_name1 @license_name2 ...}}`
- Show this helpful list of commands:
`proctl {{-h|-help}}`

View File

@@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
`mkdir {{path/to/directory1 path/to/directory2 ...}}`
- Create specific directories and their [p]arents if needed:
- Create specific directories and their parents if needed:
`mkdir -p {{path/to/directory1 path/to/directory2 ...}}`
`mkdir {{-p|--parents}} {{path/to/directory1 path/to/directory2 ...}}`
- Create directories with specific permissions:
`mkdir -m {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}`
`mkdir {{-m|--mode}} {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}`

View File

@@ -14,19 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- Dump all databases using a specific username:
`pg_dumpall --username={{username}} > {{path/to/file.sql}}`
`pg_dumpall {{-U|--username}} {{username}} > {{path/to/file.sql}}`
- Same as above, customize host and port:
`pg_dumpall -h {{host}} -p {{port}} > {{output_file.sql}}`
- Dump all databases into a custom-format archive file with moderate compression:
`pg_dumpall -Fc > {{output_file.dump}}`
- Dump only database data into an SQL-script file:
`pg_dumpall --data-only > {{path/to/file.sql}}`
`pg_dumpall {{-a|--data-only}} > {{path/to/file.sql}}`
- Dump only schema (data definitions) into an SQL-script file: