自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(43)
  • 收藏
  • 关注

转载 flume plugin

插件打包放在plugins.d目录,plugins.d目录的下一级是各个插件的目录,然后再下一级才是lib这些 官方文档描述: Installing third-party plugins Flume has a fully plugin-based arc...

2018-04-08 11:17:00 292

转载 curl https -k

原理不理解,另外python的httplib如何实现curl -k这样的行为? curl: (60) Peer's Certificate issuer is not recognized. More details here: http://curl.haxx.se/docs/...

2018-03-12 16:21:00 2051

转载 IO相关模块摘抄

File objects are implemented using C’s stdio package and can be created with the built-in open() function cStringIO.StringIO([s]) Unlike...

2018-02-24 11:03:00 154

转载 python 科学计算

NumPy — Numpy http://www.numpy.org/ SciPy.org — SciPy.org http://www.scipy.org/ Python Data Analysis Library — pandas: Python Data Analysis Lib...

2016-07-13 11:20:00 95

转载 [未整理]GIT/GITHUB/GERRIT多账户

当前目录中项目的git配置文件为.git/config 从gerrit/github/gitlab下载后,要修改.git/config,增加[user]段落 同时如果有使用gerrit,要增加gitreview.username选项: [core] repository...

2016-07-08 10:49:00 416

转载 RF日志文件(log.html)解读一

引入的js库: Jquery,Jquery templates plugin,Jquery tablesorter,JsxCompressor(JSXGraph) 版本都很老,而且有些还是废弃的项目(Jquery templates plugin),但是脚本都直接写进了html页面中,所以...

2016-06-22 17:21:00 1406

转载 jquery代码解读文章

http://blog.csdn.net/lihongxun945/article/details/12872323 http://www.cnblogs.com/aaronjs/p/3452279.html 事件触发机制 jQuery.event.dispatch.apply...

2016-06-20 15:52:00 84

转载 VIM 配置

vim视频教程网站:https://laracasts.com/series http://www.zhihu.com/question/20151659 转载于:https...

2016-06-13 15:54:00 109

转载 docker命令

docker run: -v /path1:/path2 path1是本地机器的路径 path2是容器内的路径 -p 6000:6001 6000:本地机器端口 6001:容器端口 docker inspect: docker inspect --format "{{ ....

2016-03-22 17:19:00 95

转载 ubuntu 14.04安装和配置多个jdk

http://www.linuxdown.net/install/soft/2015/0115/3788.html update-alternatives命令 2、在/usr/lib/下mkdirjvm/目录 #sudocpjdk-7u65-linux-x64.tar.gz...

2016-03-01 09:55:00 140

转载 UBUNTU安装步骤

1、修改root登录 2.修改网络配置 3.修改apt-get源 4.安装openssh server和vim 5。配置sshd,vnc 转载于:https:/...

2016-02-05 15:00:00 74

转载 git push的两个策略

配置push时的策略 gitconfig--globalpush.defaultsimplegitconfig--globalpush.defaultmatching simple和matching是不同的策略,现在的版本,默认的策略是simple simple策略,...

2016-01-25 15:59:00 117

转载 【转】【待整理】UBUNTU14.04 远程访问配置方法

http://blog.csdn.net/a105421548/article/details/46379049 VNC配置 http://blog.csdn.net/sunnylgz/article/details/40779973 dconf-editor VINO访问方法,完成...

2016-01-21 11:45:00 111

转载 awk

打印文件大小,时间 ls-aln|greprhel|awk'{printf("%s\t%s\t%s\t%s\t%s\n"),$6,$7,$8,$5/1024/1024/1024,$9}' ...

2016-01-11 13:55:00 62

转载 openstack mysql表 sql查询

1 重要日志: /var/log/nova-all.log 列出虚机和所在节点的名称selectid,display_name,launched_on,node,deletedfrominstanceswheredeleted=0andlaunched_onin...

2016-01-08 17:07:00 389

转载 python函数入参理解

#-*-coding=utf8-*-importsys#reload(sys)#sys.setdefaultencoding('utf8')def_decode(str):returnstr.decode('utf8')deff...

2015-12-30 17:27:00 129

转载 django入门1

创建项目: django-admin startproject testsite1 创建应用: python manage.py startapp myapp1 启动项目 python manage.py runserver 0.0.0.0:8000 ...

2015-12-20 23:01:00 68

转载 python科学计算

