Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/bin/bash | |
# Config Vars | |
MAX_IDLE_TIME_MINUTES=15 | |
GCP_COMPUTE_NAME=ml-workspace | |
GCP_COMPUTE_ZONE=asia-southeast2-c | |
GCP_COMPUTE_IS_STOPPED=0 | |
egress() { | |
echo "Exiting script...." |
#!/bin/bash | |
# Config Vars | |
MAX_IDLE_TIME_MINUTES=15 | |
GCP_COMPUTE_NAME=ml-node | |
GCP_COMPUTE_ZONE=us-central1-c | |
GCP_COMPUTE_IS_STOPPED=0 | |
egress() { | |
echo "Exiting script...." |
#!/bin/bash | |
# Requred packages to install: | |
# sudo, lsof, gcloud, | |
# CONFIG VARS=================== | |
LAST_RUN_CHECK_FILE_NAME="./last-run-check" #Place to store date time when last port check performed | |
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
RUNNING_PROCESS_NAME=code-fabd | |
MAX_LAST_RUN_MINUTES=20 |
package main | |
/** | |
* @website http://albulescu.ro | |
* @author Cosmin Albulescu <[email protected]> | |
*/ | |
import ( | |
"bytes" | |
"fmt" |
package main | |
//https://play.golang.org/p/_iu24fTdt57 | |
import ( | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
str := `an..19` //https://en.wikipedia.org/wiki/ISO_8583#Examples_3 |
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
errStr := `rpc error: code = AlreadyExists desc = multiple write errors: [{write errors: [{E11000 duplicate key error ` + | |
`collection: mai_webmin_inventory_service.groups index: unique_name dup key: { name: "aa1234" }}]}, {<nil>}]` |