Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-26 00:14:22 +00:00
parent a7e9169550
commit e258e7ab99
5 changed files with 101 additions and 5 deletions

29
tldr/knotc Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# knotc
> Control knot DNS server.
> More information: <https://www.knot-dns.cz/docs/latest/html/man_knotc.html>.
- 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`

View File

@@ -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/}}`

View File

@@ -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:

42
tldr/osx/mist Normal file
View File

@@ -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: <https://github.com/ninxsoft/mist-cli>.
- 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`

25
tldr/streamlit Normal file
View File

@@ -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: <https://docs.streamlit.io/>.
- Check for the Streamlit installation:
`streamlit hello`
- Run your Streamlit application:
`streamlit run {{project_name}}`
- Display help:
`streamlit --help`
- Display version:
`streamlit --version`