This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
""" | |
django-thumbs by Antonio Melé | |
http://django.es | |
""" | |
from django.db.models import ImageField | |
from django.db.models.fields.files import ImageFieldFile | |
from PIL import Image | |
from django.core.files.base import ContentFile | |
import cStringIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 1; | |
error_log /opt/log/nginx.log; | |
pid /opt/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 1; | |
error_log /opt/log/nginx.log; | |
pid /opt/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Weekend potatoes (or Brotatoes, to annoy teenage sons) | |
Yep, when you break it down, these are pretty simple. But they taste | |
good like crack late on a Sunday morning. | |
----------- | |
INGREDIENTS | |
----------- | |
- a big-ass skillet (I use a 15-inch nonstick. Cast iron would be great. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.views.generic import dates | |
from django.views.generic.list import ListView | |
from django.views.generic.detail import DetailView | |
from django.contrib.syndication.views import Feed | |
from django.shortcuts import get_object_or_404 | |
from django.db.models import Q, Count, Aggregate | |
from fallen.models import Casualty, Theater, Branch, HomeState, CauseOfDeath, IncidentProvince | |
from django.template.defaultfilters import upper | |
from haystack.views import SearchView | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loveit = function(){var e,el,interval=Math.random()*60000;e = new jQuery.Event("click");e.pageX=1;e.pageY=1;el = jQuery('.record_pile:last').nextAll('a').eq(2);turntable.lastMotionTime=new Date().getTime();el.hover().trigger(e);setTimeout(loveit, interval);};loveit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
director backend random { | |
.retries = 5; | |
{ | |
.backend = { | |
.host = "192.168.1.100"; | |
.port = "8000"; | |
} | |
.weight = 1; | |
} | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend default { | |
.host = "192.168.1.100"; | |
.port = "8000"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub vcl_recv { | |
# Set the backend for the request if it should miss the cache. | |
set req.backend = backend; | |
# Send the request along to the cache lookup. | |
return(lookup); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* First, set up a backend to answer the request if there's not a cache hit. | |
* | |
*/ | |
backend default { | |
# Set a host. | |
.host = "192.168.1.100"; |
OlderNewer