Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-29 00:19:38 +00:00
parent 2c0f4bfdb2
commit 3ab49dcbfd
28 changed files with 111 additions and 41 deletions

View File

@@ -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}}`

33
tldr/cariddi Normal file
View File

@@ -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: <https://github.com/edoardottt/cariddi/wiki>.
- 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`

View File

@@ -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}}"`

View File

@@ -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}}"`

View File

@@ -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}}`

33
tldr/linux/xhost Normal file
View File

@@ -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: <https://manned.org/xhost>.
- 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}}`

View File

@@ -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: <https://nixos.org/manual/nix>.
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix>.
- Enable the `nix` command:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk
> The command line frontend of the Sailfish SDK.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Installation/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/module.adoc>.
- Execute a subcommand:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk apply
> Applies patches from RPM SPEC file.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Building_packages/#tar_git-package-source-code-location-in-git>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.apply.adoc>.
- Apply all patches:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk build-init
> Initializes build directory.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.build-init.adoc>.
- Initialize the current directory as the build directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk build-requires
> Updates build time dependencies.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.build-requires.adoc>.
- Run a subcommand refreshing the cache:

View File

@@ -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: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.build-shell.adoc>.
- Launch interactive shell in the build engine:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk check
> Performs quality checks.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#validating-package-contents>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.cmake.adoc>.
- Display test suites:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk cmake
> Executes cmake build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.cmake.adoc>.
- Run cmake:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk compiledb
> Generates compilation database.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#editing-code-without-sailfish-ide/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/70-ide-compiledb/doc/command.compiledb.adoc>.
- Generate compilation database:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk config
> Configures sfdk.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/command.config.adoc>.
- Show configuration in all scopes:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk deploy
> Deploys build results to a device.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Deploying_packages/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/50-testing-mb2/doc/command.deploy.adoc>.
- Deploy using a specified method (`pkcon`, `rsync`, `sdk`, `zypper`, `zypper-dup` or `manual`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk device
> Maintains and controls registered devices.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#running-the-sample-application-in-the-emulator>.
- Display the registered devices:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk emulator
> Maintains and controls emulators.
> More information: <https://docs.sailfishos.org/Develop/Apps/#emulator>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/40-testing-maintain/doc/command.emulator.adoc>.
- Display the installed emulators:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk emulator exec
> Execute a command on an emulator.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/FAQ/#emulator>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/40-testing-maintain/doc/command.emulator.adoc>.
- Execute a command on an emulator:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk emulator set
> Sets emulator properties.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/FAQ/#what-are-the-compatibility-issues-with-sailfish-os-emulators-on-windows>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/40-testing-maintain/doc/command.emulator.adoc>.
- Set a property:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk engine
> Maintains and controls the build engine.
> More information: <https://docs.sailfishos.org/Develop/Apps/#sailfish-os-build-engine>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/30-building-maintain/doc/command.engine.adoc>.
- Start the build engine:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk init
> Initializes a new project.
> More information: <https://docs.sailfishos.org/Reference/I18n/Application_Configuration/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/15-building-init/doc/command.init.adoc>.
- Initialize a new project of the given type:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk make
> Executes make build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.make.adoc>.
- Run make build:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk package
> Executes package creation build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.package.adoc>.
- Create a package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk prepare
> Executes preparation build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.prepare.adoc>.
- Prepare sources using the recipe from RPM SPEC file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk qmake
> Executes qmake build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.qmake.adoc>.
- Run qmake build:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sfdk undeploy
> Undeploys build results from a device.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Deploying_packages/>.
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/50-testing-mb2/doc/command.undeploy.adoc>.
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):