From a03cd9f584986266db8dd3ef379cf1806d05b58f Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 3 Oct 2025 00:18:44 +0000 Subject: [PATCH] Update cheatsheets --- tldr/brew-list | 12 ++++++------ tldr/brew-update | 2 +- tldr/btop | 2 +- tldr/cargo-deb | 29 +++++++++++++++++++++++++++++ tldr/cargo-msrv | 29 +++++++++++++++++++++++++++++ tldr/crush | 34 ++++++++++++++++++++++++++++++++++ tldr/gh-cache | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/gh-search | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/neofetch | 6 ++++-- tldr/ping6 | 1 + tldr/pip-freeze | 8 ++++---- tldr/pip-install | 6 +++--- tldr/pip-uninstall | 2 +- tldr/pulumi-login | 2 +- tldr/split | 2 +- tldr/venv | 4 ++-- 16 files changed, 199 insertions(+), 22 deletions(-) create mode 100644 tldr/cargo-deb create mode 100644 tldr/cargo-msrv create mode 100644 tldr/crush create mode 100644 tldr/gh-cache create mode 100644 tldr/gh-search diff --git a/tldr/brew-list b/tldr/brew-list index 33f29a69..bc433970 100644 --- a/tldr/brew-list +++ b/tldr/brew-list @@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git - List all installed formulae and casks: -`brew list` +`brew {{[ls|list]}}` - List files belonging to an installed formula: -`brew list {{formula}}` +`brew {{[ls|list]}} {{formula}}` - List artifacts of a cask: -`brew list {{cask}}` +`brew {{[ls|list]}} {{cask}}` - List only formulae: -`brew list --formula` +`brew {{[ls|list]}} --formula` - List only casks: -`brew list --cask` +`brew {{[ls|list]}} --cask` - List only pinned formulae: -`brew list --pinned` +`brew {{[ls|list]}} --pinned` diff --git a/tldr/brew-update b/tldr/brew-update index 0df3a07b..bb646eab 100644 --- a/tldr/brew-update +++ b/tldr/brew-update @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Fetch the newest version of Homebrew and all formulae: -`brew update` +`brew {{[up|update]}}` diff --git a/tldr/btop b/tldr/btop index 22ba3242..858886e0 100644 --- a/tldr/btop +++ b/tldr/btop @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A resource monitor that shows information about the CPU, memory, disks, network and processes. > A C++ version of `bpytop`. -> More information: . +> More information: . - Start `btop`: diff --git a/tldr/cargo-deb b/tldr/cargo-deb new file mode 100644 index 00000000..99d6ad14 --- /dev/null +++ b/tldr/cargo-deb @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cargo deb + +> Create Debian packages from Cargo projects. +> More information: . + +- Create a Debian package from a project: + +`cargo deb` + +- Write the `.deb` file to the specified file or directory: + +`cargo deb {{[-o|--output]}} {{path/to/file_or_directory}}` + +- Compile for the specified Rust target triple: + +`cargo deb --target {{x86_64-unknown-linux-gnu}}` + +- Select which package to use in a Cargo workspace: + +`cargo deb {{[-p|--package]}} {{package_name}}` + +- Immediately install the created package: + +`cargo deb --install` diff --git a/tldr/cargo-msrv b/tldr/cargo-msrv new file mode 100644 index 00000000..a6d097b4 --- /dev/null +++ b/tldr/cargo-msrv @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cargo msrv + +> Manage the Minimum Supported Rust Version (MSRV) of a project. +> More information: . + +- Display the MSRVs of dependencies (as specified in their `Cargo.toml`): + +`cargo msrv list` + +- Find the MSRV of the project by trying to compile it with various toolchains: + +`cargo msrv find` + +- Show the MSRV of the project as specified in `Cargo.toml`: + +`cargo msrv show` + +- Set the MSRV in `Cargo.toml` to a given Rust version: + +`cargo msrv set {{version}}` + +- Verify whether the MSRV is satisfiable by compiling the project using the specified version of Rust: + +`cargo msrv verify` diff --git a/tldr/crush b/tldr/crush new file mode 100644 index 00000000..60e1843f --- /dev/null +++ b/tldr/crush @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# crush + +> AI-powered terminal assistant for software development tasks. +> Provides interactive chat interface with AI capabilities, code analysis, and LSP integration. +> More information: . + +- Start interactive mode: + +`crush` + +- Run with debug logging: + +`crush {{[-d|--debug]}}` + +- Run with debug logging in a specific directory: + +`crush {{[-d|--debug]}} {{[-c|--cwd]}} {{path/to/project}}` + +- Run a single non-interactive prompt: + +`crush run "{{Explain the use of context in Go}}"` + +- Run in dangerous mode (auto-accept all permissions): + +`crush {{[-y|--yolo]}}` + +- Display version: + +`crush {{[-v|--version]}}` diff --git a/tldr/gh-cache b/tldr/gh-cache new file mode 100644 index 00000000..891ad283 --- /dev/null +++ b/tldr/gh-cache @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gh cache + +> Manage GitHub Actions caches. +> More information: . + +- List caches for the current repository: + +`gh cache {{[ls|list]}}` + +- List caches for a specific repository: + +`gh cache {{[ls|list]}} {{[-R|--repo]}} {{owner}}/{{repository}}` + +- List caches with a specific cache key prefix: + +`gh cache {{[ls|list]}} {{[-k|--key]}} {{key_prefix}}` + +- List caches for a specific branch: + +`gh cache {{[ls|list]}} {{[-r|--ref]}} refs/heads/{{branch_name}}` + +- List caches sorted by least recently accessed: + +`gh cache {{[ls|list]}} {{[-S|--sort]}} last_accessed_at {{[-O|--order]}} asc` + +- Delete a cache by id: + +`gh cache delete {{cache_id}}` + +- Delete a cache by key: + +`gh cache delete {{cache_key}}` + +- Delete all caches: + +`gh cache delete {{[-a|--all]}}` diff --git a/tldr/gh-search b/tldr/gh-search new file mode 100644 index 00000000..5d745026 --- /dev/null +++ b/tldr/gh-search @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gh search + +> Search across all of GitHub. +> More information: . + +- Search for code containing specific keywords: + +`gh search code {{keyword1 keyword2 ...}}` + +- Search for issues with a specific phrase: + +`gh search issues "{{search_phrase}}"` + +- Search commits by a specific author: + +`gh search commits --author {{username}}` + +- Search pull requests assigned to yourself that are still open: + +`gh search prs --assignee @me --state open` + +- Search repositories in an organization by topic: + +`gh search repos --owner {{org_name}} --topic {{topic_name}}` + +- Search issues without a certain label (Unix-like systems): + +`gh search issues -- "{{search_query}} -label:{{label_name}}"` + +- Search issues without a certain label (PowerShell): + +`gh --% search issues -- "{{search_query}} -label:{{label_name}}"` + +- Open the search query in the web browser: + +`gh search {{subcommand}} {{[-w|--web]}} {{query}}` diff --git a/tldr/neofetch b/tldr/neofetch index 1e0cc421..68af144a 100644 --- a/tldr/neofetch +++ b/tldr/neofetch @@ -5,14 +5,16 @@ source: https://github.com/tldr-pages/tldr.git --- # neofetch -> Display information about your operating system, software and hardware. +> Display information about the operating system, software and hardware. +> Note: `neofetch` is no longer maintained. +> See also: `fastfetch`. > More information: . - Return the default config, and create it if it's the first time the program runs: `neofetch` -- Trigger an info line from appearing in the output, where 'infoname' is the function name in the configuration file, e.g. memory: +- Trigger an info line from appearing in the output, where `infoname` is the function name in the configuration file, e.g. memory: `neofetch --{{enable|disable}} {{infoname}}` diff --git a/tldr/ping6 b/tldr/ping6 index 646aa879..c46a7502 100644 --- a/tldr/ping6 +++ b/tldr/ping6 @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ping6 > Send ICMP ECHO_REQUEST packets to network hosts via IPv6 address. +> Note: `ping6` has been merged to `ping` in modern systems. > More information: . - Ping a host: diff --git a/tldr/pip-freeze b/tldr/pip-freeze index ec2c1dea..940e023c 100644 --- a/tldr/pip-freeze +++ b/tldr/pip-freeze @@ -12,18 +12,18 @@ source: https://github.com/tldr-pages/tldr.git `pip freeze` -- List installed packages and write it to the `requirements.txt` file: +- Write installed packages to the `requirements.txt` file: `pip freeze > requirements.txt` - List installed packages in a virtual environment, excluding globally installed packages: -`pip freeze {{[-l|--local]}} > requirements.txt` +`pip freeze {{[-l|--local]}}` - List installed packages in the user-site: -`pip freeze --user > requirements.txt` +`pip freeze --user` - List all packages, including `pip`, `distribute`, `setuptools`, and `wheel` (they are skipped by default): -`pip freeze --all > requirements.txt` +`pip freeze --all` diff --git a/tldr/pip-install b/tldr/pip-install index e1b92e3b..5aeb637e 100644 --- a/tldr/pip-install +++ b/tldr/pip-install @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pip install > Install Python packages. -> More information: . +> More information: . - Install a package: @@ -20,10 +20,10 @@ source: https://github.com/tldr-pages/tldr.git `pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}` -- Install packages from an URL or local file archive (.tar.gz | .whl): +- Install packages from an URL or local file archive (e.g. `.tar.gz`, `.whl`): `pip install {{[-f|--find-links]}} {{url|path/to/file}}` - Install the local package in the current directory in develop (editable) mode: -`pip install {{[-e|--editable]}} {{.}}` +`pip install {{[-e|--editable]}} .` diff --git a/tldr/pip-uninstall b/tldr/pip-uninstall index c65ff34a..b2469d9d 100644 --- a/tldr/pip-uninstall +++ b/tldr/pip-uninstall @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pip uninstall > Uninstall Python packages. -> More information: . +> More information: . - Uninstall a package: diff --git a/tldr/pulumi-login b/tldr/pulumi-login index b54c26f7..efe95d5d 100644 --- a/tldr/pulumi-login +++ b/tldr/pulumi-login @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Log in to the Pulumi cloud. > More information: . -- Log in to the managed Pulumi Cloud backend, defaults to `app.pulumi.cloud`: +- Log in to the managed Pulumi Cloud backend, defaults to `https://api.pulumi.com`: `pulumi login` diff --git a/tldr/split b/tldr/split index ba59b2c2..26332c61 100644 --- a/tldr/split +++ b/tldr/split @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Split into multiple files from `stdin`: -`gzip {{[-cd|--stdout --decompress]}} {{path/to/compressed_file.gz}} | split {{[-l|--lines]}} 1000 - {{path/to/output}}` +`gzip {{[-cd|--stdout --decompress]}} {{path/to/compressed_file.gz}} | split {{[-l|--lines]}} {{1000}} - {{path/to/output}}` diff --git a/tldr/venv b/tldr/venv index 240aa80c..c5866fc0 100644 --- a/tldr/venv +++ b/tldr/venv @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # venv -> Create lightweight virtual environments in python. +> Create lightweight virtual environments in Python. > More information: . - Create a Python virtual environment: @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Activate the virtual environment (Linux and macOS): -`source {{path/to/virtual_environment}}/bin/activate` +`{{[.|source]}} {{path/to/virtual_environment}}/bin/activate` - Activate the virtual environment (Windows):