Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* ownCloud - passman
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Sander Brand <[email protected]>
* @copyright Sander Brand 2014
*/
####################
# GZIP COMPRESSION #
####################
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
@brantje
brantje / 8ball.py
Created September 6, 2013 11:44
Magic 8Ball for willie
"""
forum.py - Show a link to the xbian forum
Copyright 2013, Edward Powell - embolalia.net
Licensed under the Eiffel Forum License 2.
http://willie.dfbta.net
"""
import willie
import random
@willie.module.commands('8')