Skip to content

Instantly share code, notes, and snippets.

View unacceptable's full-sized avatar
👑
Strange women lying in ponds distributing swords is no basis for a system of ...

Robert J. unacceptable

👑
Strange women lying in ponds distributing swords is no basis for a system of ...
View GitHub Profile
#!/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
#!/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"
#!/bin/bash
docker system prune -af --filter until=2h
#!/usr/bin/env python
# Written by: Robert J.
# Email: [email protected]
import secrets
import string
import logging
import sys
#######################################
main(){
install_efs_utils
mount_efs
}
install_efs_utils(){
git clone https://github.com/aws/efs-utils /tmp/efs-utils
cd /tmp/efs-utils
#!/bin/bash
jq -r .region <(curl -s 169.254.169.254/latest/dynamic/instance-identity/document)
#!/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)"
#!/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
#!/usr/bin/env bash
set -e
LOG_LEVEL='INFO'
NORMAL='\e[0m'
write_log(){
LOGGING="$1"
MESSAGE="$2"
TIMESTAMP="[$(date)]"
{
"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",