graylogger is a python script born out of necessity. Use graylogger.py to send GELF-formatted messages to a graylog host. You may log string messages, file contents or read from stdin, add additional fields. Host name and timestamp will be provided
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
from random import shuffle | |
def partition(lst, n): | |
division = len(lst) / float(n) | |
shuffle(lst) | |
return [ lst[int(round(division * i)): int(round(division * (i + 1)))] for i in range(n) ] | |
startnumber = 1 | |
stopnumber = 24 |