Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-16 00:19:50 +00:00
parent a1a54e1c6b
commit 38ecb2b6c5
3 changed files with 64 additions and 0 deletions

14
tldr/cisco-ios/crypto Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, cisco-ios]
source: https://github.com/tldr-pages/tldr.git
---
# crypto
> Manage cryptography.
> Accessed in configuration mode.
> More information: <https://www.cisco.com/c/en/us/td/docs/security/asa/asa-cli-reference/A-H/asa-command-ref-A-H/crypto-is-cz-commands.html>.
- Generate an `rsa` key:
`crypto key generate rsa`

21
tldr/linux/hd-idle Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# hd-idle
> Spin down external disks after a period of idle time.
> More information: <https://manned.org/hd-idle>.
- Start a service to manage hard drive spin down. By default hard disks will spin down after 10 minutes of inactivity:
`systemctl start hd-idle`
- Spin down a disk immediately:
`hd-idle -t {{/dev/sdX}}`
- Set disks to never spin down, then set explicit idle times (in seconds) for disks which have "sda" or "sdb" in their device name:
`hd-idle -i 0 -a /dev/sda -i {{300}} -a /dev/sdb -i {{1200}}`

29
tldr/openstack-flavor Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# openstack flavor
> Manage OpenStack instance flavors (virtual hardware templates).
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/flavor.html>.
- List all flavors:
`openstack flavor list`
- Show details of a flavor:
`openstack flavor show {{flavor_id_or_name}}`
- Create a new flavor with 2 vCPUs, 4GB RAM, and 20GB disk:
`openstack flavor create {{flavor_name}} --vcpus 2 --ram 4096 --disk 20`
- Delete a flavor:
`openstack flavor delete {{flavor_id_or_name}}`
- Create a flavor with 10GB ephemeral disk and 512MB swap space:
`openstack flavor create {{flavor_name}} --vcpus 4 --ram 8192 --disk 40 --ephemeral 10 --swap 512`