This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "=== SYSTEM SPEC CHECK ===" | |
| echo | |
| # CPU | |
| echo "-- CPU --" | |
| lscpu | grep -E 'Model name|CPU\(s\)' || echo "CPU info unavailable" | |
| echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| privateKey, err := rsa.GenerateKey(rand.Reader,2048) | |
| privKey := pem.EncodeToMemory(&pem.Block{ | |
| Type: "RSA PRIVATE KEY", | |
| Bytes: x509.MarshalPKCS1PrivateKey(privateKey), | |
| }) | |
| pubKey := pem.EncodeToMemory(&pem.Block{ | |
| Type: "RSA PUBLIC KEY", | |
| Bytes: x509.MarshalPKCS1PublicKey(&privateKey.PublicKey), | |
| }) |