Skip to content

Instantly share code, notes, and snippets.

Tracy Phillips tracphil

Block or report user

Report or block tracphil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tracphil / Autotag Role
Created Jul 23, 2019 — forked from jmturwy/Autotag Role
AWS - AutoTag Snapshot's from Cloudwatch
View Autotag Role
"Version": "2012-10-17",
"Statement": [
"Action": [
"Resource": [
tracphil /
Created Jul 2, 2019 — forked from danpritts/
Automatically tag EC2 snapshots and volumes based on their attached AMIs/instances
# most credit to the original:
# Tag snapshots based on their associated AMI and volumes based on attached instance.
# format:
# (AMI:db5|db5) /dev/sda1 (1/4)
# (AMI:db5|db5) /dev/sdb (2/4)
# Best practice: create IAM user
# Simplest privilege to get it to work with reasonable security: use predefined policy "ReadOnlyAccess"
tracphil /
Created Jun 21, 2019 — forked from neilstuartcraig/
List of AWS availability zones for each AWS region
AWS region code AWS region name Number of AZs AZ names
us-east-1 Virginia 4 us-east-1a, us-east-1b, us-east-1c, us-east-1e
us-west-1 N. California 2 us-west-1a, us-west-1b
us-west-2 Oregon 3 us-west-2a, us-west-2b, us-west-2c
eu-west-1 Ireland 3 eu-west-1a, eu-west-1b, eu-west-1c
eu-central-1 Frankfurt 2 eu-central-1a, eu-central-1b
ap-southeast-1 Singapore 2 ap-southeast-1a, ap-southeast-1b
ap-southeast-2 Sydney 2 ap-southeast-2a, ap-southeast-2b, ap-southeast-2c
ap-northeast-1 Tokyo 2 ap-northeast-1a, ap-nort
tracphil /
Created Jun 20, 2019 — forked from leonardofed/
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

View nginx-cloudfront-ip.sls
- installed
- watch:
- file: /etc/nginx/nginx.conf
- cmd: /etc/nginx/cloudfront.conf

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
tracphil /
Created Jan 9, 2019 — forked from christopher-hopper/
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

tracphil / .gitlab-ci.yml
Created Jan 9, 2019 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
View .gitlab-ci.yml
# Reference:
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
tracphil / pillar.sls
Created Jan 9, 2019 — forked from anlutro/pillar.sls
IPtables salt state+pillar
View pillar.sls
{# allow outgoing traffic #}
{% macro outgoing(name, protocol, port, family, enable=true) %}
{{ name }}-{{ family }}-{{ protocol }}-{{ port }}-outgoing:
family: {{ family }}
chain: OUTPUT
jump: ACCEPT
protocol: {{ protocol }}
dport: {{ port }}
enable: {{ enable }}
tracphil / reactor.conf
Created Jan 9, 2019 — forked from xenophonf/reactor.conf
Salt reactor example
View reactor.conf
- 'salt/key':
- salt://salt-key-accepted.sls
You can’t perform that action at this time.