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 python | |
# This was heavily modified from the source module, | |
# but backwards compatibility should be in place. | |
from __future__ import print_function | |
import os | |
import sys | |
import boto3 | |
import base64 | |
import urllib.request, urllib.parse |
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 | |
# shellcheck disable=SC1117 | |
set -e | |
ENVIRONMENT="$1" | |
CREDS_FILE="${PWD:-"."}/account.json" | |
RED="\e[31m" | |
YELLOW="\e[33m" | |
NORMAL="\e[0m" |
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 | |
docker system prune -af --filter until=2h |
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 python | |
# Written by: Robert J. | |
# Email: [email protected] | |
import secrets | |
import string | |
import logging | |
import sys | |
####################################### |
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
main(){ | |
install_efs_utils | |
mount_efs | |
} | |
install_efs_utils(){ | |
git clone https://github.com/aws/efs-utils /tmp/efs-utils | |
cd /tmp/efs-utils |
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 | |
jq -r .region <(curl -s 169.254.169.254/latest/dynamic/instance-identity/document) |
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 | |
set -e | |
CA_KEY=/etc/ssl/ca-key.pem | |
CA_CERT=/etc/ssl/ca-cert.pem | |
SERVER_KEY=/etc/ssl/server-key.pem | |
SERVER_REQ=/etc/ssl/server-req.pem | |
SERVER_CERT=/etc/ssl/server-cert.pem | |
SERVER_SUBJ="/C=US/ST=Texas/L=Dallas/O=Aztek/CN=$(hostname -f)" |
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/sh | |
if ! command -v google-chrome > /dev/null; then | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update; | |
sudo apt-get -y upgrade; | |
sudo dpkg -i google-chrome-stable_current_amd64.deb || { | |
sudo apt-get --fix-broken -y upgrade; | |
sudo dpkg -i google-chrome-stable_current_amd64.deb |
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 | |
set -e | |
LOG_LEVEL='INFO' | |
NORMAL='\e[0m' | |
write_log(){ | |
LOGGING="$1" | |
MESSAGE="$2" | |
TIMESTAMP="[$(date)]" |
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
{ | |
"editor.lineNumbers": "on", | |
"terminal.integrated.fontFamily": "DejaVu Sans Mono for Powerline", | |
"python.pythonPath": "/usr/local/bin/python3", | |
"window.zoomLevel": 1, | |
"workbench.colorTheme": "Monokai", | |
"files.trimTrailingWhitespace": true, | |
"cSpell.userWords": [ | |
"Rsyslog", | |
"firewalld", |