From 7a260c8cd2de000e0c59785a357acffa0c10a2a4 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 22 Jan 2026 00:23:48 +0000 Subject: [PATCH] Update cheatsheets --- tldr/dmypy | 4 ++-- tldr/gixy | 6 +++--- tldr/x | 33 +++++++++++++++++++++++++++++++++ tldr/x-ping | 29 +++++++++++++++++++++++++++++ tldr/x-tping | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+), 5 deletions(-) create mode 100644 tldr/x create mode 100644 tldr/x-ping create mode 100644 tldr/x-tping diff --git a/tldr/dmypy b/tldr/dmypy index 06a6ba1e..04be3ab6 100644 --- a/tldr/dmypy +++ b/tldr/dmypy @@ -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: diff --git a/tldr/gixy b/tldr/gixy index 825da474..f2eee7c7 100644 --- a/tldr/gixy +++ b/tldr/gixy @@ -6,9 +6,9 @@ source: https://github.com/tldr-pages/tldr.git # gixy > Analyze `nginx` configuration files. -> More information: . +> More information: . -- 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 ...}}` diff --git a/tldr/x b/tldr/x new file mode 100644 index 00000000..0c7e6602 --- /dev/null +++ b/tldr/x @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# x + +> Manage modules and packages. +> More information: . + +- 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` diff --git a/tldr/x-ping b/tldr/x-ping new file mode 100644 index 00000000..78927dbb --- /dev/null +++ b/tldr/x-ping @@ -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: . + +- 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]}}` diff --git a/tldr/x-tping b/tldr/x-tping new file mode 100644 index 00000000..20c2974d --- /dev/null +++ b/tldr/x-tping @@ -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: . + +- 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}}`