From 9c64f72b0c2b7ef5f9968fb458757f228d5b6299 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 19 Oct 2025 00:22:04 +0000 Subject: [PATCH] Update cheatsheets --- tldr/aireplay-ng | 2 +- tldr/airmon-ng | 2 +- tldr/airodump-ng | 2 +- tldr/conda-config | 37 ++++++++++++++++++++++++++++ tldr/dos/cls | 13 ++++++++++ tldr/dos/path | 34 ++++++++++++++++++++++++++ tldr/linux/cliphist | 30 +++++++++++++++++++++++ tldr/linux/dnf-reposync | 35 +++++++++++++++++++++++++++ tldr/linux/limine | 34 ++++++++++++++++++++++++++ tldr/linux/limine-enroll-config | 22 +++++++++++++++++ tldr/linux/limine-entry-tool | 33 +++++++++++++++++++++++++ tldr/linux/limine-scan | 12 ++++++++++ tldr/linux/limine-snapper-sync | 29 ++++++++++++++++++++++ tldr/linux/mhwd-kernel | 29 ++++++++++++++++++++++ tldr/linux/pw-container | 29 ++++++++++++++++++++++ tldr/linux/systemctl-set-default | 21 ++++++++++++++++ tldr/pg_receivewal | 41 ++++++++++++++++++++++++++++++++ tldr/pg_rewind | 29 ++++++++++++++++++++++ tldr/pg_waldump | 41 ++++++++++++++++++++++++++++++++ tldr/poetry-help | 17 +++++++++++++ tldr/tgcloud | 18 ++++++++++++++ tldr/tginfo | 18 ++++++++++++++ tldr/tgsend | 18 ++++++++++++++ tldr/tgutil | 26 ++++++++++++++++++++ tldr/zrok | 38 +++++++++++++++++++++++++++++ 25 files changed, 607 insertions(+), 3 deletions(-) create mode 100644 tldr/conda-config create mode 100644 tldr/dos/cls create mode 100644 tldr/dos/path create mode 100644 tldr/linux/cliphist create mode 100644 tldr/linux/dnf-reposync create mode 100644 tldr/linux/limine create mode 100644 tldr/linux/limine-enroll-config create mode 100644 tldr/linux/limine-entry-tool create mode 100644 tldr/linux/limine-scan create mode 100644 tldr/linux/limine-snapper-sync create mode 100644 tldr/linux/mhwd-kernel create mode 100644 tldr/linux/pw-container create mode 100644 tldr/linux/systemctl-set-default create mode 100644 tldr/pg_receivewal create mode 100644 tldr/pg_rewind create mode 100644 tldr/pg_waldump create mode 100644 tldr/poetry-help create mode 100644 tldr/tgcloud create mode 100644 tldr/tginfo create mode 100644 tldr/tgsend create mode 100644 tldr/tgutil create mode 100644 tldr/zrok diff --git a/tldr/aireplay-ng b/tldr/aireplay-ng index e14eef76..32eeb754 100644 --- a/tldr/aireplay-ng +++ b/tldr/aireplay-ng @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # aireplay-ng > Inject packets into a wireless network. -> Part of `aircrack-ng`. +> Part of Aircrack-ng network software suite. > More information: . - Send a specific number of disassociate packets given an access point's MAC address, a client's MAC address and an interface: diff --git a/tldr/airmon-ng b/tldr/airmon-ng index 4acb8ce2..0eef021e 100644 --- a/tldr/airmon-ng +++ b/tldr/airmon-ng @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # airmon-ng > Activate monitor mode on wireless network devices. -> Part of `aircrack-ng`. +> Part of Aircrack-ng network software suite. > More information: . - List wireless devices and their statuses: diff --git a/tldr/airodump-ng b/tldr/airodump-ng index 82d23d04..47cf0b33 100644 --- a/tldr/airodump-ng +++ b/tldr/airodump-ng @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # airodump-ng > Capture packets and display information about wireless networks. -> Part of `aircrack-ng`. +> Part of Aircrack-ng network software suite. > More information: . - Capture packets and display information about wireless network(s) on the 2.4GHz band: diff --git a/tldr/conda-config b/tldr/conda-config new file mode 100644 index 00000000..03515197 --- /dev/null +++ b/tldr/conda-config @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda config + +> Modify configuration values in `.condarc`. +> More information: . + +- Show all configuration values: + +`conda config --show` + +- Show current value of a configuration option: + +`conda config --show {{config_option}}` + +- Set a configuration value: + +`conda config --set {{key}} {{value}}` + +- Remove a configuration value: + +`conda config --remove {{key}} {{value}}` + +- Append a value to an existing configuration key list: + +`conda config --append {{key}} {{value}}` + +- Prepend a value to an existing configuration key list: + +`conda config --prepend {{key}} {{value}}` + +- Describe given configuration option: + +`conda config --describe {{config_option}}` diff --git a/tldr/dos/cls b/tldr/dos/cls new file mode 100644 index 00000000..49a7565d --- /dev/null +++ b/tldr/dos/cls @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, dos] +source: https://github.com/tldr-pages/tldr.git +--- +# CLS + +> Clear the screen and reset colors. +> More information: . + +- Clear the screen resetting colors to white on black: + +`CLS` diff --git a/tldr/dos/path b/tldr/dos/path new file mode 100644 index 00000000..67343dad --- /dev/null +++ b/tldr/dos/path @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, dos] +source: https://github.com/tldr-pages/tldr.git +--- +# PATH + +> Display or set the search path for executable files. +> This command is available in `FreeDOS` only. +> More information: . + +- Display the current search path: + +`PATH` + +- Set the semicolon-separated list of directories to search in: + +`PATH {{path/to/directory1;path/to/directory2;...}}` + +- Append a directory to the search path: + +`PATH %PATH%;{{path/to/directory}}` + +- Add a directory to the beginning of the search path: + +`PATH {{path/to/directory}};%PATH%` + +- Clear the search path: + +`PATH;` + +- Display help: + +`PATH /?` diff --git a/tldr/linux/cliphist b/tldr/linux/cliphist new file mode 100644 index 00000000..b530dcdc --- /dev/null +++ b/tldr/linux/cliphist @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# cliphist + +> Manage clipboard history for Wayland compositors. +> Works with `wl-copy` and `wl-paste`. +> More information: . + +- List clipboard history entries: + +`cliphist list` + +- Select and copy a previous clipboard entry (using `fzf`): + +`cliphist list | fzf | cliphist decode | wl-copy` + +- Delete all stored clipboard entries: + +`cliphist wipe` + +- Delete a specific clipboard entry by ID: + +`cliphist delete {{id}}` + +- Save the current clipboard content manually: + +`wl-paste | cliphist store` diff --git a/tldr/linux/dnf-reposync b/tldr/linux/dnf-reposync new file mode 100644 index 00000000..d20b269e --- /dev/null +++ b/tldr/linux/dnf-reposync @@ -0,0 +1,35 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# dnf reposync + +> Synchronize packages and metadata of a remote DNF repository to a local directory. +> Not default to `dnf` but supported via `dnf-plugins-core`. +> See also: `dnf`. +> More information: . + +- Synchronize all packages from the repository with id `repo_name` to a subdirectory `repo_name` of the current working directory: + +`dnf reposync --repoid {{repo_name}}` + +- Synchronize all packages and define a custom save location: + +`dnf reposync --repoid {{repo_name}} {{[-p|--download-path]}} {{path/to/directory}}` + +- Synchronize all packages and metadata: + +`dnf reposync --repoid {{repo_name}} --download-metadata` + +- Download only newest packages per-repo: + +`dnf reposync --repoid {{repo_name}} {{[-n|--newest-only]}}` + +- Just print URLs of what would be downloaded, don’t download: + +`dnf reposync --repoid {{repo_name}} {{[-u|--urls]}}` + +- Try to set the timestamps of the downloaded files to those on the remote side: + +`dnf reposync --repoid {{repo_name}} --remote-time` diff --git a/tldr/linux/limine b/tldr/linux/limine new file mode 100644 index 00000000..2bdca610 --- /dev/null +++ b/tldr/linux/limine @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# limine + +> An advanced, portable, multiprotocol bootloader. +> See also: `limine-enroll-config`, `limine-entry-tool`, `limine-snapper-sync`. +> More information: . + +- Install Limine to an MBR-partitioned disk: + +`limine bios-install {{/dev/sdX}}` + +- Install Limine to a GPT-partitioned disk with a specific BIOS boot partition: + +`limine bios-install {{/dev/sdX}} {{partition_number}}` + +- Install Limine to a disk image file: + +`limine bios-install {{path/to/image.iso}}` + +- Install Limine for modern UEFI systems (requires the `limine-entry-tool` package): + +`limine-install` + +- Update boot entries after a kernel upgrade (requires the `limine-entry-tool` package): + +`limine-update` + +- Scan for other operating systems to add to the boot menu (requires the `limine-entry-tool` package): + +`limine-scan` diff --git a/tldr/linux/limine-enroll-config b/tldr/linux/limine-enroll-config new file mode 100644 index 00000000..7628807d --- /dev/null +++ b/tldr/linux/limine-enroll-config @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# limine-enroll-config + +> Embed or reset the BLAKE2B hash of `limine.conf` in the Limine EFI executable. +> Used to ensure the configuration file has not been tampered with when Secure Boot is enabled. +> More information: . + +- Embed a config file's BLAKE2B hash into the Limine EFI executable: + +`limine-enroll-config {{path/to/BOOTX64.EFI}} {{blake2b_hash}}` + +- Remove the enrolled hash from the executable, disabling the config integrity check: + +`limine-enroll-config --reset {{path/to/BOOTX64.EFI}}` + +- Display help: + +`limine-enroll-config --help` diff --git a/tldr/linux/limine-entry-tool b/tldr/linux/limine-entry-tool new file mode 100644 index 00000000..104d8d0c --- /dev/null +++ b/tldr/linux/limine-entry-tool @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# limine-entry-tool + +> A helper script to manage Limine bootloader entries on UEFI systems. +> More information: . + +- Scan for other active UEFI boot entries and add them to the Limine menu: + +`limine-entry-tool --scan` + +- Add a new kernel boot entry with an initramfs and a kernel file: + +`limine-entry-tool --add "{{kernel_name}}" "{{path/to/initramfs}}" "{{path/to/vmlinuz}}"` + +- Add a new Unified Kernel Image (UKI) boot entry: + +`limine-entry-tool --add-uki "{{kernel_name}}" "{{path/to/uki.efi}}"` + +- Remove a kernel boot entry and its associated files from the ESP: + +`limine-entry-tool --remove "{{kernel_name}}"` + +- Remove an entire OS entry by its name or machine ID: + +`limine-entry-tool --remove-os "{{OS_name|machine_id}}"` + +- Add an EFI boot entry for an alternative bootloader (e.g., Windows): + +`limine-entry-tool --add-efi "{{EFI_entry_name}}" "{{path/to/loader.efi}}"` diff --git a/tldr/linux/limine-scan b/tldr/linux/limine-scan new file mode 100644 index 00000000..be9a416e --- /dev/null +++ b/tldr/linux/limine-scan @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# limine-scan + +> This command is an alias of `limine-entry-tool --scan`. + +- View documentation for the original command: + +`tldr limine-entry-tool` diff --git a/tldr/linux/limine-snapper-sync b/tldr/linux/limine-snapper-sync new file mode 100644 index 00000000..584fd34b --- /dev/null +++ b/tldr/linux/limine-snapper-sync @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# limine-snapper-sync + +> Synchronize Limine boot menu entries with Btrfs snapshots managed by Snapper. +> More information: . + +- Manually synchronize Snapper snapshots to create boot entries in Limine: + +`limine-snapper-sync` + +- List the current snapshot entries managed by Limine: + +`limine-snapper-list` + +- Display detailed information about bootable snapshots and their files: + +`limine-snapper-info` + +- Restore the system from a selected bootable snapshot: + +`limine-snapper-restore` + +- Start the watcher process to monitor for Snapper snapshot changes: + +`limine-snapper-watcher` diff --git a/tldr/linux/mhwd-kernel b/tldr/linux/mhwd-kernel new file mode 100644 index 00000000..bd7d4928 --- /dev/null +++ b/tldr/linux/mhwd-kernel @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# mhwd-kernel + +> Manage and install Linux kernels in Manjaro. +> More information: . + +- List all available kernels: + +`mhwd-kernel {{[-l|--list]}}` + +- List all installed kernels: + +`mhwd-kernel {{[-li|--listinstalled]}}` + +- Install a kernel: + +`sudo mhwd-kernel {{[-i|--install]}} {{kernel}}` + +- Remove a kernel: + +`sudo mhwd-kernel {{[-r|--remove]}} {{kernel}}` + +- Install a kernel, replacing the currently running kernel: + +`sudo mhwd-kernel {{[-i|--install]}} {{kernel}} rmc` diff --git a/tldr/linux/pw-container b/tldr/linux/pw-container new file mode 100644 index 00000000..15e8f886 --- /dev/null +++ b/tldr/linux/pw-container @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pw-container + +> Run a program in a new security context. +> More information: . + +- Create a new security context and print its socket address to `stdout`: + +`pw-container` + +- Run a specific program within a new security context: + +`pw-container {{command}} {{argument1 argument2 ...}}` + +- Run a program, connecting to a specific remote PipeWire instance: + +`pw-container {{[-r|--remote]}} {{remote_instance_name}} {{command}}` + +- Run a program in a new context with specific properties using a JSON object: + +`pw-container {{[-P|--properties]}} '{{{"key": "value"}}}' {{command}}` + +- Display help: + +`pw-container {{[-h|--help]}}` diff --git a/tldr/linux/systemctl-set-default b/tldr/linux/systemctl-set-default new file mode 100644 index 00000000..29109ac3 --- /dev/null +++ b/tldr/linux/systemctl-set-default @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl set-default + +> Symlink the `default.target` alias to the given target unit. +> More information: . + +- Set `systemd`'s default boot mode: + +`systemctl set-default {{target_name.target}}` + +- Set `systemd` to boot to GUI mode by default: + +`systemctl set-default graphical.target` + +- Set `systemd` to boot to CLI mode by default: + +`systemctl set-default multi-user.target` diff --git a/tldr/pg_receivewal b/tldr/pg_receivewal new file mode 100644 index 00000000..62bdd49b --- /dev/null +++ b/tldr/pg_receivewal @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_receivewal + +> Stream the write-ahead log from a running PostgreSQL cluster. +> More information: . + +- Stream WAL to a local directory (minimum required): + +`pg_receivewal {{[-D|--directory]}} {{directory}}` + +- Same as above, specify host, port, username including verbose output: + +`pg_receivewal {{[-v|--verbose]}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}} {{[-D|--directory]}} {{directory}}` + +- Use replication slot (create-if-needed): + +`pg_receivewal {{[-S|--slot]}} {{slot_name}} --create-slot {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}} {{[-D|--directory]}} {{directory}}` + +- Stop at a given WAL position (LSN): + +`pg_receivewal {{[-E|--endpos]}} {{lsn}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}` + +- Control looping on failure: + +`pg_receivewal {{[-n|--no-loop]}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}` + +- Flush data synchronously (force WAL writes immediately): + +`pg_receivewal --synchronous {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}` + +- Compress WAL output (gzip, level 0–9): + +`pg_receivewal {{[-Z|--compress]}} {{level|method}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}` + +- Set status reporting interval: + +`pg_receivewal {{[-s|--status-interval]}} {{seconds}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}` diff --git a/tldr/pg_rewind b/tldr/pg_rewind new file mode 100644 index 00000000..a510eb4f --- /dev/null +++ b/tldr/pg_rewind @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_rewind + +> Synchronize a PostgreSQL data directory with another data directory that was forked from it. +> More information: . + +- Synchronize target directory with source directory: + +`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-pgdata {{path/to/source_data}}` + +- Synchronize target with source server using connection string: + +`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-server {{connstr}}` + +- Perform a dry run: + +`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-pgdata {{path/to/source_data}} {{[-n|--dry-run]}}` + +- Show progress during synchronization: + +`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-pgdata {{path/to/source_data}} {{[-P|--progress]}}` + +- Display help: + +`pg_rewind {{[-?|--help]}}` diff --git a/tldr/pg_waldump b/tldr/pg_waldump new file mode 100644 index 00000000..794786b0 --- /dev/null +++ b/tldr/pg_waldump @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_waldump + +> Display a human-readable rendering of the write-ahead log (WAL). +> More information: . + +- Basic invocation reading a WAL segment (or range): + +`pg_waldump {{start_segment}} {{end_segment}}` + +- Specify the WAL file directory: + +`pg_waldump {{start_segment}} {{end_segment}} {{[-p|--path]}} {{path}}` + +- Start from a particular WAL location (LSN): + +`pg_waldump {{start_segment}} {{end_segment}} {{[-s|--start]}} {{lsn}}` + +- Stop at a particular WAL location (LSN): + +`pg_waldump {{start_segment}} {{end_segment}} {{[-e|--end]}} {{lsn}}` + +- Follow new WAL entries as they arrive: + +`pg_waldump {{start_segment}} {{end_segment}} {{[-f|--follow]}}` + +- Limit number of records shown: + +`pg_waldump {{start_segment}} {{end_segment}} {{[-n|--limit]}} {{count}}` + +- Quiet mode (suppress output except errors): + +`pg_waldump {{start_segment}} {{end_segment}} {{[-q|--quiet]}}` + +- Filter by resource manager: + +`pg_waldump {{start_segment}} {{end_segment}} {{[-r|--rmgr]}} {{rmgr_name}}` diff --git a/tldr/poetry-help b/tldr/poetry-help new file mode 100644 index 00000000..4cdb920b --- /dev/null +++ b/tldr/poetry-help @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# poetry help + +> Display global help, or help for a specific `poetry` command. +> More information: . + +- Display global help: + +`poetry help` + +- Display help for a specific command: + +`poetry help {{config|show|...}}` diff --git a/tldr/tgcloud b/tldr/tgcloud new file mode 100644 index 00000000..45868839 --- /dev/null +++ b/tldr/tgcloud @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# tgcloud + +> Manage a Telegram account. +> See also: `tgsend`, `tginfo`, `tgutil`. +> More information: . + +- Upload a file to a chat with a caption: + +`tgcloud {{[-m|--mode]}} upload {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-p|--path]}} {{path_of_the_file}} {{[-c|--caption]}} {{caption}}` + +- Download a file from a chat and store it in `path/to/store` with a caption: + +`tgcloud {{[-m|--mode]}} download {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-p|--path]}} {{path/to/store}} {{[-c|--caption]}} {{caption}}` diff --git a/tldr/tginfo b/tldr/tginfo new file mode 100644 index 00000000..cbbe6d2f --- /dev/null +++ b/tldr/tginfo @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# tginfo + +> Manage a Telegram account. +> See also: `tgcloud`, `tgsend`, `tgutil`. +> More information: . + +- Search for all files inside a Telegram conversation based on their filename or caption: + +`tginfo {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-s|--search]}} "{{query}}"` + +- Get info for all media inside a Telegram chat: + +`tginfo {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}}` diff --git a/tldr/tgsend b/tldr/tgsend new file mode 100644 index 00000000..25283514 --- /dev/null +++ b/tldr/tgsend @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# tgsend + +> Manage a Telegram account. +> See also: `tgcloud`, `tginfo`, `tgutil`. +> More information: . + +- Send a message to a chat: + +`tgsend {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} "{{message}}"` + +- Send a message to chat with silent notification: + +`tgsend {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} --silent "{{message}}"` diff --git a/tldr/tgutil b/tldr/tgutil new file mode 100644 index 00000000..b57d387a --- /dev/null +++ b/tldr/tgutil @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# tgutil + +> Manage a Telegram account. +> See also: `tgcloud`, `tgsend`, `tginfo`. +> More information: . + +- Edit the last text message on a chat with new text: + +`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} edit --text "{{current_text}}" --newtext "{{new_text}}"` + +- Edit all text messages that contain `current_text` with `new_text`: + +`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} editall --text "{{current_text}}" --newtext "{{new_text}}"` + +- Delete the last text message on a chat with search value: + +`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} delete --text "{{current_text}}"` + +- Delete all messages containing the `query` value: + +`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} deleteall --text "{{query}}"` diff --git a/tldr/zrok b/tldr/zrok new file mode 100644 index 00000000..54444c1f --- /dev/null +++ b/tldr/zrok @@ -0,0 +1,38 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# zrok + +> Expose local services and files to the internet. +> Part of the OpenZiti project, offering secure, zero-trust sharing. +> More information: . + +- Request an invitation to use the public zrok service (run this first): + +`zrok invite` + +- Enable the zrok environment with the token from an invitation email: + +`zrok enable {{your_token}}` + +- Create a publicly accessible URL for a local web server: + +`zrok share public {{http://localhost:8080}}` + +- Create a secure share accessible only with a unique token: + +`zrok share private {{http://localhost:3000}}` + +- Access a private share created by another user: + +`zrok access private {{share_token}}` + +- Serve the contents of a local directory as a simple website: + +`zrok share public --backend-mode web {{path/to/directory}}` + +- Display the status of the zrok environment and active shares: + +`zrok status`