In the following, replace example.net with your domain name. XXX.XXX.XXX.XXX is the IP of the reverse proxy.
example.net. 300 IN A XXX.XXX.XXX.XXX
simple benchmark | |
http://github.com/mopemope/meinheld/tree/master/bench/hello/ | |
result: | |
ma2@xxxx:11:51:ab -c 100 -n 10000 http://192.168.2.10:8000/ ~ | |
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0 | |
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/ |
import sys | |
from ctypes import * | |
c_int_p = POINTER(c_int) | |
c_uint_p = POINTER(c_uint) | |
def typeof(structure, name): | |
for k, v in structure._fields_: | |
if k == name: | |
return v |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my @GLOBAL_BUFFERS = qw( | |
key_buffer_size | |
innodb_buffer_pool_size | |
innodb_log_buffer_size | |
innodb_additional_mem_pool_size |
# -*- coding: utf-8 -*- | |
from plugpy.ext.skype import SimpleSkypePlugin | |
import itertools | |
import mimetools | |
import mimetypes | |
from cStringIO import StringIO | |
import urllib2 | |
import os | |
import feedparser | |
from pyquery import PyQuery as pq |
from tobikko import get_hub | |
from tobikko.api import * | |
from tobikko.server import StreamServer | |
from tobikko import socket | |
def test_accept(): | |
s = StreamServer() | |
def _handle(sock, addr): | |
while True: |
// jQueryでクロスドメイン読み込みを全般的に禁止する | |
// Note: 同一ドメインにオープンリダイレクタがないか確認すること | |
(function($){ | |
var gethost = function(url){ | |
var a = document.createElement("a"); | |
a.href = url; | |
return a.host | |
}; | |
var old_beforesend = $.ajaxSettings.beforeSend; |
// jQuery MobileのloadPageで異なるホストを弾く | |
// Note: 同一ドメインにオープンリダイレクタがないか確認すること | |
(function($){ | |
var old = $.mobile.loadPage; | |
var gethost = function(url){ | |
var a = document.createElement("a"); | |
a.href = url; | |
return a.host | |
}; |
from meinheld import server | |
def hello_world(environ, start_response): | |
status = '200 OK' | |
res = "Hello world!" | |
response_headers = [('Content-type','text/plain')] | |
start_response(status, response_headers) | |
yield res | |
yield "Yield" |
<?xml version="1.0"?> | |
<zabbix_export version="1.0" date="06.09.08" time="04.11"> | |
<hosts> | |
<host name="Template_MySQL_Server"> | |
<useip>0</useip> | |
<dns></dns> | |
<ip></ip> | |
<port>10050</port> | |
<status>3</status> | |
<groups> |