Skip to content

Instantly share code, notes, and snippets.

@LiamRandall
LiamRandall / gist:7339749
Created November 6, 2013 16:54
Abnormal DNS Lookup Failures
##! DNS Detect Abnormal Number of Lookup Failures
##! watches for hosts recieving an abnormal number of NXDOMAIN DNS Lookup Failures
##! Improvements & derivatives
@load base/protocols/dns
@load base/frameworks/sumstats
@load base/utils/time
@errzey
errzey / davehull.sh
Created April 20, 2011 20:10
Example script to show how to do an intelligent merge-sort in parallel
#!/bin/bash
# determines number of proccessors, splits a large file into sizes that
# can be consumed by n-1 sort processes (where n is the number of processors)
#
# After the file has been split up properly, it will run a sort on each split
# file in parallel. Once all processes have completed, a merge sort is executed.
#
# mthomas@n2o:~/words [100%] $ du -h big
# 1.7G big