Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-22 00:23:48 +00:00
parent ce57847ede
commit 7a260c8cd2
5 changed files with 100 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Type check a file, and start the daemon if it is not running:
`dmypy check -- {{path/to/file.py}}`
`dmypy run -- {{path/to/file.py}}`
- Start the daemon:
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Type check a file (requires the daemon to be running):
`dmypy run -- {{path/to/file.py}}`
`dmypy check -- {{path/to/file.py}}`
- Stop the daemon:

View File

@@ -6,9 +6,9 @@ source: https://github.com/tldr-pages/tldr.git
# gixy
> Analyze `nginx` configuration files.
> More information: <https://github.com/yandex/gixy>.
> More information: <https://github.com/dvershinin/gixy#usage>.
- Analyze nginx configuration (default path: `/etc/nginx/`nginx`.conf`):
- Analyze `nginx` configuration (default path: `/etc/nginx/nginx.conf`):
`gixy`
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Analyze `nginx` configuration files on the specific path:
`gixy {{path/to/configuration_file_1}} {{path/to/configuration_file_2}}`
`gixy {{path/to/configuration_file_1 path/to/configuration_file_2 ...}}`

33
tldr/x Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# x
> Manage modules and packages.
> More information: <https://x-cmd.com>.
- Use a module (e.g., path module):
`x {{module}}`
- Install a package globally (e.g., jq):
`x env use {{package}}`
- Run a package temporarily in current shell session:
`x env try {{package}}`
- Run a package directly without installation:
`x {{package}}`
- Initialize OpenAI API keys for AI features:
`x openai init`
- Query the package installation method and execute it:
`x install`

29
tldr/x-ping Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# x ping
> Enhanced modules for ping.
> More information: <https://x-cmd.com/mod/ping>.
- Ping a specific host (defaults to bing.com if omitted):
`x ping {{host}}`
- Show ping results as a heatmap:
`x ping {{[-m|--heatmap]}} {{host}}`
- Show ping results as a bar graph:
`x ping {{[-b|--bar]}} {{host}}`
- Process ping results and display as heatmap:
`ping {{host}} | x ping vis {{[-m|--heatmap]}}`
- Show help:
`x ping {{[-h|--help]}}`

33
tldr/x-tping Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# x tping
> Ping a host via TCP to check reachability.
> More information: <https://x-cmd.com/mod/tping>.
- Ping a host on default port 80 with verbose mode:
`x tping {{host}}`
- Ping a host with specific port:
`x tping {{host}}:{{port}}`
- Show results as a heatmap:
`x tping {{[-m|--heatmap]}} {{host}}`
- Show results as a bar graph:
`x tping {{[-b|--bar]}} {{host}}:{{port}}`
- Output in raw data mode:
`x tping {{[-r|--raw]}} {{host}}`
- Output in a specific format:
`x tping {{--csv|--tsv}} {{host}}`