Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-02 00:21:21 +00:00
parent 856ab03c8f
commit dfdf48edee
13 changed files with 51 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> DNS client for Humans.
> Written in Golang.
> More information: <https://doggo.mrkaran.dev/docs/guide/reference/>.
> More information: <https://github.com/mr-karan/doggo/blob/main/docs/src/content/docs/guide/reference.md>.
- Perform a simple DNS lookup:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Interactive Ruby shell.
> Evaluate Ruby code read from `stdin`.
> More information: <https://docs.ruby-lang.org/en/master/IRB.html>.
> More information: <https://ruby.github.io/irb/>.
- Start the interactive shell:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Boot and upgrade via container images.
> Manages transactional, in-place operating system updates using OCI/Docker container images.
> More information: <https://containers.github.io/bootc/>.
> More information: <https://manned.org/bootc.8>.
- Show deployments in the order they will appear in the bootloader:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bootc switch
> Target a new container image reference to boot.
> More information: <https://containers.github.io/bootc/man/bootc-switch.html>.
> More information: <https://manned.org/bootc-switch.8>.
- Change the base OS to a new container image from a registry:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> A convenient tool to show running processes as a tree.
> More information: <https://manned.org/pstree>.
- Display a tree of processes:
- Display a tree of all processes (rooted at init):
`pstree`
@@ -19,3 +19,15 @@ source: https://github.com/tldr-pages/tldr.git
- Display all process trees rooted at processes owned by specified user:
`pstree {{user}}`
- Display command line arguments:
`pstree {{[-a|--arguments]}}`
- Display children of a specified process:
`pstree {{pid}}`
- Display parents of a specified process:
`pstree {{[-s|--show-parents]}} {{pid}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# yay
> Yet Another Yogurt: build and install packages from the Arch User Repository.
> Also see `pacman`.
> See also: `pacman`.
> More information: <https://github.com/Jguer/yay>.
- Interactively search and install packages from the repos and AUR:

23
tldr/mdk4 Normal file
View File

@@ -0,0 +1,23 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# mdk4
> A proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses.
> Note: Exercise extreme caution as this tool can disrupt WiFi networks and disconnect nearby users.
> See also: `airodump-ng`, `airmon-ng`.
> More information: <https://github.com/aircrack-ng/mdk4>.
- Flood access points with beacon frames to create fake networks (set interface to monitor mode with `sudo airmon-ng start <wifi_interface>` if needed):
`sudo mdk4 {{wifi_interface}} b -f {{path/to/beacons.txt}}`
- Perform deauthentication attack against all clients on all BSSIDs:
`sudo mdk4 {{wifi_interface}} d`
- Perform deauthentication attack on a specific BSSID (list BSSIDs using `sudo airodump-ng <wifi_interface>`):
`sudo mdk4 {{wifi_interface}} d -B {{BSSID}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage and administer a Neo4j DBMS (Database Management System).
> See also: `cypher-shell`, `mysqld`.
> More information: <https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin/>.
> More information: <https://neo4j.com/docs/operations-manual/current/neo4j-admin-neo4j-cli/>.
- Start the DBMS:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bclm
> Set a custom charge limit on MacBooks.
> More information: <https://github.com/zackelia/bclme>.
> More information: <https://github.com/zackelia/bclm>.
- Set the charge limit to about 80% (for Intel machines, the battery charge level may be slightly lower than the set value):

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Assume that the tiles overlap horizontally and vertically by the specified amount:
`pamundice {{filename_%1d_%1a.ppm}} {{[-a|-across]}} {{x_value}} {{[-d|-down]}} {{y_value}} {{[-h|-hoverlap]}} {{value}} {{[-vo|-voverlap]}} {{value}} > {{path/to/output.ppm}}`
`pamundice {{filename_%1d_%1a.ppm}} {{[-a|-across]}} {{x_value}} {{[-d|-down]}} {{y_value}} {{[-ho|-hoverlap]}} {{value}} {{[-vo|-voverlap]}} {{value}} > {{path/to/output.ppm}}`
- Specify the images to be combined through a text file containing one filename per line:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rlwrap
> Add line editing, persistent history and prompt completion to a REPL command.
> More information: <https://github.com/hanslub42/rlwrap>.
> More information: <https://manned.org/rlwrap>.
- Run a REPL command with line editing, persistent history and prompt completion:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Use all words seen on input and output for prompt completion:
`rlwrap --remember {{command}}`
`rlwrap {{[-r|--remember]}} {{command}}`
- Better prompt completion if prompts contain ANSI colour codes:
`rlwrap --ansi-colour-aware {{command}}`
`rlwrap {{[-A|--ansi-colour-aware]}} {{command}}`
- Enable filename completion (case sensitive):
`rlwrap --complete-filenames {{command}}`
`rlwrap {{[-c|--complete-filenames]}} {{command}}`
- Add coloured prompts, use colour name, or an ASCI-conformant colour specification. Use an uppercase colour name for bold styling:
`rlwrap --prompt-colour={{black|red|green|yellow|blue|cyan|purple|white|colour_spec}} {{command}}`
`rlwrap {{[-p|--prompt-colour=]}}{{black|red|green|yellow|blue|cyan|purple|white|colour_spec}} {{command}}`

View File

@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Empty the file's content, but do not create the file if it does not exist:
`truncate {{[-c|--no-create]}} {{[-s|--size]}} 0 {{path/to/file}}`
`truncate {{[-cs|--no-create --size]}} 0 {{path/to/file}}`

View File

@@ -12,10 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
`yapf {{[-d|--diff]}} {{path/to/file}}`
- Format the file in-place and display a diff of the changes:
`yapf {{[-d|--diff]}} {{[-i|--in-place]}} {{path/to/file}}`
- Recursively format all Python files in a directory, concurrently:
`yapf {{[-r|--recursive]}} {{[-i|--in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}`
`yapf {{[-ri|--recursive --in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}`