Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-08 00:19:07 +00:00
parent ba165f8d8e
commit 9dd7a2e5d6
15 changed files with 268 additions and 7 deletions

33
tldr/bun-link Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun link
> Bun command to register the current package as a linkable package.
> More information: <https://bun.com/docs/pm/cli/link>.
- Link the package globally:
`bun link`
- Link a package locally to a project:
`bun link {{package_name}}`
- Link directly from a local path:
`bun link {{path/to/package}}`
- Unlink a package:
`bun unlink {{package_name}}`
- Unlink a global package:
`bun unlink --global {{package_name}}`
- Display help:
`bun link --help`

30
tldr/bun-remove Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun remove
> Remove a dependency from `package.json`.
> Note: `rm` can be used as an alias for `remove`.
> More information: <https://bun.sh/docs/cli/remove>.
- Remove a dependency:
`bun remove {{package_name}}`
- Remove multiple dependencies:
`bun remove {{package_name1 package_name2 ...}}`
- Remove a globally installed package:
`bun remove {{[-g|--global]}} {{package_name}}`
- Remove a dependency without updating the `package.json` file:
`bun remove --no-save {{package_name}}`
- Run the command without actually removing packages (simulate the removal):
`bun remove --dry-run {{package_name}}`

12
tldr/bun-rm Normal file
View File

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

33
tldr/kaggle-competitions Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kaggle competitions
> Manage Kaggle competitions from the command-line.
> More information: <https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md#competitions>.
- List all competitions:
`kaggle {{[c|competitions]}} list`
- Download competition data:
`kaggle {{[c|competitions]}} download {{competition_name}}`
- Download specific file:
`kaggle {{[c|competitions]}} download {{competition_name}} {{[-f|--file]}} {{file}}`
- Submit files to a competition:
`kaggle {{[c|competitions]}} submit {{competition_name}} {{[-f|--file]}} {{path/to/file}} {{[-m|--message]}} "{{message}}"`
- Show or download leaderboard:
`kaggle {{[c|competitions]}} leaderboard {{competition_name}} {{--show|--download}}`
- View submissions:
`kaggle {{[c|competitions]}} submissions {{competition_name}}`

37
tldr/kaggle-datasets Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kaggle datasets
> Manage Kaggle datasets from command line.
> More information: <https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md#datasets>.
- List all datasets owned by a user or organization:
`kaggle {{[d|datasets]}} list --user {{username}}`
- Search dataset by name:
`kaggle {{[d|datasets]}} list {{[-s|--search]}} "{{dataset_name}}"`
- Download a dataset:
`kaggle {{[d|datasets]}} download "{{dataset_name}}"`
- Create a public dataset:
`kaggle {{[d|datasets]}} create {{[-p|--path]}} {{path/to/dataset}} {{[-u|--public]}}`
- Download metadata of dataset:
`kaggle {{[d|datasets]}} metadata {{dataset_name}}`
- Initialize metadata for dataset:
`kaggle {{[d|datasets]}} init {{[-p|--path]}} {{path/to/dataset}}`
- Delete a dataset:
`kaggle {{[d|datasets]}} delete {{dataset_name}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bluetoothctl
> Manage Bluetooth devices.
> See also: `bluetui`.
> More information: <https://manned.org/bluetoothctl>.
- Enter the `bluetoothctl` shell:

18
tldr/linux/bluetui Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# bluetui
> Manage Bluetooth devices with a terminal UI.
> See also: `bluetoothctl`.
> More information: <https://github.com/pythops/bluetui#-usage>.
- Start the program:
`bluetui`
- Display help:
`bluetui {{[-h|--help]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# iw
> Show and manipulate wireless devices.
> See also: `iw dev`.
> See also: `iw dev`, `nmcli`, `iwctl`.
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
- Scan for available wireless networks:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# iwctl
> Control the `iwd` network supplicant.
> See also: `nmcli`, `iw`.
> More information: <https://manned.org/iwctl>.
- Run `iwctl` in interactive mode:

33
tldr/linux/koji-build Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# koji build
> Build an RPM package.
> More information: <https://docs.pagure.org/koji>.
- Build a package from `src.rpm`:
`koji build {{target}} {{path/to/src.rpm}}`
- Build a package from a SCM (Source Code Management) URL:
`koji build {{target}} {{git+https://src.fedoraproject.org/rpms/vim.git#e847a50297a216229050bf4db3d06a139104e7cf}}`
- Perform a scratch build:
`koji build {{target}} {{path/to/src.rpm}} --scratch`
- Wait on the build, even if it's running in the background:
`koji build {{target}} {{path/to/src.rpm}} --wait`
- Don't wait on build:
`koji build {{target}} {{path/to/src.rpm}} --nowait`
- Display help:
`koji build --help`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nmcli
> Manage the network configuration using NetworkManager.
> See also: `nmtui`.
> See also: `nmtui`, `iw`, `iwctl`.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- View documentation for managing network interfaces and establishing new Wi-Fi connections:

View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl set-property
> Set the specified unit properties at runtime.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#set-property%20UNIT%20PROPERTY=VALUE%E2%80%A6>.
- Set a property for a running service:
`systemctl set-property {{unit}} {{property}}={{value}}`
- Set multiple properties at once:
`systemctl set-property {{unit}} {{property_1=value_1 property_2=value_2 ...}}`
- Set a property only for the current runtime session (not persistent):
`systemctl set-property {{unit}} {{property}}={{value}} --runtime`
- Reset a property to its default value:
`systemctl set-property {{unit}} {{property}}=`
- Reset multiple properties to its default values:
`systemctl set-property {{unit}} {{property_1= property_2= ...}}`

34
tldr/poetry-export Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry export
> Export Poetry's lock file to other formats.
> Provided by the Export Poetry Plugin.
> More information: <https://github.com/python-poetry/poetry-plugin-export#usage>.
- Export dependencies to a `requirements.txt` file:
`poetry export {{[-o|--output]}} {{requirements.txt}}`
- Export dependencies including development dependencies:
`poetry export {{[-o|--output]}} {{requirements-dev.txt}} --dev`
- Export dependencies without hashes:
`poetry export {{[-o|--output]}} {{requirements.txt}} --without-hashes`
- Export dependencies for a specific format:
`poetry export {{[-o|--output]}} {{requirements.txt}} {{[-f|--format]}} {{requirements.txt}}`
- Export only specific dependency groups:
`poetry export {{[-o|--output]}} {{requirements.txt}} --only {{main}}`
- Display help:
`poetry export {{[-h|--help]}}`

View File

@@ -9,9 +9,9 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `vim`, `vimdiff`, `nvim`.
> More information: <https://manned.org/vimtutor>.
- Launch the vim tutor using the given language (en, fr, de, ...):
- Launch the vim tutor using the given language:
`vimtutor {{language}}`
`vimtutor {{en|fr|de|...}}`
- Exit the tutor:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# Clear-History
> A powershell command to clear the entries in the current session.
> Delete entries from the PowerShell session command history.
> Note: `clhy` can be used as an alias for `Clear-History`.
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/clear-history>.
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Clear multiple commands by name:
`Clear-History -CommandLine "{{command_1}}", "{{command_2}}"`
`Clear-History -CommandLine {{"command1", "command2", ...}}`
- Clear a specific history entry by ID:
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Clear multiple IDs:
`Clear-History -Id {{id_1}}, {{id_2}}, {{id_3}}`
`Clear-History -Id {{id1, id2, ...}}`
- Clear commands within a range of IDs: