From c8acbc5872f54dc74f64af3f5a57312bb21bae66 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 7 Feb 2026 00:26:49 +0000 Subject: [PATCH] Update cheatsheets --- tldr/bindkey | 10 +++++++--- tldr/cloudflared | 18 +++++++++++++----- tldr/fortune | 8 ++++---- tldr/linux/dhcpcd | 4 ++++ tldr/linux/neo | 42 ++++++++++++++++++++++++++++++++++++++++++ tldr/yadm | 14 +++++++------- tldr/yadm-clone | 4 ++-- tldr/yadm-config | 10 +++++----- tldr/yadm-decrypt | 2 +- tldr/yadm-enter | 2 +- tldr/yadm-gitconfig | 8 ++++---- tldr/yadm-introspect | 4 ++-- tldr/yadm-list | 6 +++--- tldr/yadm-perms | 2 +- tldr/yadm-upgrade | 4 ++-- 15 files changed, 98 insertions(+), 40 deletions(-) create mode 100644 tldr/linux/neo diff --git a/tldr/bindkey b/tldr/bindkey index f466e943..fb53d394 100644 --- a/tldr/bindkey +++ b/tldr/bindkey @@ -5,9 +5,13 @@ source: https://github.com/tldr-pages/tldr.git --- # bindkey -> Add keybindings to Z-Shell. +> Add hotkeys to Z shell. > More information: . +- List all existing hotkeys: + +`bindkey` + - Bind a hotkey to a specific command: `bindkey "{{^k}}" {{kill-line}}` @@ -21,9 +25,9 @@ source: https://github.com/tldr-pages/tldr.git `bindkey -l` -- View the hotkey in a key[M]ap: +- List all hotkeys in a key[M]ap: -`bindkey -M main` +`bindkey -M {{main}}` - Enable [v]i mode: diff --git a/tldr/cloudflared b/tldr/cloudflared index b1d16294..6d92bd6a 100644 --- a/tldr/cloudflared +++ b/tldr/cloudflared @@ -16,17 +16,25 @@ source: https://github.com/tldr-pages/tldr.git `cloudflared tunnel create {{name}}` -- Establish a tunnel to a host in Cloudflare from the local server: +- List all tunnels in the account: -`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}}` +`cloudflared tunnel list` -- Establish a tunnel to a host in Cloudflare from the local server, without verifying the local server's certificate: +- Create a DNS CNAME record pointing to a tunnel: -`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}} --no-tls-verify` +`cloudflared tunnel route dns {{name|uuid}} {{hostname}}` - Save logs to a file: -`cloudflared tunnel --hostname {{hostname}} http://localhost:{{port_number}} --loglevel {{panic|fatal|error|warn|info|debug}} --logfile {{path/to/file}}` +`cloudflared tunnel --loglevel {{panic|fatal|error|warn|info|debug}} --logfile {{path/to/file}} run {{name}}` + +- Run a named tunnel (reads configuration from `config.yml`): + +`cloudflared tunnel run {{name}}` + +- Start a temporary tunnel to expose a local service (no account required): + +`cloudflared tunnel --url http://localhost:{{port}}` - Install cloudflared as a system service: diff --git a/tldr/fortune b/tldr/fortune index a4a77bb6..5101dfe4 100644 --- a/tldr/fortune +++ b/tldr/fortune @@ -12,19 +12,19 @@ source: https://github.com/tldr-pages/tldr.git `fortune` -- Print an offensive quotation: +- Print an [o]ffensive quotation: `fortune -o` -- Print a long quotation: +- Print a [l]ong quotation: `fortune -l` -- Print a short quotation: +- Print a [s]hort quotation: `fortune -s` -- List the available quotation database files: +- List the available quotation database [f]iles: `fortune -f` diff --git a/tldr/linux/dhcpcd b/tldr/linux/dhcpcd index 07912832..977c82f6 100644 --- a/tldr/linux/dhcpcd +++ b/tldr/linux/dhcpcd @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Request the DHCP server for new leases: `sudo dhcpcd {{[-n|--rebind]}}` + +- Print (dump) the last acquired lease for a given interface and exit: + +`sudo dhcpcd {{[-U|--dumplease]}} {{interface_name}}` diff --git a/tldr/linux/neo b/tldr/linux/neo new file mode 100644 index 00000000..d4ae6dbc --- /dev/null +++ b/tldr/linux/neo @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# neo + +> Simulate the digital rain from "The Matrix". +> See also: `cmatrix`. +> More information: . + +- Set scroll speed and asynchronous columns: + +`neo {{[-S|--speed]}} {{12}} {{[-a|--async]}}` + +- Change text color and colormode: + +`neo {{[-c|--color]}} {{green}} --colormode {{256}}` + +- Display a centered message: + +`neo {{[-m|--message]}} "{{Hello World}}"` + +- Set droplet density and glitch percentage: + +`neo {{[-d|--density]}} {{2.0}} {{[-G|--glitchpct]}} {{20.0}}` + +- Use a specific charset: + +`neo --charset {{ascii|greek|cyrillic|arabic|braille|runic|...}}` + +- Clear the screen: + +`` + +- Exit neo: + +`{{|}}` + +- Display help: + +`neo {{[-h|--help]}}` diff --git a/tldr/yadm b/tldr/yadm index 929c1cad..3ec5b26d 100755 --- a/tldr/yadm +++ b/tldr/yadm @@ -9,30 +9,30 @@ source: https://github.com/tldr-pages/tldr.git > Some subcommands such as `init`, `clone`, `push`, and `pull` have their own usage documentation. > More information: . -- Override the `yadm` directory. `yadm` stores its configurations relative to this directory: +- Override yadm's configuration directory: `yadm --yadm-dir` -- Override the `yadm` data directory: `yadm` stores its data relative to this directory: +- Override yadm's data directory. yadm stores its data relative to this directory: `yadm --yadm-data` -- Override the location of the `yadm` repository: +- Override the location of the yadm repository: `yadm --yadm-repo` -- Override the location of the `yadm` configuration file: +- Override the location of yadm's main configuration file: `yadm --yadm-config` -- Override the location of the `yadm` encryption configuration: +- Override the location of the yadm encryption configuration: `yadm --yadm-encrypt` -- Override the location of the `yadm` encrypted files archive: +- Override the location of the yadm encrypted files archive: `yadm --yadm-archive` -- Override the location of the `yadm` bootstrap program: +- Override the location of the yadm bootstrap program: `yadm --yadm-bootstrap` diff --git a/tldr/yadm-clone b/tldr/yadm-clone index b9b10234..148f2363 100755 --- a/tldr/yadm-clone +++ b/tldr/yadm-clone @@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git `yadm clone {{remote_repository_location}} --no-bootstrap` -- Change the worktree that `yadm` will use during cloning: +- Change the worktree that yadm will use during cloning: `yadm clone {{remote_repository_location}} --w {{worktree_file}}` -- Change the branch that `yadm` gets files from: +- Change the branch that yadm gets files from: `yadm clone {{remote_repository_location}} -b {{branch}}` diff --git a/tldr/yadm-config b/tldr/yadm-config index e2afa428..44357ef4 100755 --- a/tldr/yadm-config +++ b/tldr/yadm-config @@ -5,21 +5,21 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm config -> Pass options to `yadm`'s config file. Change the `.config` of the repository managed by `yadm`. +> Pass options to yadm's config file. Change the `.config` of the repository managed by yadm. > More information: . -- Set or update a `yadm`'s Git configuration: +- Set or update a yadm's Git configuration: `yadm config {{key.inner-key}} {{value}}` -- Get a value from `yadm`'s Git configuration: +- Get a value from yadm's Git configuration: `yadm config --get {{key}}` -- Unset a value in `yadm`'s Git configuration: +- Unset a value in yadm's Git configuration: `yadm config --unset {{key}}` -- List all values in `yadm`'s Git configuration: +- List all values in yadm's Git configuration: `yadm config --list` diff --git a/tldr/yadm-decrypt b/tldr/yadm-decrypt index 28e68434..acb56612 100755 --- a/tldr/yadm-decrypt +++ b/tldr/yadm-decrypt @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm decrypt -> Decrypt files that were encrypted by `yadm`. +> Decrypt files that were encrypted by yadm. > When activating this command you will be prompted for a password. > More information: . diff --git a/tldr/yadm-enter b/tldr/yadm-enter index 79e3d9f6..48eaf5e2 100755 --- a/tldr/yadm-enter +++ b/tldr/yadm-enter @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm enter -> Run a sub-shell with all Git variables set. This sub-shell can be used to easily interact with the local `yadm` repository using Git commands. +> Run a sub-shell with all Git variables set. This sub-shell can be used to easily interact with the local yadm repository using Git commands. > This could be useful if you are using a tool which uses Git directly. > More information: . diff --git a/tldr/yadm-gitconfig b/tldr/yadm-gitconfig index dbf56ca5..1103deda 100755 --- a/tldr/yadm-gitconfig +++ b/tldr/yadm-gitconfig @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm gitconfig -> Pass options to `git config`. Change the `.gitconfig` of the repository managed by `yadm`. +> Pass options to `git config`. Change the `.gitconfig` of the repository managed by yadm. > See also: `git config`. > More information: . @@ -13,14 +13,14 @@ source: https://github.com/tldr-pages/tldr.git `yadm gitconfig {{key.inner-key}} {{value}}` -- Get a value from `yadm`'s Git configuration: +- Get a value from yadm's Git configuration: `yadm gitconfig --get {{key}}` -- Unset a value in `yadm`'s Git configuration: +- Unset a value in yadm's Git configuration: `yadm gitconfig --unset {{key}}` -- List all values in `yadm`'s Git configuration: +- List all values in yadm's Git configuration: `yadm gitconfig --list` diff --git a/tldr/yadm-introspect b/tldr/yadm-introspect index 9946c942..a50b2574 100755 --- a/tldr/yadm-introspect +++ b/tldr/yadm-introspect @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm introspect -> Look at data that is managed by `yadm`. +> Look at data that is managed by yadm. > The purpose of introspection is to support command line completion. > More information: . @@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git `yadm introspect configs` -- Output switches for the main `yadm` command: +- Output switches for the main yadm command: `yadm introspect switches` diff --git a/tldr/yadm-list b/tldr/yadm-list index a748c6ba..efb9da21 100755 --- a/tldr/yadm-list +++ b/tldr/yadm-list @@ -5,13 +5,13 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm list -> Print a list of files managed by `yadm`. +> Print a list of files managed by yadm. > More information: . -- Print a list of files managed by `yadm` in the current directory: +- Print a list of files managed by yadm in the current directory: `yadm list` -- List all files managed by `yadm` completely: +- List all files managed by yadm completely: `yadm list -a` diff --git a/tldr/yadm-perms b/tldr/yadm-perms index 4e4d25c0..a2c41492 100755 --- a/tldr/yadm-perms +++ b/tldr/yadm-perms @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # yadm perms > Update permissions. -> It is usually unnecessary to run this command, as `yadm` automatically processes permissions by default. This automatic behavior can be disabled by setting the configuration `yadm.auto-perms` to `"false"`. +> It is usually unnecessary to run this command, as yadm automatically processes permissions by default. This automatic behavior can be disabled by setting the configuration `yadm.auto-perms` to `"false"`. > More information: . - Change file permissions: diff --git a/tldr/yadm-upgrade b/tldr/yadm-upgrade index f87841df..2ae51733 100755 --- a/tldr/yadm-upgrade +++ b/tldr/yadm-upgrade @@ -5,11 +5,11 @@ source: https://github.com/tldr-pages/tldr.git --- # yadm upgrade -> Upgrade `yadm` to the latest version. +> Upgrade yadm to the latest version. > Upgrading will attempt to de-initialize and re-initialize your submodules. > More information: . -- Upgrade `yadm` to the latest version: +- Upgrade yadm to the latest version: `yadm upgrade`