Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Rhea arhea

View GitHub Profile
@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 / 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 / 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
@arhea
arhea / rexray_install.sh
Created Jan 11, 2017
Install and Configure RexRay with Docker
View rexray_install.sh
#!/bin/bash
curl -sSL https://dl.bintray.com/emccode/rexray/install | sh
cat > /etc/rexray/config.yml <<'EOF'
rexray:
modules:
default-docker:
disabled: true
efs-docker:
@arhea
arhea / capistrano-laravel-deploy.rb
Last active Jul 12, 2017
Capistrano 3 deploy script for Laravel 4.
View capistrano-laravel-deploy.rb
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, "" # EDIT your app name
set :scm, :git
set :repo_url, "" # EDIT your git repository
set :keep_releases, 3
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 / 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 / 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 / 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)