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 | |
# encoding: utf-8 | |
from twill import * | |
import urllib2,re | |
USERNAME = 'YOUR USERNAME' | |
PASSWORD = 'YOUR PASSWORD' | |
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 tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
import time | |
import os | |
CMD_FILE = "/tmp/nagios.cmd" | |
def process_data(data): | |
resutls = data.split(";") |
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 | |
# encoding: utf-8 | |
""" | |
Usage: | |
fab deploy:appname | |
""" | |
from fabric.api import env, run, cd, local, put | |
env.hosts = ['myserver.com'] | |
env.user = 'eric' |
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
==> Downloading http://127.0.0.1:8000/PyQt-mac-gpl-4.8.6.tar.gz | |
File already downloaded in /Users/zoomq/Library/Caches/Homebrew | |
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.8.6/bin --destdir=/usr/local/Cella | |
==> make | |
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.0/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/include -I/usr/local/Cellar/sip/4.12.4/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 - |
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
Moore [email protected] | |
发件人当地时间: 发送时间 13:15 (GMT-08:00)。发送地当前时间:下午10:50。 ✆ | |
回复: [email protected] | |
发送至: Shanghai Linux User Group <[email protected]> | |
日期: 2012年1月10日 下午1:15 | |
主题: [shlug] android 开发客户端种类,只贴数据不说话。 | |
SCH-i579_2.2.1_weibo_2.5.2_android | |
SCH-i579_2.2.1_weibo_2.6.0_android | |
SCH-i579_2.3.4_weibo_2.6.0_android |
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
platform: macosx (darwin) | |
cp -rp bundle/ build | |
cd build | |
cd LuaJIT-2.0.0-beta9 | |
make TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit | |
==== Building LuaJIT 2.0.0-beta9 ==== | |
make -C src | |
HOSTCC buildvm.o | |
HOSTCC buildvm_asm.o | |
HOSTCC buildvm_peobj.o |
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
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'nae', '-g' ] | |
info using [email protected] | |
info using [email protected] | |
verbose /usr/local/bin/node node symlink | |
verbose config file /Users/zoomq/.npmrc | |
verbose config file /usr/local/etc/npmrc | |
verbose config file /usr/local/lib/node_modules/npm/npmrc | |
silly exec /usr/local/bin/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 20 | |
silly spawning [ '/usr/local/bin/node', |
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
# ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid | |
ACLOCAL_PATH=/usr/local/share/aclocal | |
ALL_COMPONENTS=' | |
aac_adtstoasc_bsf | |
chomp_bsf | |
dump_extradata_bsf | |
h264_mp4toannexb_bsf | |
imx_dump_header_bsf | |
mjpeg2jpeg_bsf | |
mjpega_dump_header_bsf |
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
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
# 111228 appended for brew bash-completion | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
# This is for SIP (and PyQT) as suggested by Homebrew | |
export PYTHONPATH=/usr/local/lib/python:/Library/Python/2.7/site-packages/ChartDirector/lib/:$PYTHONPATH |
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 | |
from cgi import FieldStorage | |
from os import environ | |
from cStringIO import StringIO | |
from urllib import quote, unquote | |
from string import capwords, strip, split, join | |
class AdvCGI: |
OlderNewer