Skip to content

Instantly share code, notes, and snippets.

View hreeder's full-sized avatar

Harry Reeder hreeder

View GitHub Profile
@hreeder
hreeder / channoticetab.pl
Created June 20, 2014 18:09
Channel Notice Tab
# 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.
@hreeder
hreeder / gist:c7618fb1f454a334be72
Created April 15, 2015 13:18
requirements.txt
(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
@hreeder
hreeder / parser.py
Last active February 27, 2024 03:53
Python nginx Log Parser
#!/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)
;;; 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)
@hreeder
hreeder / expanded.html
Created April 17, 2015 19:35
Expansion with Emmet
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header"><button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button><a href="" class="navbar-brand">CynoTool</a></div>
<div class="collapse navbar-collapse" id="navbar">
<ul class="nav navbar-nav"></ul>
100
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155, 165580141, 267914296, 433494437, 701408733, 1134903170, 1836311903, 2971215073L, 4807526976L, 7778742049L, 12586269025L, 20365011074L, 32951280099L, 53316291173L, 86267571272L, 139583862445L, 225851433717L, 365435296162L, 591286729879L, 956722026041L, 1548008755920L, 2504730781961L, 4052739537881L, 6557470319842L, 10610209857723L, 17167680177565L, 27777890035288L, 44945570212853L, 72723460248141L, 117669030460994L, 190392490709135L, 308061521170129L, 498454011879264L, 806515533049393L, 1304969544928657L, 2111485077978050L, 3416454622906707L, 5527939700884757L, 8944394323791464L, 14472334024676221L, 23416728348467685L, 37889062373143906L, 61305790721611591L, 99194853094755497L, 160500643816367088L, 259695496911122585L, 420196140727489673L, 67989
@hreeder
hreeder / Preferences.sublime-settings
Created October 15, 2015 12:13
Sublime User Settings
{
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"font_size": 9,
"ignored_packages":
[
"Vintage"
],
"tabs_padding_small": true,
"tabs_small": true,
"theme": "Afterglow-blue.sublime-theme"
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()