This file contains 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
#!/usr/bin/env python | |
#coding=utf8 | |
########################################################################################## | |
import os | |
import logging | |
import logging.handlers | |
import traceback | |
from flask import Flask | |
from flask.ext.restful import reqparse, abort, Api, Resource | |
from flask import request |
This file contains 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
#!/usr/bin/env python | |
#coding=utf8 | |
""" | |
==================================== | |
:mod: pcap 파일을 읽어 IPv4의 Layer3 주소를 IPv6 주소로 변환 | |
@참고 : http://comments.gmane.org/gmane.network.tcpreplay.user/1086 | |
==================================== | |
.. moduleauthor:: 채문창 <[email protected]> | |
.. note:: GNU License |
This file contains 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
#!/usr/bin/env python | |
#coding=utf8 | |
""" | |
==================================== | |
:mod: 테스트용 blocking XML-RPC 서버 | |
==================================== | |
.. moduleauthor:: 채문창 <[email protected]> | |
.. note:: GNU | |
설명 |
This file contains 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
from ctypes import * | |
import os | |
mylib = cdll.LoadLibrary('%s/loopcheck.so' % os.getcwd()) | |
res = mylib.loop(100000, 10000) |
This file contains 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
/******************************************************************************************/ | |
// echorecv.c | |
// | |
// receiving server sample using CyaSSL | |
/******************************************************************************************/ | |
#include <stdarg.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <sys/types.h> |
This file contains 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 os | |
import sys | |
import json | |
import unittest | |
import pprint | |
import httplib | |
import urllib | |
import datetime | |
import random |
This file contains 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
#include <cstdlib> | |
#include <cstring> | |
#include <netdb.h> | |
#include <iostream> | |
#include <udt.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdarg.h> | |
#include <sys/types.h> | |
#include <unistd.h> |
This file contains 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
#!/bin/bash | |
# for ubuntu 12.04 LTS | |
sudo apt-get install dialog | |
sudo -H pip install python2-pythondialog | |
## for CentOS 5.4 386 | |
#sudo yum install dialog | |
#sudo -H /opt/bin/pip install python2-pythondialog | |
## If above pip fail with next message |
This file contains 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
#!/usr/bin/env python | |
#coding=utf8 | |
########################################################################################## | |
class HeapMon: | |
""" | |
guppy 모듈을 이용하여 메모리 Heap의 소모량을 구하는 클래스 | |
.. note:: guppy 모듈 설치 방법 | |
sudo apt-get install python-dev | |
sudo pip install guppy |
This file contains 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
#!/usr/bin/env python | |
#coding=utf8 | |
########################################################################################## | |
from datetime import datetime | |
import cPickle | |
import marshal | |
import msgpack | |
########################################################################################## |
OlderNewer