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 python3 | |
from datetime import datetime | |
from time import sleep | |
from apscheduler.schedulers.background import BackgroundScheduler as Scheduler | |
########################################################################################## | |
class APS(object): | |
#===================================================================================== | |
def __init__(self): |
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 traceback | |
########################################################################################## | |
class A: | |
def m1(self,a,b): | |
return a/b |
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 sys | |
import psutil | |
import resource | |
import getopt | |
# from random import randint |
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 | |
''' | |
@package test_client | |
@brief this module is for testing xmlrpc | |
Started : 2010/03/10 | |
license: CQVista's NDA | |
@version: 1.0.0 | |
@author: Moonchang Chae <[email protected]> |
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 | |
# | |
# limit_cachedmem.py | |
# limit cached memory for executing program | |
# | |
########################################################################################## | |
import sys | |
from os import system |
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 |
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
#!/bin/bash | |
# next package does not valid supervisor : system starting problem | |
dpkg -l | egrep "\<supervisor\>" >/dev/null 2>/dev/null | |
if [ $? -ne 0 ]; then | |
sudo apt-get update | |
sudo apt-get install supervisor | |
fi | |
grep "\[inet_http_server\]" /etc/supervisor/supervisord.conf >/dev/null 2>/dev/null | |
if [ $? -ne 0 ];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
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
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) $< |