Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-07 00:20:59 +00:00
parent ce31a6d914
commit ba165f8d8e
23 changed files with 178 additions and 11 deletions

View File

@@ -6,16 +6,16 @@ source: https://github.com/tldr-pages/tldr.git
# apkeep
> Download APK files from various sources.
> More information: <https://github.com/EFForg/apkeep>.
> More information: <https://github.com/EFForg/apkeep/blob/master/USAGE>.
- Download an APK file to the specified directory:
`apkeep --app {{com.example.application}} {{path/to/directory}}`
`apkeep {{[-a|--app]}} {{com.example.application}} {{path/to/directory}}`
- List all available versions for download:
`apkeep --app {{com.example.application}} --list-versions {{path/to/directory}}`
`apkeep {{[-a|--app]}} {{com.example.application}} {{[-l|--list-versions]}} {{path/to/directory}}`
- Specify a store to download from:
`apkeep --app {{com.example.application}} --download-source {{apk-pure|google-play|f-droid|huawei-app-gallery}} {{path/to/directory}}`
`apkeep {{[-a|--app]}} {{com.example.application}} {{[-d|--download-source]}} {{apk-pure|google-play|f-droid|huawei-app-gallery}} {{path/to/directory}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# browsh
> View webpages on the terminal using a Firefox backend.
> See also: `carbonyl`.
> More information: <https://www.brow.sh/docs/keybindings/>.
- Start browsh:

12
tldr/bun-c Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun c
> This command is an alias of `bun create`.
- View documentation for the original command:
`tldr bun create`

38
tldr/bun-create Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun create
> Create a new project from a template.
> Note: `c` can be used as an alias for `create`.
> More information: <https://bun.com/docs/runtime/templating/create>.
- Create a new project from an official template interactively:
`bun create {{template}}`
- Create a new project from an official template in a new directory:
`bun create {{template}} {{path/to/destination}}`
- Create a new project from a GitHub repository template:
`bun create {{https://github.com/username/repo}} {{path/to/destination}}`
- Create a new project from a local template:
`bun create {{./path/to/template}} {{path/to/destination}}`
- Create a new project, overwriting the destination directory if it exists:
`bun create {{template}} {{path/to/destination} --force`
- Create a new project without initializing a Git repository automatically:
`bun create {{template}} {{path/to/destination} --no-git`
- Create a new project without installing dependencies automatically:
`bun create {{template}} {{path/to/destination} --no-install`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# carbonyl
> View webpages on the terminal using a Chromium backend.
> See also: `browsh`.
> More information: <https://github.com/fathyb/carbonyl>.
- Open an `about:blank` page:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ffmpeg
> Video conversion tool.
> See also: `gst-launch-1.0`.
> More information: <https://ffmpeg.org/ffmpeg.html#Options>.
- Extract the sound from a video and save it as MP3:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# file
> Determine file type.
> See also: `stat`.
> More information: <https://manned.org/file>.
- Give a description of the type of the specified file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gst-launch-1.0
> Build and run a GStreamer pipeline.
> See also: `gst-inspect-1.0`.
> See also: `gst-inspect-1.0`, `ffmpeg`.
> More information: <https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html>.
- Play test video in a window:

29
tldr/jenkins Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jenkins-cli
> An open-source automation server that facilitates the automation of software development lifecycle.
> More information: <https://www.jenkins.io/doc/>.
- Connect to jenkins CLI:
`java -jar jenkins-cli.jar -s {{jenkins_server_url}} -auth {{username}}:{{api_token}}`
- Restart jenkins:
`java -jar jenkins-cli.jar -s {{jenkins_server_url}} restart`
- Shutdown jenkins:
`java -jar jenkins-cli.jar -s {{jenkins_server_url}} shutdown`
- Display help:
`java -jar jenkins-cli.jar -s {{jenkins_server_url}} help`
- Display version:
`java -jar jenkins-cli.jar -s {{jenkins_server_url}} version`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cage
> Open an applications in a kiosk mode.
> See also: `gamescope`.
> More information: <https://github.com/cage-kiosk/cage/blob/master/cage.1.scd>.
- Run an application:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gamescope
> A micro-compositor used as a game layer.
> See also: `cage`.
> More information: <https://github.com/ValveSoftware/gamescope>.
- Run a program with gamescope on the terminal:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# guake
> A drop-down terminal for GNOME.
> See also: `yakuake`.
> More information: <https://github.com/Guake/guake>.
- Toggle Guake visibility:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hwinfo
> Probe for the hardware present in the system.
> See also: `inxi`, `lshw`.
> More information: <https://manpages.opensuse.org/hwinfo/hwinfo.8.en.html>.
- Display all available hardware information:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# inxi
> Print a summary of system information and resources for debugging purposes.
> See also: `lshw`, `hwinfo`.
> More information: <https://manned.org/inxi>.
- Print a summary of CPU, memory, hard drive and kernel information:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ip route
> IP Routing table management subcommand.
> See also: `routel`.
> More information: <https://manned.org/ip-route>.
- Display the `main` routing table:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lshw
> List detailed information about hardware configurations as root user.
> See also: `inxi`, `hwinfo`.
> More information: <https://ezix.org/project/wiki/HardwareLiSter>.
- Launch the X11 GUI (if available):

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# yakuake
> A drop-down terminal for KDE.
> See also: `guake`.
> More information: <https://manned.org/yakuake>.
- Start up Yakuake:

26
tldr/npm-install-test Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm install-test
> Equivalent to running `npm install` followed by `npm test`.
> Note: `it` can be used as shorthand for `install-test`.
> More information: <https://docs.npmjs.com/cli/v8/commands/npm-install-test>.
- Install all dependencies and then run tests:
`npm install-test`
- Install a specific package and then run tests:
`npm install-test {{package_name}}`
- Install a package and save it as a dependency before running tests:
`npm install-test {{package_name}} {{[-S|--save]}}`
- Install dependencies globally and then run tests:
`npm install-test {{[-g|--global]}}`

12
tldr/npm-it Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm it
> This command is an alias of `npm install-test`.
- View documentation for the original command:
`tldr npm install-test`

View File

@@ -16,10 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
`head {{[-5|--lines 5]}} {{path/to/file1 path/to/file2 ...}}`
- Output the first `count` lines of a file:
- Output the first `n` lines of a file:
`head {{[-n|--lines]}} {{count}} {{path/to/file}}`
`head {{[-n|--lines]}} {{n}} {{path/to/file}}`
- Output the first n `bytes` of a file:
- Output the first `n` bytes of a file:
`head {{[-c|--bytes]}} {{bytes}} {{path/to/file}}`
`head {{[-c|--bytes]}} {{n}} {{path/to/file}}`

View File

@@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git
`pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}`
- Convert a Markdown file to PDF using the specified PDF engine:
- Convert the output from another command to PDF, using a specific PDF engine:
`pandoc {{path/to/input.md}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}`
`{{command}} | pandoc {{[-f|--from]}} {{input_format}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}`
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
@@ -28,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
`pandoc {{path/to/input}} {{[-L|--lua-filter]}} {{path/to/filter.lua}} {{[-o|--output]}} {{path/to/output}}`
- Convert a remote HTML file to markdown and print the result to `stdout`:
`pandoc {{[-f|--from]}} html {{[-t|--to]}} markdown {{https://example.com}}`
- List all supported input formats:
`pandoc --list-input-formats`

33
tldr/poetry-init Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry init
> Create a basic `pyproject.toml` file interactively.
> More information: <https://python-poetry.org/docs/cli/#init>.
- Create a `pyproject.toml` file interactively:
`poetry init`
- Create a `pyproject.toml` file with prefilled values:
`poetry init --name {{package_name}} --author "{{author_name <email@example.com>}}"`
- Create a `pyproject.toml` file without interaction (using defaults):
`poetry init {{[-n|--no-interaction]}}`
- Create a `pyproject.toml` file and add a dependency:
`poetry init --dependency {{package_name}}`
- Create a `pyproject.toml` file and add a development dependency:
`poetry init --dev-dependency {{package_name}}`
- Display help:
`poetry init {{[-h|--help]}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# stat
> Display file and filesystem information.
> See also: `file`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/stat-invocation.html>.
- Display properties about a specific file such as size, permissions, creation and access dates among others: