I hereby claim:
- I am oinume on github.
- I am oinume (https://keybase.io/oinume) on keybase.
- I have a public key ASAbPtN4USOtjo2JaIwHRQK1s1URLiDsQsA6-M8DMjs0rAo
To claim this, I am signing this object:
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
import cStringIO | |
import sys | |
class IOCapture(object): | |
def __init__(self, stdout = True, stderr = True): | |
self.captured_stdout = None | |
self.captured_stderr = None | |
if stdout: | |
self.captured_stdout = cStringIO.StringIO() | |
if stderr: |
# app/config.py | |
# -*- coding: utf-8 -*- | |
import os | |
class Config(object): | |
DEBUG = False | |
SQLALCHEMY_ECHO = False | |
SECRET_KEY = 'dev_key_h8hfne89vm' | |
CSRF_ENABLED = True | |
CSRF_SESSION_LKEY = 'dev_key_h8asSNJ9s9=+' |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"github.com/sclevine/agouti" | |
"net/http" | |
"net/http/httptest" | |
"fmt" | |
"time" | |
"log" | |
) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Usage: tail -10000 <access_log> | ./parse-nginx-log.py | |
import os | |
import re | |
import sys | |
class LogParser(object): |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Usage: tail -10000 <access_log> | ./parse-apache-log.py | |
import os | |
import re | |
import sys | |
class LogParser(object): | |
LOG_PATTERN = re.compile(r"""^(?P<remote_host>[0-9]{,3}\.[0-9]{,3}\.[0-9]{,3}\.[0-9]{,3}) (?P<ident>[^ ]{1,}) (?P<remote_user>[^ ]{1,}|\-) \[(?P<datetime>[0-9]{2}\/[A-Za-z]{3}\/[0-9]{1,4}:[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} [+\-][0-9]{4})\] "(?P<method>[A-Z ]+) (?P<uri>[^"]*) (?P<protocol>[^"]*)" (?P<status>[0-9]{3}) (?P<bytes>[0-9]{1,}|\-) "(?P<referer>[^"]*|\-)" "(?P<user_agent>[^"]+)" (?P<elapsed>[\d]+)$""") |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Usage: tail -10000 <access_log> | ./parse-apache-log.py | |
import os | |
import re | |
import sys | |
class LogParser(object): | |
LOG_PATTERN = re.compile(r"""^(?P<remote_host>[0-9]{,3}\.[0-9]{,3}\.[0-9]{,3}\.[0-9]{,3}) (?P<ident>[^ ]{1,}) (?P<remote_user>[^ ]{1,}|\-) \[(?P<datetime>[0-9]{2}\/[A-Za-z]{3}\/[0-9]{1,4}:[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} [+\-][0-9]{4})\] "(?P<method>[A-Z ]+) (?P<uri>[^"]*) (?P<protocol>[^"]*)" (?P<status>[0-9]{3}) (?P<bytes>[0-9]{1,}|\-) "(?P<referer>[^"]*|\-)" "(?P<user_agent>[^"]+)" (?P<elapsed>[\d]+)$""") |