Skip to content

Instantly share code, notes, and snippets.

View itsreallynick's full-sized avatar
🏠
Working from home

Nick Carr itsreallynick

🏠
Working from home
View GitHub Profile
@jeffgeiger
jeffgeiger / brocolor.sh
Last active December 22, 2015 13:18
Colorize columns in bro logs
#!/bin/bash
cat $1 | sed 's/#fields\t\|#types\t/#/g' | awk 'BEGIN {FS="\t"};{for(i=1;i<=NF;i++) printf("\x1b[%sm %s \x1b[0m",(i%7)+31,$i);print ""}'
@williballenthin
williballenthin / fls_with_find.sh
Created October 29, 2013 13:48
List active files on a file system in the [Bodyfile v3 format](http://wiki.sleuthkit.org/index.php?title=Body_file) using the common shell utility `find`.
find . -printf "0|%p|%i|%m|%U|%G|%s|%A@|%T@|%C@|0\n"
#!/bin/bash
# debian dependencies
sudo apt-get install python3 python3-pip qt5-default python3-pyqt5 git
# get virtualenv package for python3
sudo pip3 install virtualenv
# prepare a clean Python environment
mkdir env; virtualenv -p python3 env