Skip to content

Instantly share code, notes, and snippets.

View erikdw's full-sized avatar
Working from home

Erik Weathers erikdw

Working from home
View GitHub Profile
erikdw / statsd_dissector.lua
Last active July 24, 2023 09:22 — forked from jtai/statsd_dissector.lua
Wireshark dissector to decode statsd protocol (includes tags)
View statsd_dissector.lua
-- Usage: tshark -X lua_script:statsd_dissector.lua -r capture.pcap
-- Usage: tshark -X lua_script:statsd_dissector.lua -T fields -e statsd.metric_name -e statsd.value -e statsd.metric_type -e stats.metric_tags -r capture.pcap
local statsd = Proto("statsd","Statsd Protocol")
local pf_metric_name ="Metric Name", "statsd.metric_name", ftypes.STRING)
local pf_value ="Value", "statsd.value", ftypes.STRING)
local pf_metric_type ="Metric Type", "statsd.metric_type", ftypes.STRING)
local pf_metric_tags ="Metric Tags", "statsd.metric_tags", ftypes.STRING)
erikdw /
Last active August 28, 2020 09:32

⚠️ 😱




erikdw /
Created July 7, 2020 23:21
A crash report from yubiswitch helper crashing
Process:               com.pallotron.yubiswitch.helper [2984]
Path:                  /Library/PrivilegedHelperTools/com.pallotron.yubiswitch.helper
Identifier:            com.pallotron.yubiswitch.helper
Version:               1.0
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
Responsible:           yubiswitch [731]
User ID:               0
View test colors &
erikdw /
Created May 6, 2019 17:56 — forked from nitrocode/
Attempt to create a route on an ALB to be redirected to a Lambda WIP
# input vars
variable "environment" {
default = "Dev"
# local vars
locals {
name = "hello"
env = "${lower(var.environment)}"
lb_name = "${join("-", list("TF", var.environment,}"
View tips-and-tricks.txt
Raw version of without ugly formatting.
1. SSH break-out:
2. Shadowed window screenshot in mac:
(13) tcpdumps:  (no -s 65535 needed on recent tcpdumps)

  (a) find dns requests (adjusted for being on hosts in terremark):
     sudo tcpdump -i eth1 -c3000 -l -n dst port 53 | grep api

     sudo tcpdump -i eth0 -c3000 -l -n port 3133

  (b) capture all data:
erikdw /
Last active October 3, 2018 21:04
Creation of Groupon Farewell Word-Cloud as G logo.

Download all "company-departure" emails with got-your-back:

./gyb --email --search 'label:company-departures'

Join all .eml file bodies into a single file

Build this program based on a stackoverflow answer:

View storm-shade-storm-core-utils.xml
erikdw / github_load_all_diffs.js
Last active November 4, 2020 15:50 — forked from juanca/github_load_all_diffs.js
Github PR bookmarklet: Load all file diffs
View github_load_all_diffs.js
document.querySelectorAll('.load-diff-button').forEach(node =>;
document.querySelectorAll('.js-details-target').forEach(node =>;
// Both of those buttons should have the '.btn-link' class too, but I wasn't able to quickly figure out how to
// add an AND condition to that. Tried the below, didn't work:
//document.querySelectorAll('[.btn-link][.load-diff-button]').forEach(node =>;