Skip to content

Instantly share code, notes, and snippets.

Jerridan Quiring jerridan

Block or report user

Report or block jerridan

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
@jerridan
jerridan / permission_finder.rb
Last active Oct 23, 2017
Helper to find (most) AWS permissions for Terraform
View permission_finder.rb
#!/usr/bin/ruby
# frozen_string_literal: true
# Instructions:
# Set TF_LOG=debug and run `terraform apply > apply_log.txt`, followed by `terraform destroy > destroy_log.txt`
# Run this script (permission_finder.rb) with those log files => `permission_finder.rb apply_log.txt destroy_log.txt`
# This script will parse through the requests that Terraform made to AWS. Note that it is NOT perfect.
# There are some 'gotchas' I've seen that are noted below in the TODO section.
View keybase.md

Keybase proof

I hereby claim:

  • I am jerridan on github.
  • I am jerridan (https://keybase.io/jerridan) on keybase.
  • I have a public key ASAKMFL6LttF_k4Xs3MJWcoh51JCFnF_YQSbXvJWFwPe5go

To claim this, I am signing this object:

@jerridan
jerridan / install_phpunit.sh
Created Aug 1, 2014
Install PHPUnit on a vagrant machine
View install_phpunit.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "$(tput setaf 1)This script must be run as root$(tput sgr 0)" 1>&2
exit 1
fi
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/bin/phpunit
You can’t perform that action at this time.