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
{ | |
"title": "NVS Intrumentation", | |
"services": { | |
"query": { | |
"idQueue": [ | |
1, | |
2, | |
3, | |
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
index: | |
analysis: | |
analyzer: | |
default: | |
type: whitespace |
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
{ | |
"_default_" : { | |
"date_formats" : [ | |
"yyyy-MM-dd HH:mm:ss.SSSZZ", | |
"yyyy-MM-dd HH:mm:ss", | |
"date_optional_time" | |
] | |
} | |
} |
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
# Borrow from http://farmdev.com/talks/unicode/ | |
# | |
# Remember: | |
# file/network (8-bit string) ----decode() -----> unicode -----encode()--------> file/network | |
def to_unicode(obj, decoding='utf8'): | |
""" | |
decoding a 8-bit string to unicode | |
""" | |
if isinstance(obj, basestring): |
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
# | |
# The Animal Protects No Bug | |
# ~~~ ~~~ | |
# __| |______| |__``` | |
# | | | |
# | | ```` | |
# | ````` | ``````` | |
# | ████--████ | ````` | |
# | | ``` | |
# | _[_ | |
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
#coding=gbk | |
from httplib import HTTPConnection,HTTPResponse | |
# request' header | |
headers = { | |
"User-Agent":"Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13", | |
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
"Accept-Language":"zh-cn,zh;q=0.5", | |
"Accept-Charset":"GB2312,utf-8;q=0.7,*;q=0.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
<domain type='lxc'> | |
<name>helloworld</name> | |
<uuid>7c3f13f0-6fcf-0e80-c3c3-5bc73607cda9</uuid> | |
<memory>102400</memory> | |
<currentMemory>102400</currentMemory> | |
<vcpu>1</vcpu> | |
<os> | |
<type arch='x86_64'>exe</type> | |
<init>/bin/sh</init> | |
</os> |
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
<emulator>/usr/bin/kvm</emulator> | |
<disk type='network' device='disk'> | |
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/> | |
<auth username='cinder'> | |
<secret type='ceph' uuid='457eb676-33da-42ec-9a8c-9293d545c337'/> | |
</auth> | |
<source protocol='rbd' name='netbeta-vms/ecb16c09-277c-4b0b-927e-2baae90cd558_disk'> | |
<host name='10.180.0.47' port='6789'/> | |
<host name='10.180.0.48' port='6789'/> | |
</source> |
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
tar czf ~/jenkins_backup.tar.gz --exclude='var/lib/jenkins/logs/*' --exclude='var/lib/jenkins/jobs/*/builds/*' --exclude="var/lib/jenkins/jdk" '/var/lib/jenkins' |
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
""" | |
Why line 21 raise ?? | |
""" | |
def error(): | |
print 'foo' | |
class OK(object): |
OlderNewer