mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 15:45:21 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/dunst
Normal file
26
tldr/dunst
Normal file
@@ -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: <https://dunst-project.org/documentation/dunst>.
|
||||
|
||||
- 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}}`
|
||||
21
tldr/elasticsearch-reset-password
Normal file
21
tldr/elasticsearch-reset-password
Normal file
@@ -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: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/reset-password>.
|
||||
|
||||
- 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]}}`
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
30
tldr/windows/vol.py
Normal file
30
tldr/windows/vol.py
Normal file
@@ -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: <https://volatility3.readthedocs.io/en/latest/index.html>.
|
||||
|
||||
- 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]}}`
|
||||
Reference in New Issue
Block a user