Skip to content

Instantly share code, notes, and snippets.

#!/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.
#
#
#!/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 = {};
@ehershey
ehershey / bigredbuttonosx
Last active May 24, 2018 06:05
How to use the Dream Cheeky Big Red Button on a Mac in OS X
# Alternative to homebrew - install Mono directly via http://download.mono-project.com/archive/3.12.1/macos-10-x86/MonoFramework-MDK-3.12.1.macos10.xamarin.x86.pkg
# Install homebrew -
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install mono
brew install mono
# Download windows executable
open https://www.dropbox.com/s/3xmsr8cw02dfkl3/DreamCheekyBTN.zip
# Unzip
unzip DreamCheekyBTN.zip
# Create script

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:

@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==

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

// 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() {