From 96cc0e16c68ec63adc653604eec8d548a23f7ef1 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 20 Nov 2025 00:20:48 +0000 Subject: [PATCH] Update cheatsheets --- tldr/biber | 22 ++++++++++++++++++++++ tldr/bun-outdated | 29 +++++++++++++++++++++++++++++ tldr/bun-patch | 29 +++++++++++++++++++++++++++++ tldr/bun-upgrade | 21 +++++++++++++++++++++ tldr/bun-why | 29 +++++++++++++++++++++++++++++ tldr/cut | 24 ++++++++++++++++-------- tldr/czkawka_cli | 4 ++-- tldr/dvc | 12 ++++++++++-- tldr/grex | 28 ++++++++++++++++++---------- tldr/librewolf | 13 +++++++++++++ 10 files changed, 189 insertions(+), 22 deletions(-) create mode 100644 tldr/biber create mode 100644 tldr/bun-outdated create mode 100644 tldr/bun-patch create mode 100644 tldr/bun-upgrade create mode 100644 tldr/bun-why create mode 100644 tldr/librewolf diff --git a/tldr/biber b/tldr/biber new file mode 100644 index 00000000..e49d2949 --- /dev/null +++ b/tldr/biber @@ -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: . + +- 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]}}` diff --git a/tldr/bun-outdated b/tldr/bun-outdated new file mode 100644 index 00000000..1d29f9fd --- /dev/null +++ b/tldr/bun-outdated @@ -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: . + +- 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` diff --git a/tldr/bun-patch b/tldr/bun-patch new file mode 100644 index 00000000..c41b4c8e --- /dev/null +++ b/tldr/bun-patch @@ -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: . + +- 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}}` diff --git a/tldr/bun-upgrade b/tldr/bun-upgrade new file mode 100644 index 00000000..4c676763 --- /dev/null +++ b/tldr/bun-upgrade @@ -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: . + +- 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` diff --git a/tldr/bun-why b/tldr/bun-why new file mode 100644 index 00000000..2092590e --- /dev/null +++ b/tldr/bun-why @@ -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: . + +- 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}}` diff --git a/tldr/cut b/tldr/cut index e7806e74..5d6223a8 100644 --- a/tldr/cut +++ b/tldr/cut @@ -8,18 +8,26 @@ source: https://github.com/tldr-pages/tldr.git > Cut out fields from `stdin` or files. > More information: . -- 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}}` diff --git a/tldr/czkawka_cli b/tldr/czkawka_cli index 4360d7e3..e69de3a2 100644 --- a/tldr/czkawka_cli +++ b/tldr/czkawka_cli @@ -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: diff --git a/tldr/dvc b/tldr/dvc index 9ce32b6f..18dbd985 100644 --- a/tldr/dvc +++ b/tldr/dvc @@ -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: . -- 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}}` diff --git a/tldr/grex b/tldr/grex index 5d1f2818..75850007 100644 --- a/tldr/grex +++ b/tldr/grex @@ -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 ...}}` diff --git a/tldr/librewolf b/tldr/librewolf new file mode 100644 index 00000000..0abafcbb --- /dev/null +++ b/tldr/librewolf @@ -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: . + +- View documentation for the original command: + +`tldr firefox`