Skip to content

Instantly share code, notes, and snippets.

@pgiblock
pgiblock / interfaces
Created October 19, 2016 20:53
Kali DNS kluge. At least centralizes config and doesn't require installing additional tools
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.1.248.204
netmask 255.255.0.0
gateway 10.1.134.210
post-up echo 'domain funland.local' > /etc/resolv.conf
post-up echo 'search funland.local.' >> /etc/resolv.conf
post-up echo 'nameserver 10.1.2.2' >> /etc/resolv.conf
MAXDATE = 1000000
# Return "iterator" into chunk_list.
# TODO: actual binary search. Just returning first item now.
def binarySearch(objList, date):
return 0
# An object on the timeline.
# All lists don't need to use the same object type, but I'm only using one
# instead of 5 for brievity