- 博客(161)
- 资源 (6)
- 收藏
- 关注
转载 Pythoner的福利,豆瓣的PyPI源
转 http://www.isaced.com/post-228.htmlPythoner的福利,豆瓣的PyPI源Python下用的最多的包安装工具就是easy_install和pip,但是他们都是从Python官方的Pypi源上寻找并下载资源,由于国内网络原因,有时候连接和速度就不是那么理想,跟淘宝的RubyGems镜像源一样,于是便有了国内的PyPi镜像源,如今天说的豆瓣PyPi镜像。豆瓣PyP
2017-03-27 10:21:16
824
原创 四舍五入
printf sprintf 四舍五入#include<stdio.h>char buf[16]; a=(float)6.66; sprintf(buf,"%.1f",a); printf("%.1f\n",a); printf("%s\n",buf);
2016-10-26 08:55:39
653
转载 Newton Series Release Notes neutron
9.0.0-4 Upgrade NotesA new option ha_keepalived_state_change_server_threads has been added to configure the number of concurrent threads spawned for keepalived server connection requests. Higher value
2016-10-10 11:50:38
1192
原创 iperf
wget http://downloads.es.net/pub/iperf/iperf-3.0.6.tar.gz tar zxvf iperf-3.0.6.tar.gz cd iperf-3.0.6 ./configure make make install
2016-10-09 14:26:17
687
转载 使用 etcdctl
http://www.phperz.com/article/15/0922/158727.html 发布于 2015-09-22 23:32:56 | 626 次阅读 | 评论: 0 | 来源: 网络整理etcdctl 是一个命令行客户端,它能提供一些简洁的命令,供用户直接跟 etcd 服务打交道,而无需基于 HTTP API 方式。这在某些情况下将很方便,例如用户对服务进行测试或者手动修改数据库
2016-10-08 11:38:23
8303
原创 docker 基本使用
DockerfileFROM ip:8080/base/centos6.7-tomcat-7.0.54:1.8MAINTAINER chenwurui@wanda.cnRUN rm -rf /etc/yum.repos.d/*ADD http://ip:8080/all.repo /etc/yum.repos.d/all.repoRUN yum clean all && yum instal
2016-09-20 10:15:07
396
原创 win 10 使用本地代理自动配置pac
win 10 使用本地代理自动配置pac1.修改注册表 以下内容保为pac.reg,双击。或手动修改注册表。Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings]"EnableLegacyAutoPro
2016-09-01 10:18:47
33643
转载 Cobbler全自动批量安装部署Linux系统
http://www.osyunwei.com/archives/7606.html 说明:Cobbler服务器系统:CentOS 5.10 64位IP地址:192.168.21.128需要安装部署的Linux系统:eth0(第一块网卡,用于外网)IP地址段:192.168.21.160-192.168.21.200eth1(第二块网卡,用于内网)IP地址段:10.0.0.160-10.0.0.2
2016-08-19 16:04:18
1349
原创 libvirt error
/etc/init.d/libvirtd start Starting libvirtd daemon: libvirtd: relocation error: libvirtd: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link
2016-08-09 09:59:25
840
转载 Chef 的安装与使用
http://www.ibm.com/developerworks/cn/cloud/library/1407_caomd_chef/Chef 是一款自动化服务器配置管理工具,可以对所管理的对象实行自动化配置,如系统管理,安装软件等。Chef 由三大组件组成:Chef Server、Chef Workstation 和 Chef Node。Chef Server 是核心服务
2016-08-02 17:06:13
1870
转载 使用 Chef 自动化部署一个 Web 服务器
http://www.ibm.com/developerworks/cn/cloud/library/1506_wangqf_chefforweb/index.html“这是一个最好的时代,也是一个最坏的时代。他们都在直奔天堂,而我们都在直奔相反的方向。”“90 后霸道总裁”的超级课程表融资千万美元、WhatsApp 被 Facebook 以 190 亿美元收购……这个时代仿佛
2016-08-02 17:04:48
3086
原创 chef
1.ERROR: RuntimeError: Please set EDITOR environment variableYou have to define EDITOR as environment variable.Tryexport EDITOR=$(which vi)To persist this, add it to ~/.bashrc or ~/.bash_profile.http:/
2016-08-02 11:09:23
435
原创 t460p
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2016-07-22 08:39:40
1001
原创 win7 注册表 分辨率
win7 注册表 分辨率[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\GraphicsDrivers\Configuration]Configuration 重命名[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\GraphicsDrivers\Confi
2016-06-18 21:13:19
6798
原创 rpc
rpctopicdirectfanoutt p :topic publishert c :topic consumerd p :direct publisherd c :direct consumerf p :fanout publisherf c::fanout consumer
2016-06-13 11:06:53
352
转载 Python装饰器与面向切面编程
Python装饰器与面向切面编程http://www.cnblogs.com/huxi/archive/2011/03/01/1967600.html今天来讨论一下装饰器。装饰器是一个很著名的设计模式,经常被用于有切面需求的场景,较为经典的有插入日志、性能测试、事务处理等。装饰器是解决这类问题的绝佳设计,有了装饰器,我们就可以抽离出大量函数中与函数功能本身无关的
2016-06-06 15:04:01
371
转载 创建随机密码
http://weibo.com/2674868673/Dyd2bucxj?ref=home&rid=2_0_202_2789461781396604288创建随机密码dd if=/dev/urandom | tr -d -c [:print:] | tr -d " " | dd count=1 bs=20 2> /dev/null;echo ''
2016-06-01 12:47:19
409
原创 centos install ryu
centos install ryuyum install -y gitgit clone git://github.com/osrg/ryu.gitcd ryugit reset --hard xxxxxxpython setup.py install
2016-05-27 10:55:06
1487
转载 python *args and **kwargs
http://stackoverflow.com/questions/3394835/args-and-kwargsfun(callback, *args, **kwargs) callback( *args, **kwargs)args :arguments ,tuplekwargs :keyword arguments,dict
2016-05-27 10:54:03
432
转载 数组的完全随机排列
数组的完全随机排列https://www.h5jun.com/post/array-shuffle.htmlArray.prototype.sort 方法被许多 JavaScript 程序员误用来随机排列数组。最近做的前端星计划挑战项目中,一道实现 blackjack 游戏的问题,就发现很多同学使用了 Array.prototype.sort 来洗牌。就连最近一期
2016-05-20 13:54:05
674
原创 crudini
crudini --set /etc/neutron/neutron.conf DEFAULT max_l3_agents_per_router 2crudini --get /etc/neutron/neutron.conf DEFAULT max_l3_agents_per_router
2016-05-16 15:52:10
1111
原创 neutron 更改 dns
neutron subnet-update 3d2a4f5b-a52f-4aba-ae2b-c9be8a3c199b --dns-nameserver 8.8.8.8
2016-04-29 17:20:47
1235
转载 Neutron/L3 High Availability VRRP
https://wiki.openstack.org/wiki/Neutron/L3_High_Availability_VRRPNeutron/L3 High Availability VRRP Neutron目录· 1 Abstract· 2 Use Case· 3 Implementation Overview o 3.1 VIP management
2016-04-29 15:04:41
615
原创 ntp
ntpserveryum install -y ntpvim /etc/ntp.confrestrict 192.168.0.0 mask 255.255.0.0 nomodifyserver 127.127.1.0fudge 127.127.1.0 stratum 8systemctl start ntpd.serviceclien
2016-04-28 17:09:51
437
原创 nova reset-state deleting openstack 删除 虚拟机
nova reset-state c581153e-38e3-4c4c-a13e-7e7e0224e304 --activenova delete c581153e-38e3-4c4c-a13e-7e7e0224e304[root@ctl1 ~(keystone_admin)]# nova list+-----------------------------------
2016-04-28 14:12:52
4140
原创 tee 日志 显示 写文件
teecat xxx |tee -a logfileNAME tee - read from standard input and write to standard output and filesSYNOPSIS tee [OPTION]... [FILE]...DESCRIPTION Co
2016-04-27 10:26:30
2418
原创 yum 下载 源码
yum search yumdownloaderyum-utils.noarch : Utilities based around the yum package manageryum install -y yum-utilsyumdownloader --source keepalived
2016-04-26 15:05:29
546
转载 linux sort 命令详解
http://www.cnblogs.com/51linux/archive/2012/05/23/2515299.htmllinux sort 命令详解sort是在Linux里非常常用的一个命令,管排序的,集中精力,五分钟搞定sort,现在开始!1 sort的工作原理 sort将文件的每一行作为一个单位,相互比较,比较原则是从首字符向后,依次按ASCI
2016-04-25 11:21:46
324
原创 pssh 查看搜索neutron日志
neutron agent-list|grep -v cu01ct011|grep vSwitch|awk '{print $8}' >ser.txtpssh -h ser.txt -l root -i "grep 'too large' /var/log/neutron/ -rn"
2016-04-25 10:52:37
590
原创 centos 7 pip yum
yum search pippython-pip.noarch : A tool for installing and managing Python packagesyum install -y python-pip
2016-04-25 10:46:50
374
原创 centos7 install devstack
centos7 install devstack1. git clone https://git.openstack.org/openstack-dev/devstack2.devstack/tools/create-stack-user.sh3.chown -R stack:stack devstack3.su stack4.cd devstack5.
2016-04-21 10:39:43
2824
转载 探索 OpenStack 之(8):Neutron 深入探索之 OVS + GRE 之 完整网络流程 篇
http://www.cnblogs.com/sammyliu/p/4204190.html探索 OpenStack 之(8):Neutron 深入探索之 OVS + GRE 之 完整网络流程 篇前两篇博文分别研究了Compute节点和Neutron节点内部的网络架构。本文通过一些典型流程案例来分析具体网络流程过程。0. 环境同 学习OpenStack之(7):
2016-04-19 16:08:55
464
转载 Dynamic Routing for External Networks
Dynamic Routing for External NetworksBlueprint LinkThe goal of this blueprint is to add a dynamic routing capability t
2016-04-15 17:47:37
848
转载 Mitaka Series Release Notes
http://docs.openstack.org/releasenotes/neutron/mitaka.htmlMitaka Series Release Notes8.0.0-71Several NICs per physical network can be used with SR-IOV.Bug FixesThe ‘phy
2016-04-15 17:42:49
658
转载 制作L版openstack本地yum源方法
http://blog.youkuaiyun.com/wylfengyujiancheng/article/details/500083251、环境准备: 操作系统:CentOS7.1 虚拟机或物理机一台:建议2vcpu+ 2G+内存 10G+硬盘 确保系统能够上网 2、配置缓存 修改/etc/yum.conf [main]cachedir=/var/cach
2016-04-13 16:25:00
2227
转载 制作OpenStack Windows Server 2012镜像
http://blog.youkuaiyun.com/wylfengyujiancheng/article/details/50468173一、硬件及软件准备: 1、物理机一台:要求支持硬件虚拟化,将centos7安装在物理机上,如果实在找不到多余的机器可以在windows上安装vmware。然后在vmware上创建centos7的虚拟机。2、windows2012server的I
2016-04-13 16:23:58
1209
gvim74.exe
2013-10-11
软件架构师的12项修炼
2013-07-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人