mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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
33
tldr/x
Normal 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
29
tldr/x-ping
Normal 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
33
tldr/x-tping
Normal 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}}`
|
||||
Reference in New Issue
Block a user