Skip to content

Instantly share code, notes, and snippets.

View irlevesque's full-sized avatar

Ian Levesque irlevesque

View GitHub Profile
@irlevesque
irlevesque / gist:0e15391910d934126c03f809665424da
Created June 8, 2017 16:25 — forked from sebsto/gist:468670c7c0d5feeade69
AWS CLI : discover your service limits from the command line
aws support describe-trusted-advisor-check-result --check-id eW7HH0l7J9 --query 'result.sort_by(flaggedResources[?status!="ok"],&metadata[2])[].metadata' --output table --region us-east-1
@irlevesque
irlevesque / README.md
Created June 6, 2017 20:33 — forked from joelthompson/README.md
Vault Auth
#!/bin/bash
#
# vault-ec2-auth.sh
# Authenticates an EC2 instance to Hashicorp Vault
#
# configuration stored in environment variables in /etc/vault/client.conf
# expected configuration (defaults are selected below if none is specified):
# VAULT_ADDR = url of vault server
# VAULT_ROLE = role name to authenticate as
@irlevesque
irlevesque / change_db_owner.sh
Created August 14, 2012 15:15 — forked from gingerlime/change_db_owner.sh
Postgresql - Changing ownership on all tables
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto