Skip to content

Instantly share code, notes, and snippets.

View osd-remove.sh
# As sudo
ceph osd crush remove osd.{osd-num}
ceph auth del osd.{osd-num}
ceph osd rm {osd-num}
ceph osd crush remove {host}
View dirlist.py
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from os.path import basename, isdir
from os import listdir
def traverse(path, depth=0):
print depth* '| ' + '|_', basename(path)
View webTCP.py
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
'''
Created on 2012-3-13
@author: 小马过河
'''