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 numpy as np | |
import matplotlib.pyplot as plt | |
import pylab | |
# color palette | |
from matplotlib import cm | |
from logsparser.lognormalizer import LogNormalizer as LN | |
import GeoIP | |
normalizer = LN('/usr/share/normalizers') | |
auth_logs = open('/var/log/auth.log', 'r') |
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
diff -ruN nginx-1.11.2/debian/rules nginx-1.11.2.patched/debian/rules | |
--- nginx-1.11.2/debian/rules 2016-07-05 16:29:08.000000000 +0000 | |
+++ nginx-1.11.2.patched/debian/rules 2016-07-15 16:46:05.690243981 +0000 | |
@@ -27,18 +27,8 @@ | |
--user=nginx \ | |
--group=nginx \ | |
--with-http_ssl_module \ | |
- --with-http_realip_module \ | |
- --with-http_addition_module \ | |
- --with-http_sub_module \ |
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 struct | |
def gif(): | |
data = [0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, | |
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x21, | |
0xf9, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, | |
0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x02, 0x01, 0x44, | |
0x00, 0x3b] | |
return struct.pack('42B', *data) |
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 datetime | |
import json | |
import os | |
import sys | |
import requests | |
apiKey = "" | |
stationID = "" |