diff --git a/tldr/adb-shell-pm b/tldr/adb-shell-pm index ced93af2..0f2faf97 100644 --- a/tldr/adb-shell-pm +++ b/tldr/adb-shell-pm @@ -8,9 +8,9 @@ source: https://github.com/tldr-pages/tldr.git > Android Package Manager tool. > More information: . -- 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: diff --git a/tldr/brew-cleanup b/tldr/brew-cleanup new file mode 100644 index 00000000..ac66e6a1 --- /dev/null +++ b/tldr/brew-cleanup @@ -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: . + +- 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]}}` diff --git a/tldr/conda-search b/tldr/conda-search new file mode 100644 index 00000000..6e83eb67 --- /dev/null +++ b/tldr/conda-search @@ -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: . + +- 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}}` diff --git a/tldr/fselect b/tldr/fselect index 870aeb69..c672906b 100644 --- a/tldr/fselect +++ b/tldr/fselect @@ -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: diff --git a/tldr/kaggle b/tldr/kaggle index ac0ec265..3000341c 100644 --- a/tldr/kaggle +++ b/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: . +> More information: . - 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}}` diff --git a/tldr/linux/sfdisk b/tldr/linux/sfdisk index 9c7814f5..d3b951c9 100644 --- a/tldr/linux/sfdisk +++ b/tldr/linux/sfdisk @@ -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: diff --git a/tldr/melt b/tldr/melt new file mode 100644 index 00000000..b788d6e4 --- /dev/null +++ b/tldr/melt @@ -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: . + +- 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 -` diff --git a/tldr/opencode b/tldr/opencode index 4415c8c8..7e82bb09 100644 --- a/tldr/opencode +++ b/tldr/opencode @@ -5,20 +5,32 @@ source: https://github.com/tldr-pages/tldr.git --- # opencode -> AI coding agent. +> An AI coding agent. > More information: . -- 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: diff --git a/tldr/sequin b/tldr/sequin new file mode 100644 index 00000000..59ecd89b --- /dev/null +++ b/tldr/sequin @@ -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: . + +- Describe ANSI escape sequences from a string: + +`printf "{{Ciao, Baby. +}}" | 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`