diff --git a/tldr/bun-audit b/tldr/bun-audit new file mode 100644 index 00000000..3b128d2d --- /dev/null +++ b/tldr/bun-audit @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun-audit + +> Check installed packages for known security vulnerabilities. +> More information: . + +- Audit all dependencies in a project with a `bun.lock` file: + +`bun audit` + +- Show only vulnerabilities at or above a specific severity level: + +`bun audit --audit-level {{low|moderate|high|critical}}` + +- Audit only production dependencies: + +`bun audit --prod` + +- Ignore a specific CVE ID: + +`bun audit --ignore {{CVE-XXXX-YYYY}}` + +- Output the raw JSON report: + +`bun audit --json` diff --git a/tldr/bun-exec b/tldr/bun-exec new file mode 100644 index 00000000..f053fdfe --- /dev/null +++ b/tldr/bun-exec @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun exec + +> Execute shell commands or script files using Bun's runtime. +> Note: When running from a shell, remember to escape quotes. +> More information: . + +- Run a simple command: + +`bun exec "echo hello"` + +- Run a command with flags: + +`bun exec "ls -la"` + +- Run a command containing quotes: + +`bun exec "echo \"hello friends\""` + +- Run a combined shell command: + +`bun exec "mkdir test && cd test"` + +- Run a script file: + +`bun exec {{path/to/script}}` diff --git a/tldr/bun-info b/tldr/bun-info new file mode 100644 index 00000000..6e49ac13 --- /dev/null +++ b/tldr/bun-info @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun-info + +> Display package metadata from the npm registry. +> More information: . + +- Display the package metadata: + +`bun info {{package_name}}` + +- Display the specific version metadata: + +`bun info {{package_name}}@{{version}}` + +- Show a specific property of a package: + +`bun info {{package_name}} {{property}}` + +- Output results in JSON format: + +`bun info {{package_name}} --json` diff --git a/tldr/conda-package b/tldr/conda-package new file mode 100644 index 00000000..46adb178 --- /dev/null +++ b/tldr/conda-package @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda package + +> Create low-level conda packages. +> More information: . + +- Get conda package from file: + +`conda package {{[-w|--which]}} {{path/to/file}}` + +- Remove all untracked files: + +`conda package {{[-r|--reset}}` + +- Display all untracked files: + +`conda package {{[-u|--untracked]}}` + +- Designate package name of the package being created: + +`conda package --pkg-name {{name}}` + +- Designate package version of the package being created: + +`conda package --pkg-version {{version}}` + +- Designate package build number of the package being created: + +`conda package --pkg-build {{build_number}}` diff --git a/tldr/czkawka_cli b/tldr/czkawka_cli new file mode 100644 index 00000000..4360d7e3 --- /dev/null +++ b/tldr/czkawka_cli @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# czkawka_cli + +> Find duplicates, empty folders, similar images and much more. +> More information: . + +- List duplicate in specific directories and write the results into a file: + +`czkawka_cli dup {{[-d|--directories]}} {{path/to/directory1}} {{[-d|--directories]}} {{path/to/directory2}} {{[-f|--file-to-save]}} {{path/to/results.txt}}` + +- Find duplicate files in specific directories and delete them (default: `NONE`): + +`czkawka-cli dup {{[-d|--directories]}} {{path/to/directory}} {{[-D|--delete-method]}} {{AEN|AEO|ON|OO|HARD|NONE}}` + +- Find similar looking image with a specific similarity level (default: `High`): + +`czkawka-cli image {{[-d|--directories]}} {{path/to/directory}} {{[-s|--similarity-preset]}} {{Minimal|VerySmall|Small|Medium|High|VeryHigh|Original}} {{[-f|--file-to-save]}} {{path/to/results.txt}}` + +- Display help: + +`czkawka_cli {{[-h|--help]}}` diff --git a/tldr/deepseek b/tldr/deepseek new file mode 100644 index 00000000..6893903e --- /dev/null +++ b/tldr/deepseek @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# deepseek + +> An AI coding assistant using DeepSeek Coder models. +> More information: . + +- Start interactive mode: + +`deepseek` + +- Run a single prompt: + +`deepseek chat "{{write a Python function for binary search}}"` + +- Start interactive mode with a specific model: + +`deepseek --model {{deepseek-coder:6.7b}}` + +- Set up the local environment (Ollama): + +`deepseek setup` + +- Force the CLI to use local mode: + +`deepseek --local` + +- Show help information: + +`deepseek --help` diff --git a/tldr/expo b/tldr/expo new file mode 100644 index 00000000..ee73852f --- /dev/null +++ b/tldr/expo @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# expo + +> Build, develop, and deploy React Native apps. +> More information: . + +- Build an Android APK or AAB: + +`expo build:android` + +- Build an iOS IPA: + +`expo build:ios` + +- Run the app in Expo Go: + +`expo start` + +- Install a dependency: + +`expo install ` + +- Prebuild native Android/iOS projects: + +`expo prebuild` + +- Run the app on Android: + +`expo run:android` + +- Run the app on iOS: + +`expo run:ios` diff --git a/tldr/linux/apt-get b/tldr/linux/apt-get index 82ae1c8b..97a6b315 100644 --- a/tldr/linux/apt-get +++ b/tldr/linux/apt-get @@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git - Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded: -`apt-get autoclean` +`sudo apt-get autoclean` - Remove all packages that are no longer needed: diff --git a/tldr/linux/cephadm b/tldr/linux/cephadm new file mode 100644 index 00000000..6c3d3cfc --- /dev/null +++ b/tldr/linux/cephadm @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# cephadm + +> Deploy and manage a Ceph cluster using containers. +> Part of the Ceph orchestrator framework. +> More information: . + +- Bootstrap a new Ceph cluster on the current host: + +`sudo cephadm bootstrap --mon-ip {{monitor_ip}}` + +- Add a new host to the cluster: + +`sudo cephadm add-host {{hostname}} {{ip_address}}` + +- Deploy a specific service (e.g., mgr, mon, osd): + +`sudo cephadm deploy {{service_type}} --name {{service_name}}` + +- Check the status of cluster services: + +`sudo cephadm shell -- ceph {{[-s|--status]}}` + +- Enter a shell environment inside the Ceph container: + +`sudo cephadm shell` + +- Remove a service from the cluster: + +`sudo cephadm rm-service {{service_type}} --name {{service_name}}` diff --git a/tldr/linux/koji b/tldr/linux/koji index 7e3bcc56..07c0de9c 100644 --- a/tldr/linux/koji +++ b/tldr/linux/koji @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # koji > Interact with kojihub. +> Some subcommands such as `build`, `tag-build`, `download-build`, `buildinfo`, `call`, etc. have their own usage documentation. > More information: . - Execute a koji subcommand: @@ -18,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Display help about global options: -`koji --help` +`koji {{[-h|--help]}}` - Display help to get all available commands: @@ -26,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Display help for a specific subcommand (like `build`, `tag-build`, `download-build`, `buildinfo`,`call`, etc.): -`koji {{subcommand}} --help` +`koji {{subcommand}} {{[-h|--help]}}` - Display version: diff --git a/tldr/linux/koji-build b/tldr/linux/koji-build index 38ab5e63..aa4997c0 100644 --- a/tldr/linux/koji-build +++ b/tldr/linux/koji-build @@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji build --help` +`koji build {{[-h|--help]}}` diff --git a/tldr/linux/koji-buildinfo b/tldr/linux/koji-buildinfo index ffcdbb80..9f10a736 100644 --- a/tldr/linux/koji-buildinfo +++ b/tldr/linux/koji-buildinfo @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji buildinfo --help` +`koji buildinfo {{-h|--help}}` diff --git a/tldr/linux/koji-call b/tldr/linux/koji-call index d83fde91..b67574b7 100644 --- a/tldr/linux/koji-call +++ b/tldr/linux/koji-call @@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji call --help` +`koji call {{[-h|--help]}}` diff --git a/tldr/linux/koji-download-build b/tldr/linux/koji-download-build index c98b14fa..84112c54 100644 --- a/tldr/linux/koji-download-build +++ b/tldr/linux/koji-download-build @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji download-build --help` +`koji download-build {{[-h|--help]}}` diff --git a/tldr/linux/koji-help b/tldr/linux/koji-help index e23e157e..1a8a766e 100644 --- a/tldr/linux/koji-help +++ b/tldr/linux/koji-help @@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `koji help` -- Display help for specific subcommand (such as `build`, `call`, `cancel`, `tag-build`, etc.): +- Display help for specific category (Available categories are: admin, all, bind, build, download, info, misc, monitor, search): -`koji help {{subcommand}}` +`koji help {{category}}` - Display help: -`koji {{[-h|--help]}}` +`koji help {{[-h|--help]}}` diff --git a/tldr/linux/koji-tag-build b/tldr/linux/koji-tag-build index e9d9cd61..48549e26 100644 --- a/tldr/linux/koji-tag-build +++ b/tldr/linux/koji-tag-build @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji tag-build --help` +`koji tag-build {{[-h|--help]}}` diff --git a/tldr/linux/koji-taginfo b/tldr/linux/koji-taginfo index 42434399..348dfe91 100644 --- a/tldr/linux/koji-taginfo +++ b/tldr/linux/koji-taginfo @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji taginfo --help` +`koji taginfo {{[-h|--help]}}` diff --git a/tldr/linux/koji-untag-build b/tldr/linux/koji-untag-build index a48d5ef8..22f90dc9 100644 --- a/tldr/linux/koji-untag-build +++ b/tldr/linux/koji-untag-build @@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji untag-build --help` +`koji untag-build {{[-h|--help]}}` diff --git a/tldr/linux/systemctl-log-level b/tldr/linux/systemctl-log-level new file mode 100644 index 00000000..447bda85 --- /dev/null +++ b/tldr/linux/systemctl-log-level @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl log-level + +> Get or set the log level of the systemd manager. +> More information: . + +- Show the current log level of the systemd manager: + +`systemctl log-level` + +- Set the manager's log level: + +`systemctl log-level {{emerg|alert|crit|err|warning|notice|info|debug}}` diff --git a/tldr/linux/systemctl-log-target b/tldr/linux/systemctl-log-target new file mode 100644 index 00000000..7a5c1789 --- /dev/null +++ b/tldr/linux/systemctl-log-target @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl log-target + +> Get or set the log target for the systemd manager. +> More information: . + +- Show the current log target of the systemd manager: + +`systemctl log-target` + +- Set the manager's log target: + +`systemctl log-target {{journal-or-kmsg|journal|kmsg|console|syslog|null|auto}}` diff --git a/tldr/linux/systemctl-service-watchdogs b/tldr/linux/systemctl-service-watchdogs new file mode 100644 index 00000000..34cc9a70 --- /dev/null +++ b/tldr/linux/systemctl-service-watchdogs @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl service-watchdogs + +> Get or set the global state of service runtime watchdogs. +> More information: . + +- Show whether service watchdogs are currently enabled: + +`systemctl service-watchdogs` + +- Enable service runtime watchdogs: + +`systemctl service-watchdogs yes` + +- Disable service runtime watchdogs: + +`systemctl service-watchdogs no` diff --git a/tldr/linux/udiskie b/tldr/linux/udiskie new file mode 100644 index 00000000..e03067ec --- /dev/null +++ b/tldr/linux/udiskie @@ -0,0 +1,38 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# udiskie + +> A user-level automounter for removable media using udisks2. +> See also: `udiskie-mount`, `udiskie-umount`. +> More information: . + +- Start udiskie with tray icon and notifications: + +`udiskie --tray --notify` + +- Run udiskie without using a config file: + +`udiskie --no-config` + +- Specify a custom config file: + +`udiskie --config {{path/to/config.yml}}` + +- Use a custom password prompt command: + +`udiskie --password-prompt '{{command}}'` + +- Enable verbose output: + +`udiskie --verbose` + +- Display help: + +`udiskie --help` + +- Display version: + +`udiskie --version` diff --git a/tldr/linux/udiskie-dmenu b/tldr/linux/udiskie-dmenu new file mode 100644 index 00000000..60665842 --- /dev/null +++ b/tldr/linux/udiskie-dmenu @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# udiskie-dmenu + +> A dmenu/rofi-based frontend for udiskie to mount and unmount devices interactively. +> Requires udiskie and either dmenu or rofi. +> More information: . + +- Launch the menu to mount or unmount devices: + +`udiskie-dmenu` + +- Use rofi instead of dmenu: + +`udiskie-dmenu --rofi` + +- Display help: + +`udiskie-dmenu --help` diff --git a/tldr/linux/udiskie-mount b/tldr/linux/udiskie-mount new file mode 100644 index 00000000..b116fe46 --- /dev/null +++ b/tldr/linux/udiskie-mount @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# udiskie-mount + +> Manually mount devices using udiskie. +> See also: `udiskie`, `udiskie-umount`. +> More information: . + +- Mount all handleable devices: + +`udiskie-mount {{[-a|--all]}}` + +- Mount a specific device: + +`udiskie-mount {{/dev/sdX1}}` + +- Mount a device with verbose output: + +`udiskie-mount --verbose {{/dev/sdX1}}` + +- Display help: + +`udiskie-mount --help` diff --git a/tldr/linux/udiskie-umount b/tldr/linux/udiskie-umount new file mode 100644 index 00000000..6e039340 --- /dev/null +++ b/tldr/linux/udiskie-umount @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# udiskie-umount + +> Manually unmount devices using udiskie. +> See also: `udiskie`, `udiskie-mount`. +> More information: . + +- Unmount a mounted device: + +`udiskie-umount {{path/to/mount}}` + +- Unmount and power down a USB device: + +`udiskie-umount --detach {{path/to/mount}}` + +- Eject an optical drive: + +`udiskie-umount --eject {{path/to/mount}}` + +- Display help: + +`udiskie-umount --help` diff --git a/tldr/valkey-cli b/tldr/valkey-cli new file mode 100644 index 00000000..efdf0e83 --- /dev/null +++ b/tldr/valkey-cli @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# valkey-cli + +> Open a connection to a Valkey server. +> More information: . + +- Connect to the local server: + +`valkey-cli` + +- Connect to a remote server on the default port (6379): + +`valkey-cli -h {{host}}` + +- Connect to a remote server specifying a port number: + +`valkey-cli -h {{host}} -p {{port}}` + +- Connect to a remote server specifying a URI: + +`valkey-cli -u {{uri}}` + +- Specify a password: + +`valkey-cli -a {{password}}` + +- Execute valkey command: + +`valkey-cli {{valkey_command}}` + +- Connect to the local cluster: + +`valkey-cli -c`