Skip to content

Instantly share code, notes, and snippets.

View irlevesque's full-sized avatar

Ian Levesque irlevesque

View GitHub Profile
@irlevesque
irlevesque / bumpme
Last active October 12, 2018 17:38
bumpme
Fri Oct 12 17:38:41 UTC 2018

Keybase proof

I hereby claim:

  • I am irlevesque on github.
  • I am ianquantopian (https://keybase.io/ianquantopian) on keybase.
  • I have a public key ASC5Tt9-YjFK5tSmCoFCIBdPM1Wie6b7pWh2PsCHhY73pwo

To claim this, I am signing this object:

@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
diff -u a/SConstruct b/SConstruct
--- a/SConstruct 2015-10-04 14:03:55.000000000 +0100
+++ b/SConstruct 2015-10-04 14:04:47.000000000 +0100
@@ -307,7 +307,7 @@
0, False)
if darwin:
- osx_version_choices = ['10.6', '10.7', '10.8', '10.9']
+ osx_version_choices = ['10.6', '10.7', '10.8', '10.9', '10.10', '10.11', '10.12']
add_option("osx-version-min", "minimum OS X version to support", 1, True,
@irlevesque
irlevesque / readme.md
Created September 15, 2016 17:42
keybase

Keybase proof

I hereby claim:

  • I am irlevesque on github.
  • I am irl (https://keybase.io/irl) on keybase.
  • I have a public key ASDvA4kEk0yWBmP3lXUt8B0lYezyQ1dRZB6oKHjr4A79Qwo

To claim this, I am signing this object:

@irlevesque
irlevesque / jinja2_templating.py
Created September 7, 2016 14:08
Testing jinja templating in python REPL
>>> from jinja2 import Template
>>> tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %}
... hello {{name}}, how are you?{% endif %}"""
>>> template = Template(tmpl)
>>> print template.render({"name": "Jeff"})
hello Jeff, how are you?
>>> print template.render({"name": "John"})
Nothing to see here move along
>>>
|____all_aws
| |____ec2.ini
| |____ec2.py
| |____group_vars
| | |____all
| |____shared
|____development
| |____ec2.ini
| |____ec2.py
| |____group_vars
|____all_aws
| |____ec2.ini
| |____ec2.py
| |____group_vars
| | |____all
| |____shared
|____development
| |____ec2.ini
| |____ec2.py
| |____group_vars