Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-14 00:14:23 +00:00
parent 038e245f61
commit d5392a175a
9 changed files with 91 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> An arbitrary precision calculator language.
> See also: `dc`.
> More information: <https://manned.org/man/bc.1>.
> More information: <https://manned.org/bc.1>.
- Start an interactive session:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dd
> Convert and copy a file.
> More information: <https://manned.org/man/dd.1p>.
> More information: <https://manned.org/dd.1p>.
- Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`):

17
tldr/frp Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# frp
> Fast Reverse Proxy: quickly set up network tunnels to expose certain services to the Internet or other external networks.
> More information: <https://github.com/fatedier/frp>.
- View documentation for `frpc`, the `frp` client component:
`tldr frpc`
- View documentation for `frps`, the `frp` server component:
`tldr frps`

34
tldr/frpc Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# frpc
> Connect to a `frps` server to start proxying connections on the current host.
> Part of `frp`.
> More information: <https://github.com/fatedier/frp>.
- Start the service, using the default configuration file (assumed to be `frps.ini` in the current directory):
`frpc`
- Start the service, using the newer TOML configuration file (`frps.toml` instead of `frps.ini`) in the current directory:
`frpc {{-c|--config}} ./frps.toml`
- Start the service, using a specific configuration file:
`frpc {{-c|--config}} {{path/to/file}}`
- Check if the configuration file is valid:
`frpc verify {{-c|--config}} {{path/to/file}}`
- Print autocompletion setup script for Bash, Fish, PowerShell, or Zsh:
`frpc completion {{bash|fish|powershell|zsh}}`
- Display version:
`frpc {{-v|--version}}`

34
tldr/frps Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# frps
> Quickly set up a reverse proxy service.
> Part of `frp`.
> More information: <https://github.com/fatedier/frp>.
- Start the service, using the default configuration file (assumed to be `frps.ini` in the current directory):
`frps`
- Start the service, using the newer TOML configuration file (`frps.toml` instead of `frps.ini`) in the current directory:
`frps {{-c|--config}} ./frps.toml`
- Start the service, using a specified config file:
`frps {{-c|--config}} {{path/to/file}}`
- Check if the configuration file is valid:
`frps verify {{-c|--config}} {{path/to/file}}`
- Print autocompletion setup script for Bash, Fish, PowerShell, or Zsh:
`frps completion {{bash|fish|powershell|zsh}}`
- Display version:
`frps {{-v|--version}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nc
> Redirect I/O into a network stream through this versatile tool.
> More information: <https://manned.org/man/nc.1>.
> More information: <https://manned.org/nc.1>.
- Start a listener on the specified TCP port and send a file into it:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Edit text in a scriptable manner.
> See also: `awk`, `ed`.
> More information: <https://manned.org/man/sed.1posix>.
> More information: <https://manned.org/sed.1posix>.
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tree
> Show the contents of the current directory as a tree.
> More information: <https://manned.org/man/tree>.
> More information: <https://manned.org/tree>.
- Print files and directories up to 'num' levels of depth (where 1 means the current directory):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Generate an LALR parser (in C) with a formal grammar specification file.
> See also: `bison`.
> More information: <https://manned.org/man/yacc.1p>.
> More information: <https://manned.org/yacc.1p>.
- Create a file `y.tab.c` containing the C parser code and compile the grammar file with all necessary constant declarations for values. (Constant declarations file `y.tab.h` is created only when the `-d` flag is used):