mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 22:44:37 +00:00
Update cheatsheets
This commit is contained in:
@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`chown {{user}}:{{group}} {{path/to/file_or_directory}}`
|
||||
|
||||
- Change the owner user and group to both have the name `user`:
|
||||
|
||||
`chown {{user}}: {{path/to/file_or_directory}}`
|
||||
|
||||
- Recursively change the owner of a directory and its contents:
|
||||
|
||||
`chown -R {{user}} {{path/to/directory}}`
|
||||
|
||||
37
tldr/fvm
Normal file
37
tldr/fvm
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fvm
|
||||
|
||||
> Flutter version manager.
|
||||
> More information: <https://fvm.app/documentation/guides/basic-commands>.
|
||||
|
||||
- Install a version of the Flutter SDK. Use without `version` for project settings:
|
||||
|
||||
`fvm install {{version}}`
|
||||
|
||||
- Set a specific version of Flutter SDK in a project:
|
||||
|
||||
`fvm use {{version}} {{options}}`
|
||||
|
||||
- Set a global version of the Flutter SDK:
|
||||
|
||||
`fvm global {{version}}`
|
||||
|
||||
- Delete the FVM cache:
|
||||
|
||||
`fvm destroy`
|
||||
|
||||
- Remove a specific version of the Flutter SDK:
|
||||
|
||||
`fvm remove {{version}}`
|
||||
|
||||
- List all installed versions of the Flutter SDK:
|
||||
|
||||
`fvm list`
|
||||
|
||||
- List all releases of the Flutter SDK:
|
||||
|
||||
`fvm releases`
|
||||
@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Debian and Ubuntu package management utility.
|
||||
> Search for packages using `apt-cache`.
|
||||
> It is recommended to use `apt` when used interactively in Ubuntu versions 16.04 and later.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt-get.8.html>.
|
||||
|
||||
- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):
|
||||
|
||||
13
tldr/linux/debuginfod-find
Normal file
13
tldr/linux/debuginfod-find
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# debuginfod-find
|
||||
|
||||
> Request debuginfo-related data.
|
||||
> More information: <https://manned.org/debuginfod-find>.
|
||||
|
||||
- Request data based on the `build_id`:
|
||||
|
||||
`debuginfod-find -vv debuginfo {{build_id}}`
|
||||
13
tldr/linux/repo-remove
Normal file
13
tldr/linux/repo-remove
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# repo-remove
|
||||
|
||||
> Package database maintenance utility which removes packages from a local repository.
|
||||
> More information: <https://man.archlinux.org/man/repo-add>.
|
||||
|
||||
- Remove a package from a local repository:
|
||||
|
||||
`repo-remove {{path/to/database.db.tar.gz}} {{package}}`
|
||||
@@ -33,6 +33,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`poetry run {{command}}`
|
||||
|
||||
- Bump the minor version of the project in `pyproject.toml`:
|
||||
- Bump the version of the project in `pyproject.toml`:
|
||||
|
||||
`poetry version minor`
|
||||
`poetry version {{patch|minor|major|prepatch|preminor|premajor|prerelease}}`
|
||||
|
||||
- Spawn a shell within the project's virtual environment:
|
||||
|
||||
`poetry shell`
|
||||
|
||||
17
tldr/ruff
Normal file
17
tldr/ruff
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ruff
|
||||
|
||||
> An extremely fast Python linter and code formatter, written in Rust.
|
||||
> More information: <https://docs.astral.sh/ruff/tutorial>.
|
||||
|
||||
- View documentation for the Ruff linter:
|
||||
|
||||
`tldr ruff check`
|
||||
|
||||
- View documentation for the Ruff code formatter:
|
||||
|
||||
`tldr ruff format`
|
||||
38
tldr/ruff-check
Normal file
38
tldr/ruff-check
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ruff check
|
||||
|
||||
> An extremely fast Python linter. `check` is the default command - it can be omitted everywhere.
|
||||
> If no files or directories are specified, the current working directory is used by default.
|
||||
> More information: <https://docs.astral.sh/ruff/linter>.
|
||||
|
||||
- Run the linter on the given files or directories:
|
||||
|
||||
`ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- Apply the suggested fixes, modifying the files in-place:
|
||||
|
||||
`ruff check --fix`
|
||||
|
||||
- Run the linter and re-lint on change:
|
||||
|
||||
`ruff check --watch`
|
||||
|
||||
- Only enable the specified rules (or all rules), ignoring the configuration file:
|
||||
|
||||
`ruff check --select {{ALL|rule_code1,rule_code2,...}}`
|
||||
|
||||
- Additionally enable the specified rules:
|
||||
|
||||
`ruff check --extend-select {{rule_code1,rule_code2,...}}`
|
||||
|
||||
- Disable the specified rules:
|
||||
|
||||
`ruff check --ignore {{rule_code1,rule_code2,...}}`
|
||||
|
||||
- Ignore all existing violations of a rule by adding `# noqa` directives to all lines that violate it:
|
||||
|
||||
`ruff check --select {{rule_code}} --add-noqa`
|
||||
22
tldr/ruff-format
Normal file
22
tldr/ruff-format
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ruff format
|
||||
|
||||
> An extremely fast Python code formatter.
|
||||
> If no files or directories are specified, the current working directory is used by default.
|
||||
> More information: <https://docs.astral.sh/ruff/formatter>.
|
||||
|
||||
- Format given files or directories in-place:
|
||||
|
||||
`ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise:
|
||||
|
||||
`ruff format --check`
|
||||
|
||||
- Print what changes would be made without modifying the files:
|
||||
|
||||
`ruff format --diff`
|
||||
Reference in New Issue
Block a user