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
#!/usr/bin/ruby | |
class IPGenerator | |
public | |
def initialize(session_count, session_length) | |
@session_count = session_count | |
@session_length = session_length | |
@sessions = {} | |
end |
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
import gzip | |
import csv | |
from elasticsearch import helpers | |
from elasticsearch.client import Elasticsearch | |
import time | |
csv.register_dialect('piper', delimiter='|', quoting=csv.QUOTE_NONE) | |
# See http://postcodepal.com/dbgen/postcode_areas_true-centroids.zip | |
pf=open('/Users/Mark/Documents/work/irdata/MOT/postcode_areas.csv') |
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
hardstatus alwayslastline "%{= RY}%H %{kG}%{G} Screen(s): %{c}%w %=%{kG}%c %D, %M %d %Y LD:%l" | |
startup_message off | |
msgwait 1 | |
defscrollback 100000 | |
nethack on |
NewerOlder