Skip to content

Instantly share code, notes, and snippets.

// Google Sheets Script
//
// 1. In the Tools Menu, select "Script Editor"
// 2. Paste this in replacing all text in the script editor
// 3. Click disk icon to "Save Project"
// 4. Refresh spreadsheet
// 5. Be patient and a new "Custom" menu will appear
//
// add a single row to every sheet in the current spreadsheet
function addRowToEverySheet() {

ensure clean plan

taint

e.g. terraform taint --module=vpc.lbs aws_instance.this.1

remove from cluster

set host and fingerprint in user data

first time to 2 or 3

then to 1 when doing 2 and 3

apply

double check plan

ami diff

@ehershey
ehershey / incognitoTrick.js
Last active July 9, 2018 22:12 — forked from matyasfodor/incognitoTrick.js
Tampermonkey script to fake incognito check
// ==UserScript==
// @name Incognito trick
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Prevent sites detecting if you're in incognito by calling the success callback of webkitRequestFileSystem even if it's failing.
// @author You
// @run-at document-start
// @match http://www.cnbc.com/*
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am ehershey on github.
  • I am ehershey (https://keybase.io/ehershey) on keybase.
  • I have a public key ASDAlXz05PmSafUYDLsxCJk-vNoiPWG52a1xvTYvMXdJ5go

To claim this, I am signing this object:

#!/usr/bin/perl
# input is TSV in format with headers below from spreadsheet e.g. https://docs.google.com/spreadsheets/d/19itb2SErcZXT8AeCPylTZ0pXaTyZMwl5ncsGZ0ajsJM/edit#gid=0
# month, project, distro, cost, hours, tasks
#
# Output is TSV with column per distro suitable for stacked area chart
#
#
use Data::Dumper;
my $data = {};
#!/bin/sh
#
# windowsnewpass.sh
#
# Usage: windowsnewpass.sh [ <PASSWORD> ]
#
# A new password will be randomly generated if none is specified.
# The password can then be used for logging into the host via RDP.
#
#
@ehershey
ehershey / -
Last active December 13, 2016 13:44
import boto3
from google.appengine.ext import testbed
import json
from google.appengine.api import mail
from google.appengine.api import urlfetch
testbed = testbed.Testbed()
testbed.activate()
@ehershey
ehershey / todo 20160708.md
Created July 7, 2016 19:46
todo 20160708.md
  • email i
  • email ii
  • email iii
  • lunch
  • Re-review scope doc
  • run
  • Chef meeting
  • Ask BM about epic name
  • Later
  • Email KR about 360R
@ehershey
ehershey / todo 20160707.md
Last active July 7, 2016 22:38
todo 20160707.md
  • email i
  • email ii
  • email iii
  • test new packages
  • lunch
  • new package CR
  • Re-review scope doc
  • 30 minutes on kdc scope doc
  • jira sweep
  • Double check r+r calendar
@ehershey
ehershey / todo 20160706.md
Last active July 7, 2016 14:37
todo 20160706.md
  • email i
  • email ii
  • email iii
  • new packaging patch build
  • lunch
  • BF sweep
  • Re-review scope doc
  • 30 minutes on kdc scope doc
  • jira sweep
  • Look up flight info