Skip to content

Instantly share code, notes, and snippets.

View DoctahPopp871's full-sized avatar

apopp DoctahPopp871

  • New York NY
View GitHub Profile
0.0 TEL | Telepresence 0.95 launched at Mon Dec 10 02:55:56 2018
0.0 TEL | /usr/bin/telepresence --namespace humandb-01 --swap-deployment hdb-adv-api --expose 5500 --run yarn run dev
0.0 TEL | Platform: linux
0.0 TEL | Python 3.5.2 (default, Nov 12 2018, 13:43:14)
0.0 TEL | [GCC 5.4.0 20160609]
0.0 TEL | [1] Running: uname -a
0.0 1 | Linux ba215df0b568 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
0.0 TEL | BEGIN SPAN main.py:47(main)
0.0 TEL | BEGIN SPAN startup.py:55(__init__)
0.0 TEL | [2] Capturing: kubectl version --short
@DoctahPopp871
DoctahPopp871 / assume_role_creds.rb
Created December 6, 2016 19:15
Assume Role ruby SDK. Assume role and call specific sdk method using commandline opts.
#!/usr/bin/env ruby
require 'rubygems'
require 'optparse'
require 'aws-sdk-core'
require 'pry'
options = {}
OptionParser.new do |opts|
#Fact : ec2_tags
#
#Purpose : To provide the ec2_tags of an instance.
#
#Resolution : Retrieve the ec2_tags for the instance by querying the machine.
#
#
Facter.add(:ec2_tags) do
@DoctahPopp871
DoctahPopp871 / ec2_autosign.rb
Last active January 30, 2016 19:08
This gist is based off of the work done by mrzarquan here https://github.com/mrzarquon/mrzarquon-certsigner/blob/master/templates/autosign-iam.rb.erb Modified to use the aws-sdk-core gem to increase flexibility of retrieving additional tags to inject into csr.
#!/opt/puppetlabs/puppet/bin/ruby
# Andrew Popp
# ServiceChannel.com
# Auto Cert Signing executable for Policy based cert signing. Utilizes the aws-sdk and puppet components.
# v1.0
require 'rubygems'
require 'aws-sdk-core'
require 'puppet'