lscpu | grep -i VirtualizationVT-xfor IntelAMD-Vifor AMD
| #!/bin/sh | |
| # Referenced this stackoverflow answer by John1024: https://stackoverflow.com/a/28353785/2372698 | |
| uptime -p >/dev/null 2>&1 | |
| if [ "$?" -eq 0 ]; then | |
| # Supports most Linux distro | |
| # when the machine is up for less than '0' minutes then | |
| # 'uptime -p' returns ONLY 'up', so we need to set a default value | |
| UP_SET_OR_EMPTY=$(uptime -p | awk -F 'up ' '{print $2}') |
| #!/usr/bin/env bash | |
| # Author: Ioannis Angelakopoulos <[email protected]> | |
| # Date: 18/01/2019 | |
| ########################### | |
| # REQUIREMENTS | |
| ########################### | |
| # | |
| # * Required commands: |
# Generate a new RSA 4096bit(default is 2048bits) key
# and encrypt it with a passphrase based on AES CBC 256 cipher:
openssl genrsa -aes256 -out private_key.pem 4096
# Generate a new RSA 4096bit(default is 2048bits) key without a passphrase:
openssl genrsa -out private_key.pem 4096