Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-16 00:22:14 +00:00
parent 27996b553a
commit 0881b6bcab
25 changed files with 121 additions and 71 deletions

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`astroterm`
- Display constellations, use colour, and render the simulation at the given frame rate:
- Display constellations, use color, and render the simulation at the given frame rate:
`astroterm {{[-C|--constellations]}} {{[-c|--color]}} {{[-f|--fps]}} {{60}}`

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`brittany --write-mode=inplace {{*.hs}}`
- Check whether a Haskell source file needs changes and indicate the result through the programme's exit code:
- Check whether a Haskell source file needs changes and indicate the result through the program's exit code:
`brittany --check-mode {{path/to/file.hs}}`

13
tldr/bun-pm-migrate Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun pm migrate
> Convert another package managers lockfile to a Bun-compatible lockfile without installing anything.
> More information: <https://bun.com/docs/pm/cli/pm#migrate>.
- Migrate the lockfile in the current project:
`bun pm migrate`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Generate AI-ready prompts from a codebase (extracts, filters and formats code for LLMs).
> More information: <https://code2prompt.dev/docs/how_to/filter_files/>.
- Generate a prompt for the current project and copy it to the clipboard (default behaviour):
- Generate a prompt for the current project and copy it to the clipboard (default behavior):
`code2prompt {{path/to/project}}`

View File

@@ -8,23 +8,23 @@ source: https://github.com/tldr-pages/tldr.git
> Indexing tool and personal video recorder for BBC iPlayer and BBC Sounds.
> More information: <https://github.com/get-iplayer/get_iplayer/wiki/manpage>.
- Search programmes by name:
- Search programs by name:
`get_iplayer "{{program_name}}"`
- Record programme by results of search:
- Record program by results of search:
`get_iplayer "{{program_name}}" {{[-g|--get]}}`
- Record programme by URL from the BBC iPlayer website:
- Record program by URL from the BBC iPlayer website:
`get_iplayer "https://www.bbc.co.uk/iplayer/episode/{{program_PID}}/{{name-of-show-episode-number-episode-title}}"`
- Download subtitles for a programme by results of search:
- Download subtitles for a program by results of search:
`get_iplayer "{{program_name}}" --subtitles-only`
- Search for a programme, record it and download subtitles:
- Search for a program, record it and download subtitles:
`get_iplayer "{{program_name}}" {{[-g|--get]}} --subtitles`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# grip
> Preview GitHub-flavoured Markdown files locally.
> Preview GitHub-flavored Markdown files locally.
> More information: <https://manned.org/grip>.
- Start the server and serve the rendered `README` file of a current directory:

View File

@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# gunzip
> Extract files from a `gzip` (`.gz`) archive.
> More information: <https://manned.org/gunzip>.
> This command is an alias of `gzip --decompress`.
- Extract a file from an archive, replacing the original file if it exists:
- View documentation for the original command:
`gunzip {{archive.tar.gz}}`
- Extract a file to a target destination:
`gunzip {{[-c|--stdout]}} {{archive.tar.gz}} > {{archive.tar}}`
- Extract a file and keep the archive file:
`gunzip {{[-k|--keep]}} {{archive.tar.gz}}`
- List the contents of a compressed file:
`gunzip {{[-l|--list]}} {{file.txt.gz}}`
- Decompress an archive from `stdin`:
`cat {{path/to/archive.gz}} | gunzip`
`tldr gzip`

View File

@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
`gzip {{[-d|--decompress]}} {{path/to/file.gz}}`
- Display the name and reduction percentage for each file compressed:
`gzip {{[-v|--verbose]}} {{path/to/file.gz}}`
- Compress a file, keeping the original file:
`gzip {{[-k|--keep]}} {{path/to/file}}`
@@ -32,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`gzip -{{1..9}} {{[-c|--stdout]}} {{path/to/file}} > {{path/to/compressed_file.gz}}`
- Display the name and reduction percentage for each file compressed or decompressed:
- List the contents of a compressed file:
`gzip {{[-vd|--verbose --decompress]}} {{path/to/file.gz}}`
`gzip {{[-l|--list]}} {{path/to/file.txt.gz}}`

