From 3ab49dcbfd8f02842e5d2956ad999d70b253003b Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 29 Apr 2025 00:19:38 +0000 Subject: [PATCH] Update cheatsheets --- tldr/ascii-image-converter | 6 +++++- tldr/cariddi | 33 +++++++++++++++++++++++++++++++++ tldr/linux/kpackagetool5 | 8 ++++---- tldr/linux/kpackagetool6 | 8 ++++---- tldr/linux/mkinitcpio | 20 ++++++++++---------- tldr/linux/xhost | 33 +++++++++++++++++++++++++++++++++ tldr/nix | 2 +- tldr/sfdk | 2 +- tldr/sfdk-apply | 2 +- tldr/sfdk-build-init | 2 +- tldr/sfdk-build-requires | 2 +- tldr/sfdk-build-shell | 2 +- tldr/sfdk-check | 2 +- tldr/sfdk-cmake | 2 +- tldr/sfdk-compiledb | 2 +- tldr/sfdk-config | 2 +- tldr/sfdk-deploy | 2 +- tldr/sfdk-device | 2 +- tldr/sfdk-emulator | 2 +- tldr/sfdk-emulator-exec | 2 +- tldr/sfdk-emulator-set | 2 +- tldr/sfdk-engine | 2 +- tldr/sfdk-init | 2 +- tldr/sfdk-make | 2 +- tldr/sfdk-package | 2 +- tldr/sfdk-prepare | 2 +- tldr/sfdk-qmake | 2 +- tldr/sfdk-undeploy | 2 +- 28 files changed, 111 insertions(+), 41 deletions(-) create mode 100644 tldr/cariddi create mode 100644 tldr/linux/xhost diff --git a/tldr/ascii-image-converter b/tldr/ascii-image-converter index 23427fde..bb1ee48f 100644 --- a/tldr/ascii-image-converter +++ b/tldr/ascii-image-converter @@ -16,10 +16,14 @@ source: https://github.com/tldr-pages/tldr.git `ascii-image-converter {{[-C|--color]}} {{path/to/image|URL}}` -- Create a tresholded image using braille: +- Create a tresholded image using braille (if the image is barely visible, try changing the terminal font): `ascii-image-converter {{[-b|--braille]}} {{path/to/image|URL}}` +- Create a dithered image using braille (if the image is barely visible, try changing the terminal font): + +`ascii-image-converter {{[-b|--braille]}} --dither {{path/to/image|URL}}` + - Display the image with negative colors: `ascii-image-converter {{[-Cn|--color --negative]}} {{path/to/image|URL}}` diff --git a/tldr/cariddi b/tldr/cariddi new file mode 100644 index 00000000..bc4903b2 --- /dev/null +++ b/tldr/cariddi @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cariddi + +> Crawl URLs and scan for endpoints, secrets, api keys, file extensions, tokens, and more from a list of domains. +> More information: . + +- Hunt for secrets using custom regexes and output results in JSON: + +`cat {{path/to/urls.txt}} | cariddi -s -sf {{path/to/custom_secrets.txt}} -json` + +- Hunt for juicy endpoints with high concurrency and timeout with plain output results: + +`cat {{path/to/urls.txt}} | cariddi -e -c {{250}} -t {{15}} -plain` + +- Crawl with debug mode and store HTTP responses and output results in `txt` file: + +`cat {{path/to/urls.txt}} | cariddi -debug -sr -ot {{path/to/debug_output.txt}}` + +- Perform an intensive crawl with a proxy and random user agent and output results in `html` file: + +`cat {{path/to/urls.txt}} | cariddi -intensive -proxy {{http://127.0.0.1:8080}} -rua -oh {{path/to/intensive_crawl.html}}` + +- Hunt for errors and useful information with a custom delay and use `.cariddi_cache` folder as cache: + +`cat {{path/to/urls.txt}} | cariddi -err -info -d {{3}} -cache` + +- Show example uses: + +`cariddi -examples` diff --git a/tldr/linux/kpackagetool5 b/tldr/linux/kpackagetool5 index 2aeb1cc0..36a14b9e 100644 --- a/tldr/linux/kpackagetool5 +++ b/tldr/linux/kpackagetool5 @@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git - Install the package from a directory: -`kpackagetool5 --type {{package_type}} --install {{path/to/directory}}` +`kpackagetool5 {{[-t|--type]}} {{package_type}} {{[-i|--install]}} {{path/to/directory}}` - Update installed package from a directory: -`kpackagetool5 --type {{package_type}} --upgrade {{path/to/directory}}` +`kpackagetool5 {{[-t|--type]}} {{package_type}} {{[-u|--upgrade]}} {{path/to/directory}}` - List installed plasmoids (`--global` for all users): -`kpackagetool5 --type Plasma/Applet --list --global` +`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-l|--list]}} {{[-g|--global]}}` - Remove a plasmoid by name: -`kpackagetool5 --type Plasma/Applet --remove "{{name}}"` +`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-r|--remove]}} "{{name}}"` diff --git a/tldr/linux/kpackagetool6 b/tldr/linux/kpackagetool6 index 6849ccd0..3619f962 100644 --- a/tldr/linux/kpackagetool6 +++ b/tldr/linux/kpackagetool6 @@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git - Install the package from a directory: -`kpackagetool6 --type {{package_type}} --install {{path/to/directory}}` +`kpackagetool6 {{[-t|--type]}} {{package_type}} {{[-i|--install]}} {{path/to/directory}}` - Update installed package from a directory: -`kpackagetool6 --type {{package_type}} --upgrade {{path/to/directory}}` +`kpackagetool6 {{[-t|--type]}} {{package_type}} {{[-u|--upgrade]}} {{path/to/directory}}` - List installed plasmoids (`--global` for all users): -`kpackagetool6 --type Plasma/Applet --list --global` +`kpackagetool6 {{[-t|--type]}} Plasma/Applet {{[-l|--list]}} {{[-g|--global]}}` - Remove a plasmoid by name: -`kpackagetool6 --type Plasma/Applet --remove "{{name}}"` +`kpackagetool6 {{[-t|--type]}} Plasma/Applet {{[-r|--remove]}} "{{name}}"` diff --git a/tldr/linux/mkinitcpio b/tldr/linux/mkinitcpio index ac70ad56..74ef46c3 100644 --- a/tldr/linux/mkinitcpio +++ b/tldr/linux/mkinitcpio @@ -12,30 +12,30 @@ source: https://github.com/tldr-pages/tldr.git `mkinitcpio` +- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`): + +`sudo mkinitcpio {{[-P|--allpresets]}}` + - Generate a ramdisk environment based on the `linux` preset: -`mkinitcpio --preset {{linux}}` +`sudo mkinitcpio {{[-p|--preset]}} {{linux}}` - Generate a ramdisk environment based on the `linux-lts` preset: -`mkinitcpio --preset {{linux-lts}}` - -- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`): - -`mkinitcpio --allpresets` +`sudo mkinitcpio {{[-p|--preset]}} {{linux-lts}}` - Generate an initramfs image using an alternative configuration file: -`mkinitcpio --config {{path/to/mkinitcpio.conf}} --generate {{path/to/initramfs.img}}` +`sudo mkinitcpio {{[-c|--config]}} {{path/to/mkinitcpio.conf}} {{[-g|--generate]}} {{path/to/initramfs.img}}` - Generate an initramfs image for a kernel other than the one currently running (the installed kernel releases can be found in `/usr/lib/modules/`): -`mkinitcpio --kernel {{kernel_version}} --generate {{path/to/initramfs.img}}` +`sudo mkinitcpio {{[-k|--kernel]}} {{kernel_version}} {{[-g|--generate]}} {{path/to/initramfs.img}}` - List all available hooks: -`mkinitcpio --listhooks` +`mkinitcpio {{[-L|--listhooks]}}` - Display help for a specific hook: -`mkinitcpio --hookhelp {{hook_name}}` +`mkinitcpio {{[-H|--hookhelp]}} {{hook_name}}` diff --git a/tldr/linux/xhost b/tldr/linux/xhost new file mode 100644 index 00000000..93e8bc8e --- /dev/null +++ b/tldr/linux/xhost @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# xhost + +> Manage access control lists for X server connections. +> More information: . + +- Display the current access control list: + +`xhost` + +- Allow a specific host to connect to the X server: + +`xhost +{{hostname}}` + +- Deny a specific host from connecting to the X server: + +`xhost -{{hostname}}` + +- Allow all hosts to connect (disable access control — insecure): + +`xhost +` + +- Deny all hosts except those explicitly allowed (enable access control): + +`xhost -` + +- Remove a specific user or address using a family prefix (like `inet:hostname` or `si:localuser:username`): + +`xhost -{{family:name}}` diff --git a/tldr/nix b/tldr/nix index f6e15fa1..8f99754f 100644 --- a/tldr/nix +++ b/tldr/nix @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > A powerful package manager that makes package management reliable, reproducible, and declarative. > `nix` is experimental and requires enabling experimental features. For a classic, stable interface, see `tldr nix classic`. > Some subcommands such as `build`, `develop`, `flake`, `registry`, `profile`, `search`, `repl`, `store`, `edit`, `why-depends`, etc. have their own usage documentation. -> More information: . +> More information: . - Enable the `nix` command: diff --git a/tldr/sfdk b/tldr/sfdk index af33b315..52a34935 100644 --- a/tldr/sfdk +++ b/tldr/sfdk @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk > The command line frontend of the Sailfish SDK. -> More information: . +> More information: . - Execute a subcommand: diff --git a/tldr/sfdk-apply b/tldr/sfdk-apply index 0f2e8bb8..143a1cad 100644 --- a/tldr/sfdk-apply +++ b/tldr/sfdk-apply @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk apply > Applies patches from RPM SPEC file. -> More information: . +> More information: . - Apply all patches: diff --git a/tldr/sfdk-build-init b/tldr/sfdk-build-init index e11eaac9..7ac19ab1 100644 --- a/tldr/sfdk-build-init +++ b/tldr/sfdk-build-init @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk build-init > Initializes build directory. -> More information: . +> More information: . - Initialize the current directory as the build directory: diff --git a/tldr/sfdk-build-requires b/tldr/sfdk-build-requires index 5e69ddbc..ec75d0af 100644 --- a/tldr/sfdk-build-requires +++ b/tldr/sfdk-build-requires @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk build-requires > Updates build time dependencies. -> More information: . +> More information: . - Run a subcommand refreshing the cache: diff --git a/tldr/sfdk-build-shell b/tldr/sfdk-build-shell index 1b157cd4..80de5eaf 100644 --- a/tldr/sfdk-build-shell +++ b/tldr/sfdk-build-shell @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Executes custom steps in build engine. > See also: `sfdk config` for configuring the build target and `sfdk build-init` for initializing build tree. -> More information: . +> More information: . - Launch interactive shell in the build engine: diff --git a/tldr/sfdk-check b/tldr/sfdk-check index 28772d72..c98478db 100644 --- a/tldr/sfdk-check +++ b/tldr/sfdk-check @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk check > Performs quality checks. -> More information: . +> More information: . - Display test suites: diff --git a/tldr/sfdk-cmake b/tldr/sfdk-cmake index ef1a9347..42d53a58 100644 --- a/tldr/sfdk-cmake +++ b/tldr/sfdk-cmake @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk cmake > Executes cmake build step. -> More information: . +> More information: . - Run cmake: diff --git a/tldr/sfdk-compiledb b/tldr/sfdk-compiledb index 890b3b4b..9a2acca0 100644 --- a/tldr/sfdk-compiledb +++ b/tldr/sfdk-compiledb @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk compiledb > Generates compilation database. -> More information: . +> More information: . - Generate compilation database: diff --git a/tldr/sfdk-config b/tldr/sfdk-config index 1191996c..8e3149df 100644 --- a/tldr/sfdk-config +++ b/tldr/sfdk-config @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk config > Configures sfdk. -> More information: . +> More information: . - Show configuration in all scopes: diff --git a/tldr/sfdk-deploy b/tldr/sfdk-deploy index 8f4aa6c1..07c9fc98 100644 --- a/tldr/sfdk-deploy +++ b/tldr/sfdk-deploy @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk deploy > Deploys build results to a device. -> More information: . +> More information: . - Deploy using a specified method (`pkcon`, `rsync`, `sdk`, `zypper`, `zypper-dup` or `manual`): diff --git a/tldr/sfdk-device b/tldr/sfdk-device index b69afc49..032d11e2 100644 --- a/tldr/sfdk-device +++ b/tldr/sfdk-device @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk device > Maintains and controls registered devices. -> More information: . +> More information: . - Display the registered devices: diff --git a/tldr/sfdk-emulator b/tldr/sfdk-emulator index 74d7145b..8baebf72 100644 --- a/tldr/sfdk-emulator +++ b/tldr/sfdk-emulator @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk emulator > Maintains and controls emulators. -> More information: . +> More information: . - Display the installed emulators: diff --git a/tldr/sfdk-emulator-exec b/tldr/sfdk-emulator-exec index d7cc58dd..8c1ac678 100644 --- a/tldr/sfdk-emulator-exec +++ b/tldr/sfdk-emulator-exec @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk emulator exec > Execute a command on an emulator. -> More information: . +> More information: . - Execute a command on an emulator: diff --git a/tldr/sfdk-emulator-set b/tldr/sfdk-emulator-set index f7ff7356..d74a9b68 100644 --- a/tldr/sfdk-emulator-set +++ b/tldr/sfdk-emulator-set @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk emulator set > Sets emulator properties. -> More information: . +> More information: . - Set a property: diff --git a/tldr/sfdk-engine b/tldr/sfdk-engine index 8eb2516a..26bedbbe 100644 --- a/tldr/sfdk-engine +++ b/tldr/sfdk-engine @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk engine > Maintains and controls the build engine. -> More information: . +> More information: . - Start the build engine: diff --git a/tldr/sfdk-init b/tldr/sfdk-init index d717312b..589799da 100644 --- a/tldr/sfdk-init +++ b/tldr/sfdk-init @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk init > Initializes a new project. -> More information: . +> More information: . - Initialize a new project of the given type: diff --git a/tldr/sfdk-make b/tldr/sfdk-make index e8d03ce8..d29de5dd 100644 --- a/tldr/sfdk-make +++ b/tldr/sfdk-make @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk make > Executes make build step. -> More information: . +> More information: . - Run make build: diff --git a/tldr/sfdk-package b/tldr/sfdk-package index d578c6d8..15010a99 100644 --- a/tldr/sfdk-package +++ b/tldr/sfdk-package @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk package > Executes package creation build step. -> More information: . +> More information: . - Create a package: diff --git a/tldr/sfdk-prepare b/tldr/sfdk-prepare index 90eb4d43..e6802cf3 100644 --- a/tldr/sfdk-prepare +++ b/tldr/sfdk-prepare @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk prepare > Executes preparation build step. -> More information: . +> More information: . - Prepare sources using the recipe from RPM SPEC file: diff --git a/tldr/sfdk-qmake b/tldr/sfdk-qmake index d8477a20..6345221e 100644 --- a/tldr/sfdk-qmake +++ b/tldr/sfdk-qmake @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk qmake > Executes qmake build step. -> More information: . +> More information: . - Run qmake build: diff --git a/tldr/sfdk-undeploy b/tldr/sfdk-undeploy index 4c661f7b..3bd7a125 100644 --- a/tldr/sfdk-undeploy +++ b/tldr/sfdk-undeploy @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sfdk undeploy > Undeploys build results from a device. -> More information: . +> More information: . - Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):