Glossary:
- md: multiple devices
| command | description |
|---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. | |
| # Protection from SYN flood attack. | |
| net.ipv4.tcp_syncookies = 1 |
CTRL + A — Move to the beginning of the lineCTRL + E — Move to the end of the lineCTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)CTRL + U — (bash) Clear the characters on the line before the current cursor positionCTRL + U —(zsh) If you're using the zsh, this will clear the entire lineCTRL + K — Clear the characters on the line after the current cursor positionESC + [backspace] — Delete the word in front of the cursor| --- | |
| - hosts: all | |
| tasks: | |
| - name: Install prerequisites for Docker repository | |
| apt: | |
| name: ['apt-transport-https', 'ca-certificates', 'curl', 'gnupg2', 'software-properties-common'] | |
| update_cache: yes | |
| - name: Add Docker GPG key | |
| apt_key: url=https://download.docker.com/linux/ubuntu/gpg |
#!/bin/ruby --verion => 2.0.0-p353
In Ruby, self is a special variable that always references the current object.
| # download binary openssl packages from Impish builds | |
| wget http://ports.ubuntu.com/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2_arm64.deb | |
| wget http://ports.ubuntu.com/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2_arm64.deb | |
| wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb | |
| # install downloaded binary packages | |
| sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb | |
| sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2_arm64.deb | |
| sudo dpkg -i openssl_1.1.1f-1ubuntu2_arm64.deb |