From 873e610a6b02de02d405b16e61b12ccea8788a62 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 8 Jul 2025 00:20:35 +0000 Subject: [PATCH] Update cheatsheets --- tldr/dnswalk | 42 ++++++++++++++++++++++++++++++++++++++++ tldr/filen | 41 +++++++++++++++++++++++++++++++++++++++ tldr/jj-evolog | 6 +++--- tldr/linux/dnf-module | 25 ++++++++++++++++++++++++ tldr/linux/dnf-repoquery | 2 +- tldr/linux/run-mailcap | 14 +++++--------- tldr/netstat | 4 ++-- tldr/scrcpy | 16 +++++++-------- 8 files changed, 127 insertions(+), 23 deletions(-) create mode 100644 tldr/dnswalk create mode 100644 tldr/filen create mode 100644 tldr/linux/dnf-module diff --git a/tldr/dnswalk b/tldr/dnswalk new file mode 100644 index 00000000..ac75ddbd --- /dev/null +++ b/tldr/dnswalk @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dnswalk + +> DNS debugger. +> "Walk" across zones and validate database consistency and best practices. +> More information: . + +- Debug a DNS pathway for a Fully Qualified Domain Name (FQDN): + +`dnswalk {{domain}}.` + +- Process sub-domains [r]ecursively: + +`dnswalk -r {{domain}}.` + +- Only perform a `dnswalk` if the zone has been [m]odified since the last run: + +`dnswalk -m {{domain}}.` + +- Print [d]ebugging and status information to `stderr` instead of `stdout`: + +`dnswalk -d {{domain}}.` + +- Suppress the check for [i]nvalid characters in the domain name: + +`dnswalk -i {{domain}}.` + +- Enable duplicate A record warnings: + +`dnswalk -a {{domain}}.` + +- Enable "[F]ascist checking" to compare the A record PTR name with the forward name and report mismatches: + +`dnswalk -F {{domain}}.` + +- Enable "[l]ame delegation" to test whether the listed host is returning authoritative answers: + +`dnswalk -l {{domain}}.` diff --git a/tldr/filen b/tldr/filen new file mode 100644 index 00000000..822cb66a --- /dev/null +++ b/tldr/filen @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# filen + +> Interface with Filen, an end-to-end encrypted cloud storage service. +> More information: . + +- Enter interactive mode: + +`filen` + +- Upload a local file to a specific remote folder: + +`filen upload {{path/to/local_file}} {{remote_folder_id}}` + +- Download a file or folder using its remote ID: + +`filen download {{remote_id}} {{path/to/local_destination}}` + +- List files and folders inside a remote folder: + +`filen ls {{remote_folder}` + +- Delete a remote file or folder (move it to trash): + +`filen rm {{remote_id}}` + +- Restore a trashed item: + +`filen trash restore {{remote_id}}` + +- Synchronize a local folder with a remote folder (two-way sync): + +`filen sync {{path/to/local_folder}}:/{{remote_folder}} --continuous` + +- Download changes from the cloud to a local folder (one-way sync): + +`filen sync {{path/to/local_folder}}:ctl:/{{remote_folder}}` diff --git a/tldr/jj-evolog b/tldr/jj-evolog index 9e72edc8..708c1b71 100644 --- a/tldr/jj-evolog +++ b/tldr/jj-evolog @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Show how a revision has evolved over time: -`jj evolog {{[-r|--revision]}} {{revset}}` +`jj evolog {{[-r|--revisions]}} {{revsets}}` - Show diff statistics in the evolution log: -`jj evolog {{[-r|--revision]}} {{revset}} --stat` +`jj evolog {{[-r|--revisions]}} {{revsets}} --stat` - Show summary of each change in the evolution log: -`jj evolog {{[-r|--revision]}} {{revset}} {{[-s|--summary]}}` +`jj evolog {{[-r|--revisions]}} {{revsets}} {{[-s|--summary]}}` diff --git a/tldr/linux/dnf-module b/tldr/linux/dnf-module new file mode 100644 index 00000000..616d51b9 --- /dev/null +++ b/tldr/linux/dnf-module @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# dnf module + +> Manage package modularity. +> More information: . + +- View the modularity overview: + +`dnf module list` + +- View modularity of a specific program: + +`dnf module list {{package_name}}` + +- Set a package to be enabled: + +`sudo dnf module enable {{package_name}}:{{stream}}` + +- Enable and install a specific version: + +`dnf module install {{package_name}}:{{stream}}` diff --git a/tldr/linux/dnf-repoquery b/tldr/linux/dnf-repoquery index b174752f..88bccb95 100644 --- a/tldr/linux/dnf-repoquery +++ b/tldr/linux/dnf-repoquery @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, linux] source: https://github.com/tldr-pages/tldr.git --- -# dnf install +# dnf repoquery > Query packages for information. > More information: . diff --git a/tldr/linux/run-mailcap b/tldr/linux/run-mailcap index 79ac7275..99909b2a 100644 --- a/tldr/linux/run-mailcap +++ b/tldr/linux/run-mailcap @@ -9,22 +9,18 @@ source: https://github.com/tldr-pages/tldr.git > Run mailcap view, see, edit, compose, print - execute programs via entries in the mailcap file (or any of its aliases) will use the given action to process each mime-type/file. > More information: . -- Individual actions/programs on run-mailcap can be invoked with action flag: +- Invoke individual actions/programs on run-mailcap: -`run-mailcap --action=ACTION [--option[=value]]` - -- In simple language: - -`run-mailcap --action=ACTION {{filename}}` +`run-mailcap --action={{view|cat|compose|composetyped|edit|print}} {{path/to/file}}` - Turn on extra information: -`run-mailcap --action=ACTION --debug {{filename}}` +`run-mailcap --action={{action}} --debug {{path/to/file}}` - Ignore any "copiousoutput" directive and forward output to `stdout`: -`run-mailcap --action=ACTION --nopager {{filename}}` +`run-mailcap --action={{action}} --nopager {{path/to/file}}` - Display the found command without actually executing it: -`run-mailcap --action=ACTION --norun {{filename}}` +`run-mailcap --action={{action}} --norun {{path/to/file}}` diff --git a/tldr/netstat b/tldr/netstat index f3d122fc..a836ee22 100644 --- a/tldr/netstat +++ b/tldr/netstat @@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git - List all listening ports: -`netstat {{[-l|--listening]]}}` +`netstat {{[-l|--listening]}}` - List listening TCP ports: -`netstat {{[-t|--tcp]]}}` +`netstat {{[-t|--tcp]}}` - Display PID and program names: diff --git a/tldr/scrcpy b/tldr/scrcpy index fd9b818b..f809d6cf 100644 --- a/tldr/scrcpy +++ b/tldr/scrcpy @@ -12,25 +12,25 @@ source: https://github.com/tldr-pages/tldr.git `scrcpy` +- Turn the device screen off and prevent it from sleeping while mirroring: + +`scrcpy {{[-S|--turn-screen-off]}} {{[-w|--stay-awake]}}` + - Display a mirror of a specific device based on its ID or IP address (find it under the `adb devices` command): -`scrcpy --serial {{0123456789abcdef|192.168.0.1:5555}}` +`scrcpy {{[-s|--serial]}} {{0123456789abcdef|192.168.0.1:5555}}` - Start display in fullscreen mode: -`scrcpy --fullscreen` - -- Rotate the display screen. Each incremental value adds a 90 degree counterclockwise rotation: - -`scrcpy --rotation {{0|1|2|3}}` +`scrcpy {{[-f|--fullscreen]}}` - Show touches on physical device: -`scrcpy --show-touches` +`scrcpy {{[-t|--show-touches]}}` - Record display screen: -`scrcpy --record {{path/to/file.mp4}}` +`scrcpy {{[-r|--record]}} {{path/to/file.mp4}}` - Specify the target directory for pushing files to device by drag and drop (non-APK):