Update cheatsheets

This commit is contained in:
ivuorinen
2026-03-21 00:26:22 +00:00
parent 51e1b58889
commit 49187d6be0
11 changed files with 138 additions and 25 deletions

17
tldr/ges-launch-1.0 Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ges-launch-1.0
> Create and render multimedia timelines.
> More information: <https://gstreamer.freedesktop.org/documentation/tools/ges-launch.html>.
- View two clips in sequence:
`ges-launch-1.0 +clip {{path/to/file1}} +clip {{path/to/file2}}`
- View interactive controls:
`<k>`

12
tldr/impacket-reg Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# impacket-reg
> This command is an alias of `reg.py`.
- View documentation for the original command:
`tldr reg.py`

View File

@@ -7,28 +7,16 @@ source: https://github.com/tldr-pages/tldr.git
> Wallpaper utility for Hyprland with the ability to dynamically change wallpapers.
> Controlled by the config file `~/.config/hypr/hyprpaper.conf`.
> More information: <https://github.com/hyprwm/hyprpaper>.
> More information: <https://wiki.hypr.land/Hypr-Ecosystem/hyprpaper/>.
- Start the hyprpaper service:
- Start the `hyprpaper` daemon:
`hyprpaper`
- Preload a wallpaper:
`hyprctl hyprpaper preload "{{path/to/image.png}}"`
- Switch wallpaper to a different preloaded image:
- Change the wallpaper for a specific monitor:
`hyprctl hyprpaper wallpaper "{{monitor}},{{path/to/image.png}}"`
- Preload a wallpaper, set that wallpaper, then unload all unused wallpapers:
- Change the default wallpaper for all unspecified monitors and set its fit mode:
`hyprctl hyprpaper reload "{{monitor}},{{path/to/image.png}}"`
- List the wallpapers that are currently preloaded (useful for dynamically preloading and unloading):
`hyprctl hyprpaper listloaded`
- List the active wallpapers hyprpaper is displaying, along with their associated monitor:
`hyprctl hyprpaper listactive`
`hyprctl hyprpaper wallpaper ",{{path/to/image.png}},{{contain|cover|tile|fill}}"`

View File

@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set the promisc mode status of a device:
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} promisc {{on|off}}`
- Delete a device:
`sudo ip {{[l|link]}} {{[d|delete]}} {{ethX}}`

View File

@@ -9,18 +9,22 @@ source: https://github.com/tldr-pages/tldr.git
> For simple user add/remove/password, you can also use `smbpasswd`.
> More information: <https://manned.org/pdbedit>.
- List all Samba users (use verbose flag to show their settings):
- List all Samba users:
`sudo pdbedit --list --verbose`
`sudo pdbedit {{[-L|--list]}}`
- List all Samba users and their settings:
`sudo pdbedit {{[-L|--list]}} {{[-v|--verbose]}}`
- Add an existing Unix user to Samba (will prompt for password):
`sudo pdbedit --user {{username}} --create`
`sudo pdbedit {{[-u|--user]}} {{username}} {{[-a|--create]}}`
- Remove a Samba user:
`sudo pdbedit --user {{username}} --delete`
`sudo pdbedit {{[-u|--user]}} {{username}} {{[-x|--delete]}}`
- Reset a Samba user's failed password counter:
`sudo pdbedit --user {{username}} --bad-password-count-reset`
`sudo pdbedit {{[-u|--user]}} {{username}} {{[-z|--bad-password-count-reset]}}`

View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# v4l2loopback-ctl
> Control Video4Linux2 loopback devices.
> More information: <https://manned.org/v4l2loopback-ctl>.
- List all available loopback devices:
`sudo v4l2loopback-ctl list`
- Add a loopback device:
`sudo v4l2loopback-ctl add`

View File

@@ -10,8 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Create an audiobook with the audio files in the input directory:
`m4b-tool merge {{path/to/input_directory}} --output-file={{path/to/merged.m4b}}`
`m4b-tool merge {{path/to/input_directory}} {{[-o|--output-file]}}={{path/to/merged.m4b}}`
- Make chapters using the input files' names:
`m4b-tool merge {{path/to/input_directory}} --output-file={{path/to/merged.m4b}} --use-filenames-as-chapters`
`m4b-tool merge {{path/to/input_directory}} {{[-o|--output-file]}}={{path/to/merged.m4b}} --use-filenames-as-chapters`
- Split an audiobook into separate files by chapters:
`m4b-tool split {{path/to/audiobook.m4b}} {{[-o|--output-dir]}}={{path/to/output_directory}}`
- Split an audiobook into MP3 files:
`m4b-tool split {{path/to/audiobook.m4b}} --audio-format {{mp3}} {{[-o|--output-dir]}}={{path/to/output_directory}}`
- Adjust chapters using silence detection:
`m4b-tool chapters {{path/to/audiobook.m4b}} --adjust-by-silence`

View File

@@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
`pgrep {{process_name}}`
- Also display the full command:
`pgrep {{[-a|--list-full]}} {{process_name}}`
- Search for processes including their command-line options:
`pgrep {{[-f|--full]}} "{{process_name}} {{parameter}}"`

34
tldr/reg.py Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# reg.py
> Query, add, delete, save or backup registry keys/values on a remote Windows machine over SMB/RPC.
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Query subkeys and values under a registry path:
`reg.py {{domain}}/{{username}}:{{password}}@{{target}} query -keyName '{{HKLM\SOFTWARE\Microsoft\Windows}}'`
- Query all subkeys and values under a registry path recursively:
`reg.py {{domain}}/{{username}}:{{password}}@{{target}} query -keyName '{{HKLM\SOFTWARE\Microsoft\Windows}}' -s`
- Add a new registry key or value (default value type is `REG_SZ`):
`reg.py {{domain}}/{{username}}:{{password}}@{{target}} add -keyName '{{HKLM\SOFTWARE\Microsoft\Windows}}' -v {{value_name}} -vt {{REG_SZ|REG_NONE|REG_EXPAND_SZ|REG_BINARY|REG_DWORD|REG_DWORD_BIG_ENDIAN|REG_LINK|REG_MULTI_SZ|REG_QWORD}} -vd {{value_data}}`
- Delete a registry key or value:
`reg.py {{domain}}/{{username}}:{{password}}@{{target}} delete -keyName '{{HKLM\SOFTWARExample}}' -v {{value_name}}`
- Save a registry key (and subkeys) to a file on the target via UNC path:
`reg.py {{domain}}/{{username}}:{{password}}@{{target}} save -keyName '{{HKLM\SOFTWARExample}}' -o '\{{target}}\{{share}}\{{output_file.reg}}'`
- Backup SAM, SYSTEM and SECURITY hives to a file on a target via UNC path (requires SYSTEM privileges):
`reg.py {{domain}}/{{username}}:{{password}}@{{target}} backup -o '\{{target}}\{{share}}'`

21
tldr/testparm Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# testparm
> Check a Samba configuration file for internal correctness.
> More information: <https://manned.org/testparm>.
- Check `/etc/samba/smb.conf` for correctness:
`testparm`
- Check a specific configuration file for correctness:
`testparm {{path/to/file}}`
- Display help:
`testparm {{[-?|--help]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# zed
> Text editor designed to be fast, efficient, and convenient.
> More information: <https://zed.dev/docs/#cli>.
> More information: <https://zed.dev/docs/reference/cli>.
- Open specific paths in Zed: