Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Rhea arhea

View GitHub Profile
@arhea
arhea / fips-cli.sh
Last active Jun 2, 2020
FIPS 140-2 Endpoint Tester
View fips-cli.sh
#!/bin/bash -e
usage() {
cat << EOF
usage: $0 <url> <path>
URL: <hostname>:<port>
Path: /
EOF
@arhea
arhea / eksctl.yml
Last active Jun 15, 2020
Forwarding Logs to Cloudwatch Using Firelens
View eksctl.yml
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: logging-demo-cluster
region: us-east-2
vpc:
cidr: "10.1.0.0/16"
clusterEndpoints:
@arhea
arhea / dump1090.bash
Created Dec 16, 2019
Install Piaware on Raspberry Pi Running Ubuntu
View dump1090.bash
#!/bin/bash
# create directory
mkdir -p /usr/src
cd /usr/src
# update the os
apt-get update -y && apt-get upgrade -y
# install dependencies
View docker-secrets-usage.js
'use strict';
const secrets = require('docker-secrets');
# object containing key value pairs of secrets
console.log(secrets);
@arhea
arhea / install.sh
Created May 9, 2017
ETA Blog - Install docker-secrets module
View install.sh
npm install docker-secrets --save
@arhea
arhea / Dockerfile
Created Jan 28, 2017
HA Cassandra Dockerfile
View Dockerfile
FROM cassandra:2.1
ENV ETCD_VERSION v3.0.15
RUN DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download \
&& apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -L ${DOWNLOAD_URL}/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
&& mkdir -p /tmp/etcd-${ETCD_VERSION} \
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-${ETCD_VERSION} --strip-components=1 \
&& cp /tmp/etcd-${ETCD_VERSION}/etcdctl /bin \
@arhea
arhea / setup.sh
Created Jan 20, 2017
Ubuntu 16.04 LTS Docker Setup
View setup.sh
#!/bin/bash
set -ex
apt-get update -y && apt-get upgrade -y
apt-get install -y linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
unzip \
git \
python \
@arhea
arhea / packer.json
Created Jan 20, 2017
Ubuntu 16 Packer.json
View packer.json
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_account_id": "",
"aws_region": ""
},
"builders": [
{
"type": "amazon-ebs",
@arhea
arhea / build.sh
Last active Jan 20, 2017
Docker AMI Build with Packer
View build.sh
#!/bin/bash
set -ex
echo "Gathering AWS Credentials..."
AWS_ACCESS_KEY=$(aws configure get aws_access_key_id --profile=$1)
AWS_SECRET_KEY=$(aws configure get aws_secret_access_key --profile=$1)
AWS_REGION=$(aws configure get region --profile=$1)
AWS_ACCOUNT_ID=$(aws ec2 describe-security-groups --group-names 'Default' --query 'SecurityGroups[0].OwnerId' --output text --profile=$1)
@arhea
arhea / rexray_example.sh
Created Jan 11, 2017
Using RexRay on Amazon Web Services
View rexray_example.sh
#!/bin/bash
# create example EFS mount point
docker volume create --driver=efs --name=example-efs
# create example EBS disk within this availability zone
docker volume create --driver=ebs --name=example-ebs
# run an example container with EBS mount
docker run -it --rm -v example-ebs:/data --volume-driver=ebs busybox sh