View File

@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`ipsumdump --interface {{eth0}} -tsSdDp`
- Print the anonymised source address, anonymised destination address, and IP packet length of all packets in a PCAP file:
- Print the anonymized source address, anonymized destination address, and IP packet length of all packets in a PCAP file:
`ipsumdump --src --dst --length --anonymize {{path/to/file.pcap}}`

View File

@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`compseq -sequence {{path/to/input_rna.fasta}} -word 3 {{path/to/output_file.comp}} -nozero -frame 3`
- Count amino acid triplets in a FASTA file and compare to a previous run of `compseq` to calculate expected and normalised frequency values:
- Count amino acid triplets in a FASTA file and compare to a previous run of `compseq` to calculate expected and normalized frequency values:
`compseq -sequence {{path/to/human_proteome.fasta}} -word 3 {{path/to/output_file1.comp}} -nozero -infile {{path/to/output_file2.comp}}`

View File

@@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
- Upscale a 720p game to 1440p with integer scaling:
`gamescope {{[-h|--nested-height]}} 720 {{[-H|--output-height]}} 1440 {{[-S|--scaler]}} integer -- %command%`
`gamescope {{[-h|--nested-height]}} 720 {{[-H|--output-height]}} 1440 {{[-S|--scaler]}} integer -- {{command}}`
- Limit a vsynced game to 30 FPS:
`gamescope {{[-r|--nested-refresh]}} 30 -- %command%`
`gamescope {{[-r|--nested-refresh]}} 30 -- {{command}}`
- Launch Steam in Big Picture Mode and integrate with gamescope:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# img2txt
> Convert images to colour ASCII characters and output them to text-based coloured files.
> Convert images to color ASCII characters and output them to text-based colored files.
> More information: <https://manned.org/img2txt>.
- Set output column count to a specific value:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# koji resubmit
> Retry a canceled or failed task, using the same parameter as the original task.
> Retry a cancelled or failed task, using the same parameter as the original task.
> More information: <https://docs.pagure.org/koji>.
- Resubmit a task:

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`rspamc learn_spam {{path/to/email_file}}`
- Train the bayesian filter to recognise an email as ham:
- Train the bayesian filter to recognize an email as ham:
`rspamc learn_ham {{path/to/email_file}}`

View File

@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`whiptail --title "{{title}}" --yesno "{{message}}" {{height_in_chars}} {{width_in_chars}}`
- Customise the text on the yes/no buttons:
- Customize the text on the yes/no buttons:
`whiptail --title "{{title}}" --yes-button "{{text}}" --no-button "{{text}}" --yesno "{{message}}" {{height_in_chars}} {{width_in_chars}}`

17
tldr/ng-version Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ng version
> Display Angular CLI version.
> More information: <https://angular.dev/cli/version>.
- Display version:
`ng {{[v|version]}}`
- Display the CLI, framework, system, and project dependency versions in JSON format:
`ng {{[v|version]}} --json`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# opt
> Run optimizations and analyse LLVM source files.
> Run optimizations and analyze LLVM source files.
> More information: <https://llvm.org/docs/CommandGuide/opt.html>.
- Run an optimization or analysis on a bitcode file:

View File

@@ -6,8 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# dhcp6d
> Stateless DHCPv6 server.
> See also: `InternetSharing`.
> It should not be invoked manually.
> See also: `InternetSharing`.
> More information: <https://www.manpagez.com/man/8/dhcp6d/>.
- Start the daemon:

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`paci refresh`
- Configure its behaviour:
- Configure its behavior:
`paci configure`

View File

