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 PIL import Image | |
import os.path | |
import random | |
import sys | |
TILE_SIZE = 5 | |
for fname in sys.argv[1:]: | |
im = Image.open(fname) | |
assert im.width % TILE_SIZE == 0 and im.height % TILE_SIZE == 0 |
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
LogFile = nginx/*access.log | |
LogFile = nginx/*access.log.1 | |
Archive = nginx/*access.log.*.gz | |
# Expand the repeats (actually just removes them now) | |
*ExpandRepeats | |
# Keep only the lines in the proper date range... | |
*ApplyhttpDate |
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 /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} |