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
from cryptopan import CryptoPan | |
import re, sys | |
c = CryptoPan("".join([chr(x) for x in range(0, 32)])) | |
p = re.compile(r"^([^ ]+) ([^ ]+)") | |
def replace(mo): | |
try: | |
domain = mo.group(1) |
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
# this is comment | |
logstorage.dropTable iis01 | |
logstorage.createTable iis01 v3p | |
# lines before "EOF" will be used as inputstream. input lines are not trimmed and cannot commented. | |
logpresso-index.createIndex iis01 i1 <<EOF | |
delimiter | |
;/ | |
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
[Groups] | |
NumberOfGroups = 4 | |
[1] | |
TriggerTop = [Monitor1Top] + 400 | |
TriggerRight = [Monitor1Right] | |
TriggerBottom = [Monitor1Bottom] | |
TriggerLeft = [Monitor1Left] |
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
from subprocess import Popen | |
import os, subprocess | |
def parseEnv(envoutput): | |
handle_line = lambda l: tuple(l.rstrip().split("=", 1)) | |
pairs = map(handle_line, envoutput) | |
valid_pairs = filter(lambda x: len(x) == 2, pairs) | |
valid_pairs = [(x[0].upper(), x[1]) for x in valid_pairs] | |
return dict(valid_pairs) |
NewerOlder