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
mydir=/home/ec2-user/certs | |
truststore=${mydir}/rds-truststore.jks | |
storepassword=sysbench | |
mkdir /home/ec2-user/certs | |
curl -sS "https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem" > ${mydir}/rds-combined-ca-bundle.pem | |
awk 'split_after == 1 {n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}{print > "rds-ca-" n ".pem"}' < ${mydir}/rds-combined-ca-bundle.pem | |
for CERT in rds-ca-*; do | |
alias=$(openssl x509 -noout -text -in $CERT | perl -ne 'next unless /Subject:/; s/.*(CN=|CN = )//; print') |
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
// Auth0 custom rule | |
// Add Github Organizations to the user metadata | |
// | |
// This rule need the following configurations values | |
// AUTH0_DOMAIN_NAME: your auth0 domain name | |
// MANAGEMENT_CLIENT_ID: your auth0 management api client id | |
// MANAGEMENT_CLIENT_SECRET: your auth0 management api client secret | |
// | |
// You have to create an Management API Application with proper | |
// scope to allow rule to fetch user organizations. |
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
#!/usr/bin/env bash | |
: ${BINARY_NAME:="terragrunt"} | |
: ${USE_SUDO:="true"} | |
: ${DEBUG:="false"} | |
: ${TERRAGRUNT_INSTALL_DIR:="/usr/local/bin"} | |
HAS_CURL="$(type "curl" &> /dev/null && echo true || echo false)" | |
HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)" |
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
#!/usr/bin/env bash | |
: ${BINARY_NAME:="helmfile"} | |
: ${USE_SUDO:="true"} | |
: ${DEBUG:="false"} | |
: ${HELMFILE_INSTALL_DIR:="/usr/local/bin"} | |
HAS_CURL="$(type "curl" &> /dev/null && echo true || echo false)" | |
HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)" |
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
#!/usr/bin/env bash | |
: ${BINARY_NAME:="kubeval"} | |
: ${USE_SUDO:="true"} | |
: ${DEBUG:="false"} | |
: ${KUBEVAL_INSTALL_DIR:="/usr/local/bin"} | |
HAS_CURL="$(type "curl" &> /dev/null && echo true || echo false)" | |
HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)" |
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
#!/usr/bin/env bash | |
: ${BINARY_NAME:="velero"} | |
: ${USE_SUDO:="true"} | |
: ${DEBUG:="false"} | |
: ${VELERO_INSTALL_DIR:="/usr/local/bin"} | |
HAS_CURL="$(type "curl" &> /dev/null && echo true || echo false)" | |
HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)" |