mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 22:02:25 +00:00
Update cheatsheets
This commit is contained in:
17
tldr/ges-launch-1.0
Normal file
17
tldr/ges-launch-1.0
Normal 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
12
tldr/impacket-reg
Normal 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`
|
||||
@@ -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}}"`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
17
tldr/linux/v4l2loopback-ctl
Normal file
17
tldr/linux/v4l2loopback-ctl
Normal 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`
|
||||
@@ -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`
|
||||
|
||||
@@ -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
34
tldr/reg.py
Normal 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
21
tldr/testparm
Normal 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]}}`
|
||||
Reference in New Issue
Block a user