diff --git a/tldr/chown b/tldr/chown index 8f73a515..a8288b19 100644 --- a/tldr/chown +++ b/tldr/chown @@ -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}}` diff --git a/tldr/fvm b/tldr/fvm new file mode 100644 index 00000000..4bdc43a3 --- /dev/null +++ b/tldr/fvm @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# fvm + +> Flutter version manager. +> More information: . + +- 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` diff --git a/tldr/linux/apt-get b/tldr/linux/apt-get index b08be899..1de6f638 100644 --- a/tldr/linux/apt-get +++ b/tldr/linux/apt-get @@ -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: . - Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands): diff --git a/tldr/linux/debuginfod-find b/tldr/linux/debuginfod-find new file mode 100644 index 00000000..3b1ad803 --- /dev/null +++ b/tldr/linux/debuginfod-find @@ -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: . + +- Request data based on the `build_id`: + +`debuginfod-find -vv debuginfo {{build_id}}` diff --git a/tldr/linux/repo-remove b/tldr/linux/repo-remove new file mode 100644 index 00000000..008e9277 --- /dev/null +++ b/tldr/linux/repo-remove @@ -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: . + +- Remove a package from a local repository: + +`repo-remove {{path/to/database.db.tar.gz}} {{package}}` diff --git a/tldr/poetry b/tldr/poetry index 48c9ea3c..7033ce6c 100644 --- a/tldr/poetry +++ b/tldr/poetry @@ -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` diff --git a/tldr/ruff b/tldr/ruff new file mode 100644 index 00000000..7b7e4d10 --- /dev/null +++ b/tldr/ruff @@ -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: . + +- View documentation for the Ruff linter: + +`tldr ruff check` + +- View documentation for the Ruff code formatter: + +`tldr ruff format` diff --git a/tldr/ruff-check b/tldr/ruff-check new file mode 100644 index 00000000..0276b5e0 --- /dev/null +++ b/tldr/ruff-check @@ -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: . + +- 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` diff --git a/tldr/ruff-format b/tldr/ruff-format new file mode 100644 index 00000000..285ef455 --- /dev/null +++ b/tldr/ruff-format @@ -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: . + +- 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`