From e258e7ab9922508f57bcbdb9ef31ae9654eb9980 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 26 Jun 2024 00:14:22 +0000 Subject: [PATCH] Update cheatsheets --- tldr/knotc | 29 +++++++++++++++++++++++++++++ tldr/linux/rcp | 8 ++++---- tldr/linux/semanage | 2 +- tldr/osx/mist | 42 ++++++++++++++++++++++++++++++++++++++++++ tldr/streamlit | 25 +++++++++++++++++++++++++ 5 files changed, 101 insertions(+), 5 deletions(-) create mode 100644 tldr/knotc create mode 100644 tldr/osx/mist create mode 100644 tldr/streamlit diff --git a/tldr/knotc b/tldr/knotc new file mode 100644 index 00000000..66e9897f --- /dev/null +++ b/tldr/knotc @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# knotc + +> Control knot DNS server. +> More information: . + +- Start editing a zone: + +`knotc zone-begin {{zone}}` + +- Set an A record with TTL of 3600: + +`knotc zone-set {{zone}} {{subdomain}} 3600 A {{ip_address}}` + +- Finish editing the zone: + +`knotc zone-commit {{zone}}` + +- Get the current zone data: + +`knotc zone-read {{zone}}` + +- Get the current server configuration: + +`knotc conf-read server` diff --git a/tldr/linux/rcp b/tldr/linux/rcp index f56df08f..bbbcc004 100644 --- a/tldr/linux/rcp +++ b/tldr/linux/rcp @@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git - Copy a file to a remote host: -`rcp {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` +`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` - Copy a directory recursively: -`rcp -r {{path/to/local_directory}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` +`rcp -r {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` - Preserve the file attributes: -`rcp -p {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` +`rcp -p {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` - Force copy without a confirmation: -`rcp -f {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` +`rcp -f {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}` diff --git a/tldr/linux/semanage b/tldr/linux/semanage index a7502e92..0005f48b 100644 --- a/tldr/linux/semanage +++ b/tldr/linux/semanage @@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Set or unset permissive mode for a confined domain. Per-domain permissive mode allows more granular control compared to `setenforce`: -`sudo semenage permissive {{-a|--add|-d|--delete}} {{httpd_t}}` +`sudo semanage permissive {{-a|--add|-d|--delete}} {{httpd_t}}` - Output local customizations in the default store: diff --git a/tldr/osx/mist b/tldr/osx/mist new file mode 100644 index 00000000..61950541 --- /dev/null +++ b/tldr/osx/mist @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, osx] +source: https://github.com/tldr-pages/tldr.git +--- +# mist + +> MIST - macOS Installer Super Tool. +> Automatically download macOS Firmwares/Installers. +> More information: . + +- List all available macOS Firmwares for Apple Silicon Macs: + +`mist list firmware` + +- List all available macOS Installers for Intel Macs, including Universal Installers for macOS Big Sur and later: + +`mist list installer` + +- List all macOS Installers that are compatible with this Mac, including Universal Installers for macOS Big Sur and later: + +`mist list installer --compatible` + +- List all available macOS Installers for Intel Macs, including betas, also including Universal Installers for macOS Big Sur and later: + +`mist list installer --include-betas` + +- List only the latest macOS Sonoma Installer for Intel Macs, including Universal Installers for macOS Big Sur and later: + +`mist list installer --latest "macOS Sonoma"` + +- List and export macOS Installers to a CSV file: + +`mist list installer --export "{{/path/to/export.csv}}"` + +- Download the latest macOS Sonoma Firmware for Apple Silicon Macs, with a custom name: + +`mist download firmware "macOS Sonoma" --firmware-name "{{Install %NAME% %VERSION%-%BUILD%.ipsw}}"` + +- Download a specific macOS Installer version for Intel Macs, including Universal Installers for macOS Big Sur and later: + +`mist download installer "{{13.5.2}}" application` diff --git a/tldr/streamlit b/tldr/streamlit new file mode 100644 index 00000000..bc543e10 --- /dev/null +++ b/tldr/streamlit @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# streamlit + +> Framework for creating interactive, data-driven web apps in Python. +> More information: . + +- Check for the Streamlit installation: + +`streamlit hello` + +- Run your Streamlit application: + +`streamlit run {{project_name}}` + +- Display help: + +`streamlit --help` + +- Display version: + +`streamlit --version`