Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-20 00:20:48 +00:00
parent c80d49f5d0
commit 96cc0e16c6
10 changed files with 189 additions and 22 deletions

22
tldr/biber Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# biber
> A backend bibliography processor for the `biblatex` package.
> See also: `latexmk`.
> More information: <https://texdoc.org/serve/biber.pdf/0#section.3>.
- Generate bibliography data using a BibLaTeX Control File:
`biber {{path/to/file.bcf}}`
- Generate bibliography data using a configuration file:
`biber {{path/to/file.bcf}} {{[-g|--configfile]}} {{path/to/config_file}}`
- Enable debugging:
`biber {{path/to/file.bcf}} {{[-D|--debug]}}`

29
tldr/bun-outdated Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun outdated
> List dependencies in your project that have newer versions available.
> More information: <https://bun.com/docs/pm/cli/outdated>.
- List all outdated dependencies in the current project:
`bun outdated`
- Check if a specific package is outdated:
`bun outdated {{package}}`
- List outdated dependencies matching a glob pattern:
`bun outdated "{{pattern}}"`
- Show outdated dependencies for specific workspaces:
`bun outdated --filter "{{workspace_pattern}}"`
- Recursively check all workspaces in a monorepo:
`bun outdated --recursive`

29
tldr/bun-patch Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun patch
> Prepare a package for patching or generate a patch file.
> More information: <https://bun.com/docs/pm/cli/patch>.
- Prepare a package for patching:
`bun patch {{package}}`
- Prepare a specific version of a package:
`bun patch {{package}}@{{version}}`
- Prepare a package located at a specific path:
`bun patch {{path/to/package}}`
- Generate a patch file for changes made to a package:
`bun patch --commit {{path/to/package}}`
- Generate a patch file and store it in a custom directory:
`bun patch --commit {{path/to/package}} --patches-dir {{path/to/directory}}`

21
tldr/bun-upgrade Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun upgrade
> Upgrade Bun to the latest version.
> More information: <https://bun.com/docs/installation#upgrading>.
- Upgrade to the latest stable version:
`bun upgrade`
- Upgrade to the latest canary build:
`bun upgrade --canary`
- Switch back to the latest stable version:
`bun upgrade --stable`

29
tldr/bun-why Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun why
> Explain why a package is installed by showing its dependency chain.
> More information: <https://bun.com/docs/pm/cli/why>.
- Explain why a specific package is installed:
`bun why {{package_name}}`
- Explain why all packages matching a pattern are installed:
`bun why "{{pattern}}"`
- Explain why packages from a specific organization are installed:
`bun why "@{{organization}}/*"`
- Show only top-level dependencies:
`bun why {{package_name}} --top`
- Limit the dependency tree depth:
`bun why {{package_name}} --depth {{number}}`

View File

@@ -8,18 +8,26 @@ source: https://github.com/tldr-pages/tldr.git
> Cut out fields from `stdin` or files.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cut-invocation.html>.
- Print a specific [c]haracter/[f]ield range of each line:
- Print the fifth character on each line:
`{{command}} | cut --{{characters|fields}} {{1|1,10|1-10|1-|-10}}`
`{{command}} | cut {{[-c|--characters]}} 5`
- Print a field range of each line with a specific delimiter:
- Print the fifth to tenth character of each line of the specified file:
`{{command}} | cut {{[-d|--delimiter]}} "{{delimiter}}" {{[-f|--fields]}} {{1|1,10|1-10|1-|-10}}`
`cut {{[-c|--characters]}} 5-10 {{path/to/file}}`
- Print a character range of each line of the specific file:
- Split each line in a file by a delimiter into fields and print fields two and six (default delimiter is `TAB`):
`cut {{[-c|--characters]}} {{1}} {{path/to/file}}`
`cut {{[-f|--fields]}} 2,6 {{path/to/file}}`
- Print specific fields of `NUL` terminated lines (e.g. as in `find . -print0`) instead of newlines:
- Split each line by the specified delimiter and print all from the second field onward:
`{{command}} | cut {{[-z|--zero-terminated]}} {{[-f|--fields]}} {{1}}`
`{{command}} | cut {{[-d|--delimiter]}} "{{delimiter}}" {{[-f|--fields]}} 2-`
- Use space as a delimiter and print only the first 3 fields:
`{{command}} | cut {{[-d|--delimiter]}} " " {{[-f|--fields]}} -3`
- Print specific fields of lines that use `NUL` to terminate lines instead of newlines:
`{{find . -print0}} | cut {{[-z|--zero-terminated]}} {{[-d|--delimiter]}} "{{/}}" {{[-f|--fields]}} {{2}}`