@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
`pnmcrop -bg-corner {{topleft|topright|bottomleft|bottomright}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
- Leave a border with a width of `n` pixels. Additionally, specify the behaviour if the image is entirely made out of background:
- Leave a border with a width of `n` pixels. Additionally, specify the behavior if the image is entirely made out of background:
`pnmcrop {{[-m|-margin]}} {{n}} {{[-blan|-blank-image]}} {{pass|minimize|maxcrop}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`

33
tldr/presenterm Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# presenterm
> A terminal-based slideshow tool that renders markdown presentations.
> More information: <https://mfontanini.github.io/presenterm/>.
- Display a presentation:
`presenterm {{path/to/slides.md}}`
- Display a presentation with a specific theme:
`presenterm --theme {{dark|light|tokyonight-storm|...}} {{path/to/slides.md}}`
- List all available themes:
`presenterm --list-themes`
- Export a presentation to PDF:
`presenterm --export-pdf --output {{path/to/output.pdf}} {{path/to/slides.md}}`
- Display a presentation with code snippet execution enabled:
`presenterm --enable-snippet-execution {{path/to/slides.md}}`
- Validate that presentation content fits within the terminal:
`presenterm --validate-overflows {{path/to/slides.md}}`

View File

@@ -24,6 +24,14 @@ source: https://github.com/tldr-pages/tldr.git
`readarray < {{path/to/file.txt}} -n {{n}} {{array_name}}`
- Skip the first `n` lines:
`readarray < {{path/to/file.txt}} -s {{n}} {{array_name}}`
- Define a custom delimiter:
`readarray < {{path/to/file.txt}} -d {{delimiter}} {{array_name}}`
- Display help:
`help mapfile`

View File

@@ -6,23 +6,32 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk
> Frontend of the Sailfish SDK.
> Some subcommands such as `init`, `build-init`, `device` have their own usage documentation.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/module.adoc>.
- Execute a subcommand:
- Setup the current environment for building for SailfishOS with a specific versions and architecture target:
`sfdk {{subcommand}}`
`sfdk config target=SailfishOS-{{5.0.0.62}}-{{aarch64}}`
- Execute a subcommand on a custom working directory:
- Initialize the current directory as the build directory:
`git -C {{path/to/directory}} {{subcommand}}`
`sfdk build-init`
- Execute a subcommand with a given configuration set:
- Execute build steps of the RPM SPEC file for a specific project:
`git -c '{{name}}={{value}}' {{subcommand}}`
`sfdk -C {{path/to/project}} build`
- List repositories in the SailfishOS 5.0.0.62 armv7hl build target:
`sfdk -c 'target=SailfishOS-5.0.0.62-armv7hl' build-shell --maintain ssu lr`
- Deploy the package to the emulator:
`sfdk config device="{{Sailfish OS Emulator 5.0.0.62}}"; sfdk deploy --sdk`
- Display help:
`sfdk {{[-h|--help]}}`
`sfdk --help`
- Display help for specific topic (`building`, `testing`, `maintaining`, `ide`, `all`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# toipe
> Yet another typing test, but crab flavoured.
> Yet another typing test, but crab flavored.
> A trusty terminal typing tester.
> More information: <https://github.com/Samyak2/toipe>.

View File

@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# zcat
> Print data from `gzip` compressed files to `stdout`.
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
> This command is an alias of `gzip --stdout --decompress`.
- Print the uncompressed contents of a `gzip` archive to `stdout`:
- View documentation for the original command:
`zcat {{path/to/file.txt.gz}}`
- Print compression details of a `gzip` archive to `stdout`:
`zcat {{[-l|--list]}} {{path/to/file.txt.gz}}`
- Test the integrity of a compressed file verbosely:
`zcat {{[-v|--verbose]}} {{[-t|--test]}} {{path/to/file.txt.gz}}`
- Suppress all warnings when decompressing a file:
`zcat {{[-q|--quiet]}} {{path/to/file.txt.gz}}`
- Avoid any system crashes when decompressing a file (slower output):
`zcat --synchronous {{path/to/file.txt.gz}}`
`tldr gzip`