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: 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"); |
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
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 |
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
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 |
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
import os | |
import sys | |
import SocketServer | |
import threading | |
class ThreadedEchoRequestHandler(SocketServer.StreamRequestHandler): | |
def handle(self): | |
self.data = self.rfile.readline().strip() | |
print self.data |
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
#确定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 |
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
''' | |
Carousel | |
======== | |
.. versionadded:: 1.4.0 | |
The :class:`Carousel` widget provides the classic mobile-friendly carousel view | |
where you can swipe between slides. | |
You can add any content to the carousel and use it horizontally or verticaly. | |
The carousel can display pages in loop or not. |
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
###已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 |
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/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 |
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/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 |
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
# my copy redis.conf | |
# changes | |
# 1. dir | |
# 2. daemonize yes | |
# 3. maxmenory 100MB | |
# 4. logfile /var/log/redis.log | |
# | |
# | |
# Redis configuration file example | |
# |