《Python科学计算》一书,建议在windows环境上学习,安装Python(x,y)软件,方便很多工具的安装。比如scipy这种科学计算的库,依赖的ATLAS软件(http://math-atlas.sourceforge.net/,Automatically Tuned Linear ...

2015-12-20 10:51:00 90

转载 python编码问题1

在windows的cmd控制台的打印(编码GBK): >>>printrepr('哈')'\xb9\xfe'>>>('\xb9\xfe').decode('gbk')u'\u54c8'>>>('\xb9\xfe')...

2015-12-16 14:55:00 124

转载 python 自省1

get_attr() inspect.stack() inspect.stack()[1][3]返回的是函数名???? 如何获取一个函数的名称: 经验:在函数A在调用函数B时在入参处调用函数C,等于函数A调用函数C,没B什么事? importinspectcla...

2015-12-10 16:55:00 71

转载 UBUNTU上使用GIT和GITHUB

在本机配置git(用户和邮箱) $gitconfig--globaluser.name"YOURNAME"$gitconfig--globaluser.email"YOUREMAILADDRESS" 尚不清楚用户名和github上配置不一样有什么效果 然后在...

2015-12-09 22:38:00 71

转载 openstack,rf,python杂记

rf用例对try-except捕获的错误,不会判断为关键字结果错误,只有raise抛出的错误才会报关键字错误 openstack: Icehouse版本,计算节点下,nova(或者nova-compute)进程,如果长时间没有写/var/log/nova-all.log日志文件,则可能...

2015-12-09 14:23:00 85

转载 linux init启动级别

启动级别:init 0,1,2,3,4,5,6 2010-10-29 15:47:50| 分类: linux之路 阅读376 评论0 字号:大中小 订阅 这是个很久的知识点了,只是自己一直都迷迷糊糊的,今天在翻出来好好理解下。。 0:停机 1:单用户形式,只root进行维护 ...

2015-11-30 16:38:00 82

转载 ubuntu系统日志

http://blog.csdn.net/nancygreen/article/details/9873895 /var/log/alternatives.log-更新替代信息都记录在这个文件中 /var/log/apport.log -应用程序崩溃记录 /var/log...

2015-11-30 16:37:00 381

转载 【转】Python包管理工具

Python 包管理工具解惑 本站文章除注明转载外,均为本站原创或者翻译。 本站文章欢迎各种形式的转载,但请18岁以上的转载者注明文章出处,尊重我的劳动,也尊重你的智商; 本站部分原创和翻译文章提供markdown格式源码,欢迎使用文章源码进行转载; 本博客采用WPCM...

2015-11-28 23:26:00 65

转载 python包格式,yield,其他

包格式: .wheel 安装包?怎么执行? .egg 类似jar包的打包? yield: http://www.pythontab.com/html/2013/pythonjichu_0709/486.html 简单地讲,yield 的作用就是把一个函数变成一个 gener...

2015-11-25 10:38:00 72

转载 openstack中redhat镜像的主机名配置

/etc/hosts [root@host-192-168-111-118~]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1...

2015-11-17 10:26:00 128

转载 ubuntu系统

14.04版本,使用root登录 切换到root用户:sudo -s 设置为root用户登录: http://blog.csdn.net/loongembedded/article/details/37958405 想要在登录界面使用root身份登录,可编辑/etc/lightdm...

2015-11-16 20:59:00 40

转载 http鉴权,以及python实现

简单的用户名/密码鉴权: 放在http头的Authorization选项中,基本鉴权方法声明Basic(还有Basic/Digest/Custom) {'Accept': '*/*', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip...

2015-11-16 15:56:00 778

转载 UBUNTU磁盘空间调整

使用LVM调整 查一下 apt-get源 http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8 转载于:https://m...

2015-11-11 22:09:00 447

转载 git命令速记

gitstatusgitremote[-v]查看当前目录下有哪些远程仓库gitremoteaddnameurl在url指定的地址下创建名为name的仓库(即项目?)gitlog查看变更记录(从新到老,类似less)gitadd...

2015-10-27 19:22:00 76

转载 openstack分配浮动IP

openstack分配浮动IP时,从neutron.ipavailabilityranges表中读取对应网络的first_ip字段,将当期的first_ip作为浮动IP分配出去,然后更新first_ip值加一,如果遇到IP实际被占用的情况,horizon界面报错,错误信息不明 如果分配的浮动...

2015-09-29 12:30:00 1604

转载 python异常处理

例子: urllib2.urlopen()函数的调用中,如果http请求响应失败,会抛出urllib2.HTTPError: classHTTPDefaultErrorHandler(BaseHandler):defhttp_error_default(self,re...

2015-09-17 17:10:00 143

转载 linux系统设置

字符集设置 改变redhat的系统语言/字符集改变redhat的系统语言/字符集修改/etc/sysconfig/i18n文件,如LANG="en_US",xwindow会显示英文界面,LANG="zh_CN.GB18030",xwindow会显示中文界面。还有一种方法...

2015-08-18 10:29:00 103

转载 redhat 只读文件系统故障

/var/log/messages中的报错: Aug1202:01:31omm41kernel:EXT3-fserror(devicesda3):ext3_lookup:unlinkedinode2801821indir#782199Aug1202:01...

2015-08-12 10:00:00 631

转载 python 中文

\u4e91\u786c\u76d8\u6d4b\u8bd5 转载于:https://my.oschina.net/u/1858599/blog/489170

2015-08-07 16:20:00 82

转载 ssh输入用户密码登录失败的配置

/etc/ssh/sshd_config文件 PermitRootLogin yes #允许root登录PermitEmptyPasswords no #不允许空密码登录PasswordAuthentication yes # 设置是否使用口令验证。 ...

2015-08-05 16:22:00 436

转载 python http请求

#-*-coding=utf8-*-fromhttplibimportHTTPConnectionimporturllib2importjsonauth_url="http://10.62.44.154:5000/v2.0/tokens"...

2015-08-04 17:24:00 70

转载 openstack 上传镜像文件

#!/bin/bashset-eset+oxtraceunsethttp_proxyunsethttps_proxyimagePath=$1imageName=$2source/home/chenming/admin-openrc.sh...

2015-07-24 16:39:00 646

转载 shell,linux

source和sh: source命令用法:sourceFileName作用:在当前bash环境下读取并执行FileName中的命令。注:该命令通常用命令“.”来替代。如:source.bash_rc与..bash_rc是等效的。注意:source命令与she...

2015-07-24 11:01:00 52

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除