Skip to content

Instantly share code, notes, and snippets.

View yishenggudou's full-sized avatar
🍺
Looking for a partner

Abigail Smithson yishenggudou

🍺
Looking for a partner
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 timger
# +Author timger
# +Gtalk&Email yishenggudou@gmail.com
# +Msn yishenggudou@msn.cn
# +Weibo @timger http://t.sina.com/zhanghaibo
# +twitter @yishenggudou http://twitter.com/yishenggudou
# Licensed under the MIT License, Version 2.0 (the "License");
@yishenggudou
yishenggudou / 1700.log
Created November 12, 2012 07:25
hadoop log
2012-11-12 18:59:46,208 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at localhost.localdomain/127.0.0.1
************************************************************/
2012-11-12 19:00:08,092 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = localhost.localdomain/127.0.0.1
STARTUP_MSG: args = []
STARTUP_MSG: version = 1.0.4
@yishenggudou
yishenggudou / zeromq-redhat-4.1-error
Created October 11, 2012 02:56
zeromq-redhat-4.1-error.log
Making all in src
make[1]: Entering directory `/data/vvlog/zeromq-3.2.0/src'
make all-am
make[2]: Entering directory `/data/vvlog/zeromq-3.2.0/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -pedantic -Werror -Wall -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -DZMQ_FORCE_EPOLL -fvisibility=hidden -g -O2 -MT libzmq_la-address.lo -MD -MP -MF ".deps/libzmq_la-address.Tpo" -c -o libzmq_la-address.lo `test -f 'address.cpp' || echo './'`address.cpp; \
then mv -f ".deps/libzmq_la-address.Tpo" ".deps/libzmq_la-address.Plo"; else rm -f ".deps/libzmq_la-address.Tpo"; exit 1; fi
../libtool: line 869: X--tag=CXX: command not found
../libtool: line 902: libtool: ignoring unknown tag : command not found
../libtool: line 869: X--mode=compile: command not found
../libtool: line 1035: *** Warning: inferring the mode of operation is deprecated.: command not found
@yishenggudou
yishenggudou / tcp server listen syslog-ng port
Created October 10, 2012 10:46
tcp_rvice_syslog-ng.py
import os
import sys
import SocketServer
import threading
class ThreadedEchoRequestHandler(SocketServer.StreamRequestHandler):
def handle(self):
self.data = self.rfile.readline().strip()
print self.data
@yishenggudou
yishenggudou / storm.log
Created August 21, 2012 13:49
storm不能启动
#确定zookeeper已经启动
[root@ logs]# sh ../../zookeeper-3.3.6/bin/zkServer.sh status
JMX enabled by default
Using config: /data/storm/zookeeper-3.3.6/bin/../conf/zoo.cfg
Mode: follower
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:37601 *:* LISTEN
tcp 0 0 *:eforward *:* LISTEN
tcp 0 0 *:ciphire-serv *:* LISTEN
@yishenggudou
yishenggudou / carousel.py
Created August 8, 2012 12:04
kivy carousel sample
@yishenggudou
yishenggudou / insertmong.py
Created July 13, 2012 07:22
mongo 插入性能
###已csv导入的性能
In [42]: %time dd=[qlogdb.insert({'date':'2012071399','hit':0,'miss':0,'contentlength':10000,'request':12121121,'consumer':'qiyi'}) for i in range(10000)]
CPU times: user 0.80 s, sys: 0.33 s, total: 1.14 s
Wall time: 1.70 s
In [43]: %time dd=[qlogdb.insert({'date':'2012071399','hit':0,'miss':0,'contentlength':10000,'request':12121121,'consumer':'qiyi'}) for i in range(600000)]
KeyboardInterrupt
In [43]: del dd
@yishenggudou
yishenggudou / sensu_test_install.sh
Created June 13, 2012 09:08 — forked from joemiller/sensu_test_install.sh
script to setup a sensu client and server for quick testing
#!/bin/sh
#
# The purpose of this script is to setup all the pre-reqs needed to
# standup a quick single-node Sensu client + server for use during
# testing.
#
# I don't recommend using this for a production setup, but if you must,
# then you should replace the SSL keys and certs with your own.
# You can use the script from this repo to help with SSL certs:
# https://github.com/joemiller/joemiller.me-intro-to-sensu
@yishenggudou
yishenggudou / redisctl
Created June 13, 2012 02:53 — forked from ponych/redisctl
redisctl
#!/bin/sh
# http://vm-192-168-11-21.shengyun.grandcloud.cn/topics/2437
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
@yishenggudou
yishenggudou / redis.conf
Created June 13, 2012 02:53 — forked from ponych/redis.conf
redis.conf
# my copy redis.conf
# changes
# 1. dir
# 2. daemonize yes
# 3. maxmenory 100MB
# 4. logfile /var/log/redis.log
#
#
# Redis configuration file example
#