mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -8,9 +8,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Android Package Manager tool.
|
||||
> More information: <https://developer.android.com/tools/adb>.
|
||||
|
||||
- Print the path to the APK of a package:
|
||||
- List installed packages:
|
||||
|
||||
`adb shell pm path {{package}}`
|
||||
`adb shell pm list packages`
|
||||
|
||||
- Install an app package from a given path:
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Disable a package or component:
|
||||
|
||||
`adb shell pm disable {{package_or_class}}`
|
||||
`adb shell pm disable-user {{package_or_class}}`
|
||||
|
||||
- Grant a permission for an app:
|
||||
|
||||
|
||||
25
tldr/brew-cleanup
Normal file
25
tldr/brew-cleanup
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# brew cleanup
|
||||
|
||||
> Remove stale lock files and outdated downloads for all formulas and casks.
|
||||
> More information: <https://docs.brew.sh/Manpage#cleanup-options-formulacask->.
|
||||
|
||||
- Remove stale lock files and outdated downloads for all formulas/casks:
|
||||
|
||||
`brew cleanup`
|
||||
|
||||
- Remove stale lock files and outdated downloads for a specific formula/cask:
|
||||
|
||||
`brew cleanup {{formula|cask}}`
|
||||
|
||||
- Show what would be removed, but do not actually remove anything:
|
||||
|
||||
`brew cleanup {{[-n|--dry-run]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`brew cleanup {{[-h|--help]}}`
|
||||
33
tldr/conda-search
Normal file
33
tldr/conda-search
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# conda search
|
||||
|
||||
> Search for packages and show their details.
|
||||
> More information: <https://docs.conda.io/projects/conda/en/latest/commands/search.html>.
|
||||
|
||||
- Search for a specific package:
|
||||
|
||||
`conda search {{package_name}}`
|
||||
|
||||
- Search for a package along with its details:
|
||||
|
||||
`conda search {{package_name}} {{[-i|--info]}}`
|
||||
|
||||
- Search for packages containing `string` in the package name:
|
||||
|
||||
`conda search "*string*"`
|
||||
|
||||
- Search for specific version of the package:
|
||||
|
||||
`conda search "{{package_name}}>={{package_version}}"`
|
||||
|
||||
- Search a package within a specific channel:
|
||||
|
||||
`conda search {{channel}}::{{package_name}}`
|
||||
|
||||
- Search if package is installed in any local environments:
|
||||
|
||||
`conda search --envs {{package_name}}`
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Select full path and size from temporary or configuration files in a given directory:
|
||||
|
||||
`fselect size, path from {{path/to/directory}} where name = '{{*.cfg}}' or name = {{'*.tmp'}}`
|
||||
`fselect size, path from {{path/to/directory}} where name = '{{*.cfg}}' or name = '{{*.tmp}}'`
|
||||
|
||||
- Find square images:
|
||||
|
||||
|
||||
28
tldr/kaggle
28
tldr/kaggle
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kaggle
|
||||
|
||||
> Official CLI for Kaggle implemented in Python 3.
|
||||
> More information: <https://github.com/Kaggle/kaggle-api>.
|
||||
> More information: <https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md>.
|
||||
|
||||
- View current configuration values:
|
||||
|
||||
@@ -14,4 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download a specific file from a competition dataset:
|
||||
|
||||
`kaggle competitions download {{competition}} {{[-f|--file]}} {{filename}}`
|
||||
`kaggle competitions download {{competition}} {{[-f|--file]}} {{path/to/file}}`
|
||||
|
||||
- List competitions matching a search term:
|
||||
|
||||
`kaggle competitions list {{[-s|--search]}} {{search_term}}`
|
||||
|
||||
- List files available for a specific competition:
|
||||
|
||||
`kaggle competitions files {{competition}}`
|
||||
|
||||
- Submit a file to a competition with a message:
|
||||
|
||||
`kaggle competitions submit {{competition}} {{[-f|--file]}} {{path/to/submission.csv}} {{[-m|--message]}} "{{message}}"`
|
||||
|
||||
- List datasets matching a search term:
|
||||
|
||||
`kaggle datasets list {{[-s|--search]}} {{search_term}}`
|
||||
|
||||
- Download all files from a dataset:
|
||||
|
||||
`kaggle datasets download {{owner}}/{{dataset_name}}`
|
||||
|
||||
- List kernels (notebooks) matching a search term:
|
||||
|
||||
`kaggle kernels list {{[-s|--search]}} {{search_term}}`
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Back up the partition layout to a file:
|
||||
|
||||
`sudo sfdisk {{[-d|--dump]}} {{path/to/device}} > {{path/to/file.dump}}`
|
||||
`sudo sfdisk {{[-d|--dump]}} {{/dev/sdX}} > {{path/to/file.dump}}`
|
||||
|
||||
- Restore a partition layout:
|
||||
|
||||
`sudo sfdisk < {{path/to/file.dump}} {{path/to/device}}`
|
||||
`sudo sfdisk < {{path/to/file.dump}} {{/dev/sdX}}`
|
||||
|
||||
- Set the type of a partition:
|
||||
|
||||
`sfdisk --part-type {{path/to/device}} {{partition_number}} {{swap}}`
|
||||
`sudo sfdisk --part-type {{/dev/sdX}} {{partition_number}} {{swap}}`
|
||||
|
||||
- Delete a partition:
|
||||
|
||||
`sfdisk --delete {{path/to/device}} {{partition_number}}`
|
||||
`sudo sfdisk --delete {{/dev/sdX}} {{partition_number}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
25
tldr/melt
Normal file
25
tldr/melt
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# melt
|
||||
|
||||
> Backup and restore Ed25519 SSH keys using memorizable seed phrases.
|
||||
> More information: <https://github.com/charmbracelet/melt#usage>.
|
||||
|
||||
- Generate a seed phrase from an existing Ed25519 private key:
|
||||
|
||||
`melt {{~/.ssh/id_ed25519}}`
|
||||
|
||||
- Generate a seed phrase from `stdin`:
|
||||
|
||||
`{{cat ~/.ssh/id_ed25519}} | melt`
|
||||
|
||||
- Restore an SSH key from a seed phrase:
|
||||
|
||||
`melt restore {{path/to/key}} --seed "{{seed_phrase}}"`
|
||||
|
||||
- Restore an SSH key from a seed phrase via `stdin`:
|
||||
|
||||
`{{cat path/to/file}} | melt restore -`
|
||||
@@ -5,20 +5,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# opencode
|
||||
|
||||
> AI coding agent.
|
||||
> An AI coding agent.
|
||||
> More information: <https://opencode.ai/docs/cli/>.
|
||||
|
||||
- Start the interactive terminal UI:
|
||||
- Start the interactive TUI:
|
||||
|
||||
`opencode`
|
||||
|
||||
- Run opencode in non-interactive mode by passing a prompt directly:
|
||||
|
||||
`opencode run "{{message}}"`
|
||||
|
||||
- Use a specific model and agent:
|
||||
|
||||
`opencode run {{[-m|--model]}} {{provider}}/{{model}} --agent {{agent_name}} "{{message}}"`
|
||||
|
||||
- List all available models from configured providers:
|
||||
|
||||
`opencode models`
|
||||
|
||||
- Run opencode in a non-interactive mode by passing a prompt directly:
|
||||
- Manage credentials and login for providers:
|
||||
|
||||
`opencode run {{message}}`
|
||||
`opencode auth login`
|
||||
|
||||
- Start a headless opencode server for API access:
|
||||
|
||||
`opencode serve {{[-h|--hostname]}} {{hostname}} {{[-p|--port]}} {{port}}`
|
||||
|
||||
- Manage AI assistant agents for OpenCode:
|
||||
|
||||
|
||||
31
tldr/sequin
Normal file
31
tldr/sequin
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sequin
|
||||
|
||||
> Make ANSI escape sequences human-readable.
|
||||
> Useful for debugging, learning, or inspecting terminal output.
|
||||
> More information: <https://github.com/charmbracelet/sequin>.
|
||||
|
||||
- Describe ANSI escape sequences from a string:
|
||||
|
||||
`printf "{{[38;5;4mCiao, [1;7mBaby.[0m
|
||||
}}" | sequin`
|
||||
|
||||
- Inspect colorized output from another command (e.g., `ls`):
|
||||
|
||||
`ls -l --color=always | sequin`
|
||||
|
||||
- Examine a file containing ANSI sequences (e.g., a TUI golden file):
|
||||
|
||||
`cat {{path/to/file.golden}} | sequin`
|
||||
|
||||
- Execute a command directly within a fake TTY to inspect its output:
|
||||
|
||||
`sequin -- {{ls -l go.*}}`
|
||||
|
||||
- Highlight raw ANSI sequences inline for easier reading:
|
||||
|
||||
`git -c status.color=always status -sb | sequin -r`
|
||||
Reference in New Issue
Block a user