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
### Keybase proof | |
I hereby claim: | |
* I am joshdevins on github. | |
* I am joshdevins (https://keybase.io/joshdevins) on keybase. | |
* I have a public key ASCVfj5vd1fwp8gNrSlb6Gp-YctfbXzjKU8LxQt9U3mLrAo | |
To claim this, I am signing this object: |
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
# everything | |
sudo tcpdump -i lo0 -A -n -s 0 'tcp dst port 9200 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' |
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
jq -r .message | sed -n '/\[\(\INDEX_PATTERN\)\]\[.*\] .*/p' | sed -n 's/.* source\[\(.*\)\]\, id.*/\1/p' | jq -C . |
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
/** | |
* Determines the compute and memory layouts given a Spark 1.4.x configuration. | |
* | |
* This should be run by applying all of the configuration except for the | |
* executor settings (as this would waste resources). E.g.: | |
* | |
spark-shell \ | |
--master "local" \ | |
--deploy-mode "client" \ | |
--driver-memory 1G \ |