Region > AZ
User <--(edge location)--> origin(__s3__, __ec2__, elb, route53)
^
|
function debounce(fn, delay) { | |
var timer = null; | |
return function () { | |
var context = this, args = arguments; | |
clearTimeout(timer); | |
timer = setTimeout(function () { | |
fn.apply(context, args); | |
}, delay); | |
}; | |
} |
(Pdb) response.keys() | |
[u'kind', u'captchaResult', u'formattedResults', u'title', u'ruleGroups', u'version', u'responseCode', u'pageStats', u'id'] | |
(Pdb) response['kind'] | |
u'pagespeedonline#result' | |
(Pdb) response['captchaResult'] | |
u'CAPTCHA_NOT_NEEDED' | |
(Pdb) response['title'] | |
u'Kinnek | Helping businesses share reputation information' | |
(Pdb) response['ruleGroups'] | |
{u'SPEED': {u'score': 75}} |
Kali | |
apt-get install mono-complete | |
xbuild scallion.sln /p:TargetFrameworkVersion="v4.5" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Example of Singleton design pattern | |
# Copyright (C) 2011 Radek Pazdera | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
- docker-compose.yml | |
jenkins: | |
build: . | |
restart: always | |
ports: | |
- "8080:8080" | |
- "5000:5000" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
import sys | |
import logging | |
logger = logging.getLogger('kinnek') | |
logger.setLevel(logging.DEBUG) | |
handler = logging.StreamHandler(sys.stdout) | |
handler.setLevel(logging.DEBUG) | |
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
handler.setFormatter(formatter) |
# -*- coding: utf-8 -*- | |
""" | |
This scripts reqire a third party module 'requests'. | |
You can get it from PyPI, i.e. you can install it using | |
easy_install or pip. | |
http://docs.python-requests.org/en/v0.10.4/ | |
Original source code is written by shin1ogawa, which is in Java. |
if S is a subtype of T, then objects of type T may be replaced with objects of type S (i.e. an object of type T may be substituted with any object of a subtype S) without altering any of the desirable properties of the program
Configuring Nginx to serve SSL content is straight forward, once you have your certificate and key ready:
server {
listen 443 default ssl;
root /path/to/source;
server_name mydomain;
ssl_certificate /path/to/cert;
ssl_certificate_key /path/to/key;