:blue_circle:
View statsd_dissector.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 -r capture.pcap | |
local statsd = Proto("statsd","Statsd Protocol") | |
local pf_metric_name = ProtoField.new("Metric Name", "statsd.metric_name", ftypes.STRING) | |
local pf_value = ProtoField.new("Value", "statsd.value", ftypes.STRING) | |
local pf_metric_type = ProtoField.new("Metric Type", "statsd.metric_type", ftypes.STRING) | |
statsd.fields = { pf_metric_name, pf_value, pf_metric_type } |
View test.md
View yubiswitch.helper.crash-report.md
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 & emojis.md
#1589F0
#1589F0
- !(https://placehold.it/15/1589F0/000000?text=+)
#1589F0
first arrow
second arrow
View aws-alb-lambda-terraform.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# input vars | |
variable "environment" { | |
default = "Dev" | |
} | |
# local vars | |
locals { | |
name = "hello" | |
env = "${lower(var.environment)}" | |
lb_name = "${join("-", list("TF", var.environment, local.name))}" |
View tips-and-tricks.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Raw version of https://github.com/erikdw/tips-and-tricks/wiki/Tips-and-Tricks without ugly formatting. | |
1. SSH break-out: | |
``` | |
<enter>~. | |
<enter>~? | |
``` | |
2. Shadowed window screenshot in mac: |
View tcpdump-examples.md
(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
(thepoint@tm22-s00311)
sudo tcpdump -i eth0 -c3000 -l -n port 3133
(b) capture all data:
View generate-word-cloud.md
got-your-back:
Download all "company-departure" emails with./gyb --email MYGMAILACCOUNT@gmail.com --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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
... | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>package</phase> |
View github_load_all_diffs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()); | |
document.querySelectorAll('.js-details-target').forEach(node => node.click()); | |
// 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 => node.click()); |
NewerOlder