Skip to content

Instantly share code, notes, and snippets.

View robbwagoner's full-sized avatar

Robb Wagoner robbwagoner

View GitHub Profile
@robbwagoner
robbwagoner / questions.txt
Created October 25, 2015 12:43
AWS Support: ELB Pre-warm questionaire
1. What is the DNS name for the ELB(s) that require manual scaling?
2. Event start date/time - If traffic has already started, is the lack of this prewarm causing impact to a live application?
3. Event end date/time
4. Expected percent of traffic going through the ELB that will be using SSL termination.
5. An approximate percentage increase in traffic, and expected requests/sec that will go through the load balancer
@robbwagoner
robbwagoner / amazon-es-version.json
Last active October 1, 2015 22:45
Amazon Elasticsearch uses ES v1.5.2
curl -XGET http://search-staging-xrxturcxyl4vnevsiocff54tai.us-east-1.es.amazonaws.com/
{
"status" : 200,
"name" : "Rahne Sinclair",
"cluster_name" : "123456789012:staging",
"version" : {
"number" : "1.5.2",
"build_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",
"build_timestamp" : "2015-04-27T09:21:06Z",
"build_snapshot" : false,

Keybase proof

I hereby claim:

  • I am robbwagoner on github.
  • I am robbwagoner (https://keybase.io/robbwagoner) on keybase.
  • I have a public key whose fingerprint is 89E5 CA6F 7326 63D8 31ED DDC6 3016 875D 0CA0 FE13

To claim this, I am signing this object:

@robbwagoner
robbwagoner / boto-logging.py
Created September 8, 2015 16:58
Boto logging level change
# https://stackoverflow.com/questions/1661275/disable-boto-logging-without-modifying-the-boto-files
import logging
logging.getLogger('boto').setLevel(logging.CRITICAL)
@robbwagoner
robbwagoner / user-data.yml
Created August 26, 2015 13:48
Jenkins Slave
#cloud-config
hostname:
fqdn:
manage_etc_hosts: localhost
package_update: true
package_upgrade: true
runcmd:
# OpenJDK 8
- apt-add-repository ppa:openjdk-r
@robbwagoner
robbwagoner / git-master-reset.sh
Created June 8, 2015 13:59
When things go wrong with Git pull --rebase
# Do this almost always - don't `git merge`
git pull --rebase
# but, do this if it ^ is bollocksed...
git checkout -b master-copy && git checkout master && git reset --hard origin/master
# now figure out what needs to go into branch master
@robbwagoner
robbwagoner / E01774C4.asc
Last active August 29, 2015 14:21
Robb Wagoner PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFVg8cEBEACq6wkaVXMgMWtVi0My871tF+NquWuRm3kvXUPu2wq+DRNI7SVO
v1SgM8NWlcS/Tw5BTjPWE0ghCh9tQLEgnSVdfF1sXywS/EbA291wG+Uu/LldnF32
rfErP4hShqy9wD8GWQHZMQByF6KXF1lL3BIfHjiH43emgzAw6HmGhWrwI70C2rPO
ftnrAHCr9kQZcHOBE84jiNo1Q/4tLG9HWGHaqTDBPkRBZy02cHJQxV6GHaFip16q
z25R2fyN1Tgvy5JWrDbLsVDizS6wInmYjrGWDY5YVdD5n2Me3Ug8DjBaRw0mctpB
bPBS59CJQM8H4SR0h3Tra1+r3HpIrWfm/Q0z+VSWsp0RAzenkdajo8T036wXy3pJ
ns5k1fpMZ6BFwBTlv4bnGJnECZiqWkzYeZcubw1zxRvhbO+RmlgMSQPGTnOK2GEw
#!/usr/bin/python
DOCUMENTATION = '''
---
module: git_facts
version_added: "devel"
short_description: retrieve facts about a git repository
description:
- retrieve facts about a git repository. This module has a dependency on GitPython.
options:
---
- name: OSX
local_action:
module: osx_say
msg: "{{ slack_msg | default('Playbook is done.') }}"
voice: "Samantha"
when: hostvars['localhost'].ansible_os_family is defined and
hostvars['localhost'].ansible_os_family == "Darwin"
@robbwagoner
robbwagoner / ebs-archive.py
Last active August 29, 2015 14:15
Create archive snapshots of unused EBS Volumes for an AWS Region; does not delete volumes, but does tag 'archived':'yes'
#!/usr/bin/env python2.7
"""
Archive (snapshot) unused (available) EBS volumes.
Volumes and Snapshots are tagged: 'archived'='yes'.
Volumes are otherwise untouched. I.e. they are NOT DELETED.
Copyright 2015 Robb Wagoner [email protected]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.