I hereby claim:
- I am tclancy on github.
- I am tclancy (https://keybase.io/tclancy) on keybase.
- I have a public key whose fingerprint is 50FE 784B 7C24 7C5E 1749 A7E7 7C36 C1A4 7C96 4142
To claim this, I am signing this object:
#!/usr/bin/env bash | |
rc=0 | |
head=`git symbolic-ref HEAD` | |
#if echo $head | grep -E 'releases?/[0-9]\.[0-9]+|master' | |
#then | |
# echo "You cannot commit directly to a release branch" | |
# echo "Stash your changes and apply them to another branch" | |
# echo "or create a branch directly from these changes" |
<!DOCTYPE html> | |
<html> | |
<body> | |
<form> | |
<label for="notes">Notes</label> | |
<input class="u-full-width" placeholder="notes" id="notes" type="text"> | |
<input class="button-primary" value="submit" type="submit"> | |
</form> | |
<?php |
<response> | |
<lst name="responseHeader"> | |
<int name="status">500</int> | |
<int name="QTime">10</int> | |
</lst> | |
<lst name="error"> | |
<str name="msg">Exception writing document id student.student.5x to the index; possible analysis error.</str> | |
<str name="trace">org.apache.solr.common.SolrException: Exception writing document id student.student.5x to the index; | |
possible analysis error. at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:164) | |
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.jav a:69) |
from mongoengine.connection import connect, disconnect | |
from django.test import TestCase | |
from django.conf import settings | |
class MongoTestCase(TestCase): | |
""" | |
TestCase class that clear the collection between the tests | |
""" |
def doubles(iterable): | |
"""Helper function that return a decoupled iterator""" | |
return zip(iterable, iterable) |
nginx_line = r'(?P<ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})?(?P<ip2>, \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})?-? - ?\S* \[(?P<timestamp>\d{2}\/\w{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|\-)\d{4})\]\s+\"(?P<method>\S{3,10}) (?P<path>\S+) HTTP\/1\.\d" (?P<response_status>\d{3}) (?P<bytes>\d+) "(?P<referer>(\-)|(.+))?" "(?P<useragent>.+)' | |
""" | |
Matches request lines from Nginx log format | |
'$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$request_time" "$upstream_response_time" "$http_x_forwarded_for" ' | |
'"$http_client_ip" "$http_x_real_ip"'; | |
""" |
@echo off | |
setlocal EnableDelayedExpansion | |
rem Licensed to the Apache Software Foundation (ASF) under one or more | |
rem contributor license agreements. See the NOTICE file distributed with | |
rem this work for additional information regarding copyright ownership. | |
rem The ASF licenses this file to You under the Apache License, Version 2.0 | |
rem (the "License"); you may not use this file except in compliance with | |
rem the License. You may obtain a copy of the License at | |
rem |
I hereby claim:
To claim this, I am signing this object:
# encoding: utf-8 | |
# Derived from Piotr Maliński's example with a few modifications to use logging and : | |
# http://www.rkblog.rk.edu.pl/w/p/profiling-django-object-size-and-memory-usage-pympler/ | |
from pympler import muppy | |
from pympler.muppy import summary | |
from pympler.asizeof import asizeof | |
from django.conf import settings | |
import logging |
map $request $loggable { | |
~*\.css|\.js|\.png|\.woff 0; | |
default 1; | |
} | |
log_format slim '[$time_local] - $body_bytes_sent - $request_time - "$request" $status'; | |
include bcore/local-nginx-default; | |
include mime.types; | |
default_type application/octet-stream; | |
access_log /path/to/access.log slim if=$loggable; |