I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
# sets the proxy cache path location, max size 2g | |
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:100m inactive=24h max_size=2g; | |
# transfers the `Host` header to the backend | |
proxy_set_header Host $host; | |
# uses the defined STATIC cache zone | |
proxy_cache STATIC; | |
# cache 200 10 minutes, 404 1 minute, others status codes not cached |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
# Detect if executed under test | |
TESTING = any(test in sys.argv for test in ( | |
'test', 'csslint', 'jenkins', 'jslint', | |
'jtest', 'lettuce', 'pep8', 'pyflakes', | |
'pylint', 'sloccount', | |
)) | |
if TESTING: | |
# If testing, move the default DB to 'mysql' and replace it | |
# with a SQLite DB. |
#create & deploy lamp droplet | |
#login via ssh as root | |
#initial setup (ref: http://library.linode.com/getting-started#sph_logging-in-for-the-first-time) | |
# update /etc/hosts (to "thalassophobia.surrealroad.com") | |
nano /etc/hosts | |
# |
import PIL | |
from PIL import Image, ImageOps | |
def resizecrop(src, out, width, height): | |
img = Image.open(src) | |
img = ImageOps.fit(img, (width, height), Image.ANTIALIAS, 0, (0.5, 0.5)) | |
img.save(out) |
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.http { | |
upstream app-pc { | |
server 127.0.0.1:8001; | |
} | |
upstream app-mobile { | |
server 127.0.0.1:8002; | |
} | |
server { |
@-webkit-keyframes rainbow { | |
0% {border-color: hsl(0, 100%, 50%);} | |
100% {border-color: hsl(255, 100%, 50%);} | |
} | |
.rainbow_border{ | |
border: 4px solid hsl(0, 100%, 50%); | |
-webkit-animation: rainbow 5s infinite alternate; | |
} |
from django.db import models | |
class Author(models.Model): | |
name = models.CharField(max_length=200, default='') | |
class Article(models.Model): | |
name = models.CharField(max_length=200, default='') | |
text = models.TextField(default='') | |