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 | |
BUCKET= | |
PROFILE_OTHER= | |
PROFILE_MINE= | |
DATE=$(date +%Y-%m-%dT%H:00:00) | |
IFS=$'\t' |
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
# tested on Mysql 5.7-8 | |
# set database schema name to run against | |
SET @db_name = "DBNAME"; | |
# actual query, two columns resulted: table name and its rows count | |
SELECT | |
TABLE_NAME, | |
SUM(TABLE_ROWS) as c | |
FROM |
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
aws sts --profile "${PROFILE:=default}" get-caller-identity --output text --query 'Account' |
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 | |
# @description : retrieves DNS zone records for a domain hosted on AWS Route53 | |
# @usage : bash get-route53-domain-records.sh example.com | |
# @requirements: proper awscli v2 setup | |
# @input : domain name, you own! | |
# @output : text formatted records | |
DOMAIN=$1 | |
test -z "$DOMAIN" && { echo "ERROR: no domain value is set" && exit -1; } |
OlderNewer