Skip to content

Instantly share code, notes, and snippets.

View enconti's full-sized avatar

Emerson Contiero enconti

View GitHub Profile
@enconti
enconti / variables_examples.tf
Last active April 14, 2023 15:32
Terraform Snippets
variable "teams" {
description = "Teams details"
type = map(object({
projects = set(string)
}))
default = {
Analytics : {
projects = ["Rappy"]
}
@enconti
enconti / cloud9_template_amz_2023.yaml
Last active July 4, 2024 17:20
cloud9-eks-cloudformation-template
AWSTemplateFormatVersion: '2010-09-09'
Description: Base stack to create a Cloud9 instance for use with Workspace Blueprint workspace
Parameters:
# Workspace Parameters
Cloud9IDEInstanceType:
Description: The type of instance to connect to the environment
Type: String
Default: t3.large
AllowedValues:
@enconti
enconti / Useful-Links.md
Last active June 30, 2023 20:29
knowledge development.md
@enconti
enconti / python-snippets.md
Last active December 30, 2022 14:12
Python Snippets

‎‎​

@enconti
enconti / golang-regex_key-value.go
Last active November 1, 2021 17:02
golang-snippets
package main
import (
"fmt"
"regexp"
"strings"
)
var rex = regexp.MustCompile(`(latest-version)=(v[0-9].+[0-9].+[0-9])`)
@enconti
enconti / verify-lets-encrypt.sh
Created September 24, 2021 18:14 — forked from renato-zannon/README.md
Verify if host will have Let's encrypt certificate validation problems
#!/bin/bash
set -euo pipefail
CERTS_DIR="$(openssl version -d | sed -E 's/OPENSSLDIR: "([^"]*)"/\1/')"
exec {ALL_CERTS_FD}< <(
(
[[ -r "${CERTS_DIR}/cert.pem" ]] && echo "${CERTS_DIR}/cert.pem"
[[ -d "${CERTS_DIR}/certs" ]] && find -L "${CERTS_DIR}/certs" -type f -name '*.pem'
@enconti
enconti / go_file_print.go
Created July 7, 2021 18:22 — forked from limboinf/go_file_print.go
golang print file content
//打印文件内容
package main
import (
"bufio"
"bytes"
"fmt"
"os"
"io"
"path/filepath"