This file contains hidden or 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 geudrik on github. | |
* I am grodik (https://keybase.io/grodik) on keybase. | |
* I have a public key ASB2Fsc03z8RTwQ_7IERrY5PAfl8PPWoLx9Hl0uRKDD2Kwo | |
To claim this, I am signing this object: |
This file contains hidden or 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
# Taken from https://stackoverflow.com/questions/14692690/access-python-nested-dictionary-items-via-a-list-of-keys | |
# Reproduced for my own benefit later | |
data_dict = { | |
"a":{ | |
"r": 1, | |
"s": 2, | |
"t": 3 | |
}, | |
"b":{ |
This file contains hidden or 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
#! /usr/bin/env python2.7 | |
# | |
# packetsummary.pl -> packetsummary.py | |
# | |
# Released under the BSD License (3-clause) | |
# | |
# Written by Pat Litke. | |
# Reason: GLP is too restrictive (yes, I'm pointing at you, Cuckoo) | |
# This is essentially a re-write of my Scapy based summary script (because scapy..) | |
# |
This file contains hidden or 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
#! /usr/bin/env python2.7 | |
# Written by Pat Litke | |
# This is a total hack to indicate sections in a large Cobb AP datalog that need review | |
# Specifically, this script dumps out those sections where DAM, FK, and/or FKL are non-nominal | |
import csv | |
import sys | |
CSVRowNumber = 2 # Row 2 is the first row of data |
This file contains hidden or 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
ls -l /dev/disk/by-id |gawk 'match($11, /[a-z]{3}$/) && match($9, /^ata-/) { gsub("../", ""); print $11,"\t",$9 }' |sort |
This file contains hidden or 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
#! /usr/bin/env python2.7 | |
# | |
# Author: Pat Litke (C) 2014 | |
# | |
# This code is released under the WTFPL V2 http://www.wtfpl.net/ | |
# | |
# License: | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
# |