Skip to content

Instantly share code, notes, and snippets.

View p0bailey's full-sized avatar
😃
"A smooth sea never made a skilled sailor."

Phillip Bailey p0bailey

😃
"A smooth sea never made a skilled sailor."
View GitHub Profile
@p0bailey
p0bailey / Makefile
Last active March 27, 2021 09:22
Terraform Makefile
MAKEFLAGS += --silent
.PHONY: all init plan apply show destroy output graph
all:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
init: ## Initialize a new or existing Terraform configuration
terraform validate
terraform init
@p0bailey
p0bailey / covid19-tmux-dashboard.md
Last active April 17, 2020 19:33
Covid19 Tmux Dashboard
#!/bin/sh
## Requirements: tmux curl watch.
tmux new-session -d
tmux split-window -d -t 0 -h
tmux split-window -d -t 0 -v
tmux split-window -d -t 2 -v
# Use Alt-arrow keys without prefix key to switch panes
@p0bailey
p0bailey / covid-19.md
Last active March 26, 2020 21:14
A curated list of resources to stay informed, healthy and productive during covid-19 (AKA coronavirus) pandemic.
@p0bailey
p0bailey / README.md
Last active August 1, 2019 00:01
Terraform Module README

demo terraform module

A terraform module to provide a in AWS/AZURE/ETC,ETC.

This should be used an a generic template to be included in every terraform module.

Module Input Variables

Keybase proof

I hereby claim:

  • I am p0bailey on github.
  • I am pbailey (https://keybase.io/pbailey) on keybase.
  • I have a public key ASDSpj5zlX60WPiiEg200dB4W0x3_fwiwgFcOXIFwPmRlQo

To claim this, I am signing this object:

General

Q: Are Amazon EBS volume and snapshot ID lengths changing in 2018?

Yes, please visit the EC2 FAQ page for more details.

Q: What happens to my data when an Amazon EC2 instance terminates?

Unlike the data stored on a local instance store (which persists only as long as that instance is alive), data stored on an Amazon EBS volume can persist independently of the life of the instance. Therefore, we recommend that you use the local instance store only for temporary data. For data requiring a higher level of durability, we recommend using Amazon EBS volumes or backing up the data to Amazon S3. If you are using an Amazon EBS volume as a root partition, set the Delete on termination flag to "No" if you want your Amazon EBS volume to persist outside the life of the instance.

@p0bailey
p0bailey / Amazon-S3-FAQs.md
Last active August 9, 2018 14:01
Amazon S3 FAQs

General S3 FAQs

Q: What is Amazon S3?

Amazon S3 is object storage built to store and retrieve any amount of data from anywhere on the Internet. It’s a simple storage service that offers an extremely durable, highly available, and infinitely scalable data storage infrastructure at very low costs.

Q: What can I do with Amazon S3?