I hereby claim:
- I am maximegaillard on github.
- I am maximegaillard (https://keybase.io/maximegaillard) on keybase.
- I have a public key ASBGRKeP1egwgf2Jg6FkK6vMceki6A02ConPJl9sW4iKKgo
To claim this, I am signing this object:
name=AUTHZ | |
conf=authorization | |
settings=(WEBSERVICE TOKEN_HTTP_HEADERS TOKEN_HTTP_COOKIES) | |
plugin=libOrthancAuthorization | |
default=true | |
function genconf { | |
cat <<-EOF >"$1" | |
{ | |
"Authorization": { | |
"WebService": "$WEBSERVICE", |
I hereby claim:
To claim this, I am signing this object:
language: python | |
python: | |
- 2.7 | |
virtualenv: | |
system_site_packages: true | |
env: | |
global: | |
- your_secure_BLOG_KEY_variable |
#!/usr/bin/osascript | |
-- Applescript to launch Vosae in iterm2 terminals/tabs: | |
-- | |
-- Run from terminal with `osascript` or just ./<<script>> | |
-- Dont unfocus with the mouse/keyboard while executing. the script. | |
-- Recomended to go full screen (CMD + Enter) if <zoomout> attributes used. | |
-- Change myTermWindow and myItem(s) as desired. | |
-- | |
-- | |
-- Source https://github.com/luismartingil/scripts/blob/master/iterm_launcher02.applescript |
#!/bin/sh | |
mkdir ~/down/ | |
cd ~/down/ | |
sudo apt-get install build-essential | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
tar -xzf Python-2.7.3.tgz | |
cd Python-2.7.3 | |
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev | |
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev | |
sudo apt-get install libssl-dev libdb-dev |
import re | |
from django.utils.html import strip_spaces_between_tags | |
from django.conf import settings | |
RE_MULTISPACE = re.compile(r"\s{2,}") | |
RE_NEWLINE = re.compile(r"\n") | |
class MinifyHTMLMiddleware(object): | |
def process_response(self, request, response): | |
if 'text/html' in response['Content-Type'] and settings.COMPRESS_HTML: |