This file contains hidden or 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
# -*- coding= utf-8 -*- | |
import datetime | |
import os | |
import json | |
import tornado.ioloop | |
import tornado.web | |
import tornado | |
import tornado.httpclient | |
import traceback | |
import urllib2 |
This file contains hidden or 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
import sys, os.path | |
from xml.etree import ElementTree | |
import xml.dom.minidom | |
def process_vcxproj_file(fname): | |
with open(fname, 'rb') as fin: | |
proj = fin.read() | |
add_optimize_after = ' <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r\n <ClCompile>' | |
proj = proj.replace(add_optimize_after, add_optimize_after + '\r\n <Optimization>Disabled</Optimization>') |
This file contains hidden or 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
/* curl_multi_test.c | |
Clemens Gruber, 2013 | |
<[email protected]> | |
Code description: | |
Requests 4 Web pages via the CURL multi interface | |
and checks if the HTTP status code is 200. | |
Update: Fixed! The check for !numfds was the problem. |
This file contains hidden or 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
[unix_http_server] | |
file=/tmp/supervisor.sock ; path to your socket file | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
logfile_backups=10 ; number of backed up logfiles | |
loglevel=error ; info, debug, warn, trace | |
pidfile=/var/run/supervisord.pid ; pidfile location | |
nodaemon=false ; run supervisord as a daemon |
NewerOlder