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:: 채문창 <mcchae@future.co.kr> | |
.. 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
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
#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 | |
########################################################################################## | |
from datetime import datetime | |
import cPickle | |
import marshal | |
import msgpack | |
########################################################################################## |
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
INC=-Iinc/ | |
CC=gcc | |
DEBUG=-g | |
all: out/libfuq.a out/udp_send out/udp_recv_file out/udp_recv | |
out/udp_send.o: src/udp_send.c | |
$(CC) -o $@ $(DEBUG) -c $(INC) $< | |
out/udp_recv_file.o: src/udp_recv_file.c | |
$(CC) -o $@ $(DEBUG) -c $(INC) $< |
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 uuid import uuid4 | |
from datetime import datetime, timedelta | |
from flask.sessions import SessionInterface, SessionMixin | |
from werkzeug.datastructures import CallbackDict | |
from flask import Flask, session, url_for, redirect | |
import redis | |
import cPickle |
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 | |
usage() | |
{ | |
echo "usage: $0 <folder> <matching_string> <n>" | |
echo " extract all first n header files from a file which is matching matching_string" | |
echo " ex) $0 . 'matching string' 15" | |
} | |
if [ $# -ne 3 ];then |
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 <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <map> | |
#include <string> | |
//======================================================================================== | |
//======================================================================================== | |
#define MAX_LRU_MAP 3 |
OlderNewer