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
;;; emacs --- My Emacs Config | |
;;; Commentary: | |
;;; Mostly aquired from https://www.youtube.com/watch?v=0cZ7szFuz18 | |
;;; Code: | |
(require 'package) | |
(package-initialize) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/")) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/") t) |
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/env python | |
import gzip | |
import os | |
import sys | |
import re | |
INPUT_DIR = "nginx-logs" | |
lineformat = re.compile(r"""(?P<ipaddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(?P<dateandtime>\d{2}\/[a-z]{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|\-)\d{4})\] ((\"(GET|POST) )(?P<url>.+)(http\/1\.1")) (?P<statuscode>\d{3}) (?P<bytessent>\d+) (["](?P<refferer>(\-)|(.+))["]) (["](?P<useragent>.+)["])""", re.IGNORECASE) |
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
(logparse)0.07 skull@main | |
dev/logparse » pip freeze | |
Jinja2==2.7.3 | |
MarkupSafe==0.23 | |
Pygments==2.0.2 | |
argparse==1.2.1 | |
backports.ssl-match-hostname==3.4.0.2 | |
brewer2mpl==1.4.1 | |
certifi==14.05.14 | |
ggplot==0.6.5 |
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
# Name: channoticetab-004.pl | |
# Version: 004 | |
# Author: LifeIsPain < idontlikespam (at) orvp [dot] net > | |
# Date: 2010-04-21 | |
# Description: Creates a tab for all channel notices with auto reply to notice destination | |
# Notices will be split up into status notices as well, so receiving a | |
# /notice @#channel will be in a different tab from /notice #channel and /notice +#channel | |
# (op notice, all users, and voice and higher respectively). Typing a reply in the query | |
# box will result in sending a reply notice to the same users. |
NewerOlder