View File

@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Find duplicate files in specific directories and delete them (default: `NONE`):
`czkawka-cli dup {{[-d|--directories]}} {{path/to/directory}} {{[-D|--delete-method]}} {{AEN|AEO|ON|OO|HARD|NONE}}`
`czkawka_cli dup {{[-d|--directories]}} {{path/to/directory}} {{[-D|--delete-method]}} {{AEN|AEO|ON|OO|HARD|NONE}}`
- Find similar looking image with a specific similarity level (default: `High`):
`czkawka-cli image {{[-d|--directories]}} {{path/to/directory}} {{[-s|--similarity-preset]}} {{Minimal|VerySmall|Small|Medium|High|VeryHigh|Original}} {{[-f|--file-to-save]}} {{path/to/results.txt}}`
`czkawka_cli image {{[-d|--directories]}} {{path/to/directory}} {{[-s|--similarity-preset]}} {{Minimal|VerySmall|Small|Medium|High|VeryHigh|Original}} {{[-f|--file-to-save]}} {{path/to/results.txt}}`
- Display help:

View File

@@ -5,11 +5,19 @@ source: https://github.com/tldr-pages/tldr.git
---
# dvc
> Data Version Control: like `git` for data.
> Data Version Control system for machine learning projects.
> Some subcommands such as `commit` have their own usage documentation.
> More information: <https://dvc.org/doc/command-reference>.
- Execute a DVC subcommand:
- Initialize a new DVC project:
`dvc init`
- Add one or more data files or directories to tracking:
`dvc add {{path/to/file_or_directory}}`
- Execute a specific subcommand:
`dvc {{subcommand}}`

View File

@@ -10,24 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a simple `regex`:
`grex {{space_separated_strings}}`
`grex {{string1 string2 ...}}`
- Generate a case-insensitive `regex`:
`grex {{[-i|--ignore-case]}} {{space_separated_strings}}`
`grex {{[-i|--ignore-case]}} {{string1 string2 ...}}`
- Replace digits with '\d':
- Replace digits with `\d`:
`grex {{[-d|--digits]}} {{space_separated_strings}}`
`grex {{[-d|--digits]}} {{string1 string2 ...}}`
- Replace Unicode word character with '\w':
- Replace Unicode word character with `\w`:
`grex {{[-w|--words]}} {{space_separated_strings}}`
`grex {{[-w|--words]}} {{string1 string2 ...}}`
- Replace spaces with '\s':
- Replace spaces with `\s`:
`grex {{[-s|--spaces]}} {{space_separated_strings}}`
`grex {{[-s|--spaces]}} {{string1 string2 ...}}`
- Add {min, max} quantifier representation for repeating sub-strings:
- Detect repeating patterns in the input and shorten them using {min,max} quantifiers:
`grex {{[-r|--repetitions]}} {{space_separated_strings}}`
`grex {{[-r|--repetitions]}} {{string1 string2 ...}}`
- Generate `regex` of test cases (separated by newline) from a file:
`grex {{[-f|--file]}} {{path/to/file}}`
- Do not generate anchors and non-capture groups:
`grex --no-anchors {{[-g|--capture-groups]}} {{string1 string2 ...}}`

13
tldr/librewolf Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# librewolf
> This command is an alias of `firefox`.
> More information: <https://librewolf.net>.
- View documentation for the original command:
`tldr firefox`