mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 02:55:42 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/htmlq
Normal file
29
tldr/htmlq
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# htmlq
|
||||||
|
|
||||||
|
> Use CSS selectors to extract content from HTML files.
|
||||||
|
> More information: <https://github.com/mgdm/htmlq>.
|
||||||
|
|
||||||
|
- Return all elements of class `card`:
|
||||||
|
|
||||||
|
`cat {{path/to/file.html}} | htmlq '.card'`
|
||||||
|
|
||||||
|
- Get the text content of the first paragraph:
|
||||||
|
|
||||||
|
`cat {{path/to/file.html}} | htmlq --text 'p:first-of-type'`
|
||||||
|
|
||||||
|
- Find all the links in a page:
|
||||||
|
|
||||||
|
`cat {{path/to/file.html}} | htmlq --attribute href 'a'`
|
||||||
|
|
||||||
|
- Remove all images and SVGs from a page:
|
||||||
|
|
||||||
|
`cat {{path/to/file.html}} | htmlq --remove-nodes 'img' --remove-nodes 'svg'`
|
||||||
|
|
||||||
|
- Pretty print and write the output to a file:
|
||||||
|
|
||||||
|
`htmlq --pretty --filename {{path/to/input.html}} --output {{path/to/output.html}}`
|
||||||
29
tldr/linux/bluebuild
Normal file
29
tldr/linux/bluebuild
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# bluebuild
|
||||||
|
|
||||||
|
> Build Containerfiles and custom images based on your `recipe.yml`.
|
||||||
|
> More information: <https://github.com/blue-build/cli>.
|
||||||
|
|
||||||
|
- Build a recipe:
|
||||||
|
|
||||||
|
`bluebuild build {{path/to/recipe.yml}}`
|
||||||
|
|
||||||
|
- Validate a recipe:
|
||||||
|
|
||||||
|
`bluebuild validate {{path/to/recipe.yml}}`
|
||||||
|
|
||||||
|
- Generate a Containerfile:
|
||||||
|
|
||||||
|
`bluebuild generate --output {{Containerfile}} {{path/to/recipe.yml}}`
|
||||||
|
|
||||||
|
- Generate an ISO from a recipe:
|
||||||
|
|
||||||
|
`bluebuild generate-iso --output-dir {{path/to/output_directory}} --iso-name {{iso_name.iso}} recipe {{path/to/recipe.yml}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`bluebuild --help`
|
||||||
21
tldr/pocount
Normal file
21
tldr/pocount
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# pocount
|
||||||
|
|
||||||
|
> Translate Toolkit utility to get translation progress from file, supporting several formats.
|
||||||
|
> More information: <https://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pocount.html>.
|
||||||
|
|
||||||
|
- Print a colorful table with the translation progress of a file:
|
||||||
|
|
||||||
|
`pocount {{path/to/file/file.po}}`
|
||||||
|
|
||||||
|
- Print translation progress of various files, one line per file:
|
||||||
|
|
||||||
|
`pocount --short {{translation_*.ts}}`
|
||||||
|
|
||||||
|
- Generate a CSV file with the translation progress of various files:
|
||||||
|
|
||||||
|
`pocount --csv {{translation_*.ts}} > {{path/to/translation_progress.csv}}`
|
||||||
Reference in New Issue
Block a user