Skip to content

Instantly share code, notes, and snippets.

:shipit:
Loading

Marcelo Clavel mclavel

:shipit:
Loading
  • SCL
Block or report user

Report or block mclavel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View self-signed-certificate-with-custom-ca.md

Create Root CA (Done once)

Create Root Key

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
View postalcode_CL.sh
#!/bin/sh
COMUNA='Santiago'
CALLE='Andres Bello'
NUMERO='2425'
curl -sG 'http://codigopostal.correos.cl:5004/' \
--data-urlencode 'calle='"$CALLE" \
--data-urlencode 'comuna='"$COMUNA" \
--data-urlencode 'numero='"$NUMERO" \
View gcp2.tf
resource "google_container_cluster" "cluster" {
name = "example"
zone = "us-central1-a"
initial_node_count = 1
}
resource "google_container_node_pool" "pool" {
name = "pool"
cluster = "${google_container_cluster.cluster.name}"
zone = "us-central1-a"
View gcp1.tf
resource "google_container_cluster" "cluster" {
name = "example"
zone = "us-central1-a"
initial_node_count = 1
}
resource "google_container_node_pool" "pool" {
name = "pool"
cluster = "${google_container_cluster.cluster.name}"
zone = "us-central1-a"
View main4.tf
resource "random_string" "password" {
 length = 16
 special = true
}
resource "mysql_user" "root" {
 user = "root"
 host = "example.com"
 plaintext_password = "${sha256(bcrypt(random_string.password.result))}"
lifecycle {
View main3.tf
resource "random_string" "password" {
 length = 16
 special = true
}
resource "mysql_user" "root" {
 user = "root"
 host = "example.com"
 plaintext_password = "${sha256(bcrypt(random_string.password.result))}"
}
View main2.tf
resource "random_string" "password" {
 length = 16
 special = true
}
resource "mysql_user" "root" {
 user = "root"
 host = "example.com"
 plaintext_password = "${random_string.password.result}"
}
View main1.tf
resource "mysql_user" "root" {
 user = "root"
 host = "example.com"
 plaintext_password = "securepassword"
}
You can’t perform that action at this time.