- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 C/C++ Log function source code
// log error info to file.void Log(char *szInfo, ...){ va_list args = NULL; FILE *fp = NULL; if (NULL == szInfo) { return; } fp = fopen("ad.log", "a+"); if (NULL ==
2014-03-24 23:11:55 590
原创 URLDownloadToFile
URLDownloadToFilehttp://msdn.microsoft.com/en-us/library/ms775123%28VS.85%29.aspx
2014-03-17 20:36:31 653
原创 simple HTTP server - python
# -*- coding:utf-8 -*-import sysreload(sys)sys.setdefaultencoding('gb18030')import SimpleHTTPServerimport SocketServerPORT = 8000Handler = SimpleHTTPServer.SimpleHTTPRequestHandlerhttpd =
2014-03-11 00:19:04 2079
转载 wget function of python
#wget_cmd.py#!/usr/bin/pythonimport sys, urllibdef reporthook(*a): print afor url in sys.argv[1:]: i = url.rfind('/') file = url[i+1:] print url, "->", file urllib.urlretriev
2014-03-06 15:35:26 637
原创 git cannot work in windows cmd shell : try git-credential-winstore
you can not use git for network operation, due to the authentication problem.solution: install git-credential-winstore.exe点击打开链接
2014-03-05 22:56:45 687
转载 Simple SSL cert - HOWTO
You will need openssl.Make a new ssl private key:Generate a new unencrypted rsa private key in PEM format: openssl genrsa -out privkey.pem 1024You can create an encrypted key by addi
2014-03-04 00:01:12 700
转载 python psutil
import psutilPROCNAME = "python.exe"for proc in psutil.process_iter(): if proc.name == PROCNAME: proc.kill()
2014-03-03 16:56:55 2074
转载 get proc list by python
use the pywin32 module.import win32pdh, string, win32apidef procids(): #each instance is a process, you can have multiple processes w/same name junk, instances = win32pdh.EnumObjectIte
2014-03-03 16:50:00 975
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人