From 41718ee5b477cbbe390395770b59d50bfe2b3b6c Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 22 May 2025 00:20:00 +0000 Subject: [PATCH] Update cheatsheets --- tldr/dunst | 26 ++++++++++++++++++++++++++ tldr/elasticsearch-reset-password | 21 +++++++++++++++++++++ tldr/linux/xbps-install | 2 +- tldr/linux/xbps-query | 10 +++++----- tldr/linux/xbps-remove | 6 +++--- tldr/windows/vol.py | 30 ++++++++++++++++++++++++++++++ 6 files changed, 86 insertions(+), 9 deletions(-) create mode 100644 tldr/dunst create mode 100644 tldr/elasticsearch-reset-password create mode 100644 tldr/windows/vol.py diff --git a/tldr/dunst b/tldr/dunst new file mode 100644 index 00000000..455f99e8 --- /dev/null +++ b/tldr/dunst @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dunst + +> A lightweight and customizable notification daemon for X11 and Wayland. +> If not started manually, D-Bus will automatically start `dunst` when a notification is sent. +> More information: . + +- Start `dunst`: + +`dunst` + +- Display a notification on startup: + +`dunst -startup_notification` + +- Print coming notifications to `stdout`: + +`dunst -print` + +- Use the specified configuration file (default: `$XDG_CONFIG_HOME/dunst/dunstrc`): + +`dunst -config {{path/to/file}}` diff --git a/tldr/elasticsearch-reset-password b/tldr/elasticsearch-reset-password new file mode 100644 index 00000000..b3a1b174 --- /dev/null +++ b/tldr/elasticsearch-reset-password @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# elasticsearch-reset-password + +> Reset the passwords of users in the native realm and built-in users. +> More information: . + +- Reset the password of the user to an auto-generated value and print it in the console: + +`elasticsearch-reset-password {{[-u|--username]}} {{user}}` + +- Prompt interactively to reset the password for a native user: + +`elasticsearch-reset-password {{[-u|--username]}} {{user}} {{[-i|--interactive]}}` + +- Interactively reset the password for a user at a specified Elasticsearch node URL: + +`elasticsearch-reset-password --url {{host}}:{{port}} {{[-u|--username]}} {{user}} {{[-i|--interactive]}}` diff --git a/tldr/linux/xbps-install b/tldr/linux/xbps-install index dcc6c1d1..cc61824d 100644 --- a/tldr/linux/xbps-install +++ b/tldr/linux/xbps-install @@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git - Synchronize and update all packages: -`xbps-install --sync --update` +`xbps-install {{[-S|--sync]}} {{[-u|--update]}}` diff --git a/tldr/linux/xbps-query b/tldr/linux/xbps-query index fae19291..14d05e9d 100644 --- a/tldr/linux/xbps-query +++ b/tldr/linux/xbps-query @@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git - Search for a package in remote repositories using a regular expression or a keyword (if `--regex` is omitted): -`xbps-query --search {{regular_expression|keyword}} --repository --regex` +`xbps-query {{[-s|--search]}} {{regular_expression|keyword}} --repository --regex` - Show information about an installed package: -`xbps-query --show {{package}}` +`xbps-query {{[-S|--show]}} {{package}}` - Show information about a package in remote repositories: -`xbps-query --show {{package}} --repository` +`xbps-query {{[-S|--show]}} {{package}} --repository` - List packages registered in the package database: -`xbps-query --list-pkgs` +`xbps-query {{[-l|--list-pkgs]}}` - List explicitly installed packages (i.e. not automatically installed as dependencies): -`xbps-query --list-manual-pkgs` +`xbps-query {{[-m|--list-manual-pkgs]}}` diff --git a/tldr/linux/xbps-remove b/tldr/linux/xbps-remove index ed9f40bf..53bbac26 100644 --- a/tldr/linux/xbps-remove +++ b/tldr/linux/xbps-remove @@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git - Remove a package and its dependencies: -`xbps-remove --recursive {{package}}` +`xbps-remove {{[-R|--recursive]}} {{package}}` - Remove orphan packages (installed as dependencies but no longer required by any package): -`xbps-remove --remove-orphans` +`xbps-remove {{[-o|--remove-orphans]}}` - Remove obsolete packages from the cache: -`xbps-remove --clean-cache` +`xbps-remove {{[-O|--clean-cache]}}` diff --git a/tldr/windows/vol.py b/tldr/windows/vol.py new file mode 100644 index 00000000..42f0222a --- /dev/null +++ b/tldr/windows/vol.py @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# vol.py + +> Forensics framework used to analyze volatile memory (RAM) dumps. +> With volatility3, plugins are now based on operating system. Examples below will use Windows. +> More information: . + +- Get information about a memory dump file: + +`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.info` + +- List active processes: + +`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.pslist` + +- List hashes of users on system: + +`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.hashdump` + +- List active network connections: + +`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.netstat` + +- Display help: + +`python3 vol.py {{[-h|--help]}}`