Skip to content

Instantly share code, notes, and snippets.

View dan-petty's full-sized avatar

Daniel Petty dan-petty

View GitHub Profile
@dan-petty
dan-petty / AWSDocsTOC.js
Last active October 18, 2018 18:24
Improve AWS Docs Table of Contents usability with this greasemonkey script
// ==UserScript==
// @name AWSDocsTOC
// @version 1.0
// @description Configure AWS Table of Contents
// @author Dan Petty
// @match *://docs.aws.amazon.com/*
// ==/UserScript==
(function() {
'use strict';

Keybase proof

I hereby claim:

  • I am mixmatch on github.
  • I am dpetty (https://keybase.io/dpetty) on keybase.
  • I have a public key ASAjTTNhHH9cX11fQ1de7pnBCFL3XcVS0zFROFQnjbzB8go

To claim this, I am signing this object:

{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"aws_session_token": "{{env `AWS_SESSION_TOKEN`}}",
"source_ami": ""
},
"builders": [
{
"type": "amazon-ebs",
@dan-petty
dan-petty / ldif-to-csv.sh
Created September 28, 2015 18:40 — forked from dansimau/ldif-to-csv.sh
Shell script that reads LDIF data from STDIN and outputs as CSV.
#!/bin/bash
#
# Converts LDIF data to CSV.
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them.
#
# 2010-03-07
# dsimmons@squiz.co.uk
#
# Show usage if we don't have the right params