Skip to content

Instantly share code, notes, and snippets.

View bennettp123's full-sized avatar

Bennett Perkins bennettp123

View GitHub Profile
// ==UserScript==
// @name Of course!
// @namespace http://xkcd.com/1418/
// @version 0.1
// @description http://xkcd.com/1418/
// @match http://*/*
// @match https://*/*
// @copyright 2012+, bennettp123
// ==/UserScript==
@bennettp123
bennettp123 / keybase.md
Created January 20, 2015 23:35
keybase.md

Keybase proof

I hereby claim:

  • I am bennettp123 on github.
  • I am bennett (https://keybase.io/bennett) on keybase.
  • I have a public key whose fingerprint is 8198 6D8C 3618 6547 FA33 7B0D 8BEF DF21 28E4 4120

To claim this, I am signing this object:

@bennettp123
bennettp123 / Vagrantfile
Last active September 10, 2018 02:54 — forked from anthonysterling/Vagrantfile
Handy Vagrantfile for IE testing with Vagrant.
# Usage: IE={box} vagrant up
#
# Eg. IE=ie6.xp vagrant up
boxes = {
"ie6.xp" => "http://aka.ms/ie6.xp.vagrant",
"ie7.vista" => "http://aka.ms/ie7.vista.vagrant",
"ie8.xp" => "http://aka.ms/ie8.xp.vagrant",
"ie8.win7" => "http://aka.ms/ie8.win7.vagrant",
"ie9.win7" => "http://aka.ms/ie9.win7.vagrant",
This file has been truncated, but you can view the full file.
-----BEGIN PGP MESSAGE-----
Comment: https://keybase.io/download
Version: Keybase Go 2.6.2 (darwin)
wcBMA9X0O2Qy6nfzAQgARQyKYPiHKwywbC1hest/B3+bhyHe8COQ+pqtIczZ6AxE
tZK3GwjIdfZa3PrAN0Yxgu2QZbZXgbxqBNPBF0+zkcduS2XcQ1A9Nnw/l2ds/B3B
g0mmUQnbv8AvpSAPSy/F0/dHyzgx3ZJcjzs8RUVJXEhbkJ72bva1RpW2ZlnVtcro
PlY6EEKFtGAPGREkAsccoQ5O10cz7RLuOfSe/n0QBef9LUaoAsro0jfMXH1PobXa
95OOnYMP1Sqo1kLt6OMtv+qHd2Re831Czs8UtfT9uCxy+W5L1/4wAvNGlRgNbA08
tDHgql+vy627vROUSxEztPv7dyUEjEax5psM2YcwYcHATAMPLk7cSAOI+gEIAAS+
This file has been truncated, but you can view the full file.
-----BEGIN PGP MESSAGE-----
Comment: https://keybase.io/download
Version: Keybase Go 2.6.2 (darwin)
wcBMA9X0O2Qy6nfzAQgAIzAItDRn0uIvlWN/Y/4Gi6FZ7DpLz/FkGA1iE/qxZy9i
v4rgNVzYazE7CgsuPlQzXuN5umaW4uqilC+2PU4wRut6tAeLRh3J54t9fhbYRbb9
AgTHTFNBhRzkSiGgpR/Fi2sY53SR8rFiNhHy94ErwaEeM9/rEg1d0QTaWY29rcUm
PzWjNtMPPbfH8ZMrh7qPoHWw4gX5Bmonvc21l4Xd4cHVeVjtz0uWjZPLdv2MmQtm
BqNpHLVhdEB+rFU+cEFNtBhMwAe/lOElFLgNTWAnq5UJCcgukcmPSVXEDQd+TBp7
lnSoMkRt+59qxUDkVQ57Kx63u2quPNMtqD2kbm81AsHATAMPLk7cSAOI+gEIAE2W
@bennettp123
bennettp123 / etc-hosts-on-win.md
Created June 1, 2019 02:15 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

Modify your hosts file

notepad

For Windows 10 and 8
  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as administrator.
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
@bennettp123
bennettp123 / compress-cidrs.js
Last active June 17, 2019 08:04
Deduplicate and compress CIDRs
const cidrTools = require('cidr-tools');
const readline = require('readline');
const JSON = require('JSON');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
crlfDelay: Infinity
});
@bennettp123
bennettp123 / .custom_prompt
Created June 9, 2020 06:28
A sample dynamic/custom prompt
# NOTICE: This file is kept in source control; see
# https://gitlab.com/bennettp123/bash_profile
CLICOLOR=1
export CLICOLOR
DIM='\[\e[2m\]'
NORMAL='\[\e[0m\]'
BOLD='\[\e[1m\]'
@bennettp123
bennettp123 / aws-mfa-login.sh
Last active June 10, 2020 07:31
aws-mfa-login.sh
#!/bin/bash
set -e -o pipefail
#
# Instructions
#
# To log into an AWS profile "mgmt":
#
# 1. create a profile mgmt-nomfa. Use aws_access_key_id and
Previewing update (news-shared.branch-deploys):
pulumi:pulumi:Stack news-shared-news-shared.branch-deploys running
fatal error: concurrent map read and map write
swm:security-groups:SecurityGroups news-shared-branch-deploys-securitygroups
goroutine 316 [running]:
runtime.throw(0x1cf15da, 0x21)
/Users/runner/hostedtoolcache/go/1.15.6/x64/src/runtime/panic.go:1116 +0x72 fp=0xc001e75c70 sp=0xc001e75c40 pc=0x436912
runtime.mapaccess2_faststr(0x1a05860, 0xc001c8f410, 0xc0018222a0, 0x62, 0xc0018995c0, 0x0)