diff --git a/tldr/ges-launch-1.0 b/tldr/ges-launch-1.0 new file mode 100644 index 00000000..eb6e5c8f --- /dev/null +++ b/tldr/ges-launch-1.0 @@ -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: . + +- View two clips in sequence: + +`ges-launch-1.0 +clip {{path/to/file1}} +clip {{path/to/file2}}` + +- View interactive controls: + +`` diff --git a/tldr/impacket-reg b/tldr/impacket-reg new file mode 100644 index 00000000..a52bc6e9 --- /dev/null +++ b/tldr/impacket-reg @@ -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` diff --git a/tldr/linux/hyprpaper b/tldr/linux/hyprpaper index 5b97b409..9302daf0 100644 --- a/tldr/linux/hyprpaper +++ b/tldr/linux/hyprpaper @@ -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: . +> More information: . -- 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}}"` diff --git a/tldr/linux/ip-link b/tldr/linux/ip-link index 7d8c6be4..f12aa9bf 100644 --- a/tldr/linux/ip-link +++ b/tldr/linux/ip-link @@ -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}}` diff --git a/tldr/linux/pdbedit b/tldr/linux/pdbedit index 78b7415b..9be7a568 100644 --- a/tldr/linux/pdbedit +++ b/tldr/linux/pdbedit @@ -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: . -- 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]}}` diff --git a/tldr/linux/v4l2loopback-ctl b/tldr/linux/v4l2loopback-ctl new file mode 100644 index 00000000..2d50de07 --- /dev/null +++ b/tldr/linux/v4l2loopback-ctl @@ -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: . + +- List all available loopback devices: + +`sudo v4l2loopback-ctl list` + +- Add a loopback device: + +`sudo v4l2loopback-ctl add` diff --git a/tldr/m4b-tool b/tldr/m4b-tool index aba02f6c..3bd947fd 100644 --- a/tldr/m4b-tool +++ b/tldr/m4b-tool @@ -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` diff --git a/tldr/pgrep b/tldr/pgrep index a9f1af74..fc1c45c0 100644 --- a/tldr/pgrep +++ b/tldr/pgrep @@ -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}}"` diff --git a/tldr/reg.py b/tldr/reg.py new file mode 100644 index 00000000..9f917a23 --- /dev/null +++ b/tldr/reg.py @@ -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: . + +- 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}}'` diff --git a/tldr/testparm b/tldr/testparm new file mode 100644 index 00000000..7e594594 --- /dev/null +++ b/tldr/testparm @@ -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: . + +- Check `/etc/samba/smb.conf` for correctness: + +`testparm` + +- Check a specific configuration file for correctness: + +`testparm {{path/to/file}}` + +- Display help: + +`testparm {{[-?|--help]}}` diff --git a/tldr/zed b/tldr/zed index b662dbbe..b1d0890a 100644 --- a/tldr/zed +++ b/tldr/zed @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # zed > Text editor designed to be fast, efficient, and convenient. -> More information: . +> More information: . - Open specific paths in Zed: