Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-07 00:26:49 +00:00
parent efbccb61fb
commit c8acbc5872
15 changed files with 98 additions and 40 deletions

View File

@@ -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: <https://zsh.sourceforge.io/Guide/zshguide04.html>.
- 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:

View File

@@ -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:

View File

@@ -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`

View File

@@ -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}}`

42
tldr/linux/neo Normal file
View File

@@ -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: <https://manned.org/neo>.
- 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:
`<Space>`
- Exit neo:
`{{<Esc>|<q>}}`
- Display help:
`neo {{[-h|--help]}}`

View File

@@ -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: <https://yadm.io/docs/overview>.
- 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`

View File

@@ -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}}`

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#configuration>.
- 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`

View File

@@ -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: <https://yadm.io/docs/encryption>.

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#commands>.

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#commands>.
@@ -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`

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#commands>.
@@ -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`

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#commands>.
- 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`

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#permissions>.
- Change file permissions:

View File

@@ -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: <https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md#commands>.
- Upgrade `yadm` to the latest version:
- Upgrade yadm to the latest version:
`yadm upgrade`