listen 1.2.3.4:443;
server_name secure.domain.com;
ssl on; #опция по-моему уже deprecated
ssl_certificate /etc/nginx/ssl/secure.domain.com.pem;
ssl_certificate_key /etc/nginx/ssl/secure.comain.com.key;
ssl_ciphers RC4:HIGH:!aNULL:!MD5:!kEDH;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
root /var/www/domain;
index index.html index.htm index.php;
timeout -s 9 1 'sleep 2 2>&1 >/dev/null' >/dev/null 2>&1
`timeout -s 9 10 sleep 2` >/dev/null 2>&1
#или
`timeout -s 9 10 sleep 2 >/dev/null 2>&1` >/dev/null 2>&1
import json
data = {"1":"one", "2":"two"} # python словарь
json_data = json.dumps(data) # упаковываем
parsed_json = json.loads(json_data) #распаковываем
print data == parsed_json # True
pecl/event conflicts with package "pecl/libevent" (version >= 0.0.2), installed version is 0.1.0
checking for event_free in -levent_core... no
yum install php-pecl-event -y
$( "li" ).click(function() {
$.ajax({
url: 'http://blabla.ru/test.php',
data: 'user_id=3&game_id=3',
async: true,
type: "POST",
dataType: "text"
}).done(function(response, status) {
alert(response + status);
});
});