ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <time.h> | |
// Purpose: ftruncate big file | |
// | |
// argv[1] file | |
// argv[2] shrinked size each loop, default is 100m |
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
#include <stdio.h> | |
#include <mysql.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main (int argc, char *argv[]) { | |
MYSQL *mysql; | |
MYSQL_RES *result; |
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
●PHP中出现的字符串Hash函数 | |
static unsigned long hashpjw(char *arKey, unsigned int nKeyLength) | |
{ | |
unsigned long h = 0, g; | |
char *arEnd=arKey+nKeyLength; | |
while (arKey < arEnd) { | |
h = (h << 4) + *arKey++; | |
if ((g = (h & 0xF0000000))) { |
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
-i ignore case of regex | |
-w match regex | |
-q don't output any information other than packet headers and payloads | |
-e show empty packets | |
-v invert the match | |
-x hex as well as ASCII | |
-l stdout line buffered | |
-s snaplen | |
set caplen,default 65536 |