02 2016 档案

摘要:reposync 同步远程yum仓库到本地 OPTIONS -h, --help 显示帮助 -c CONFIG, --config=CONFIG Config file to use (defaults to /etc/yum.conf). -a ARCH, --arch=ARCH 按照指定的arc 阅读全文
posted @ 2016-02-24 14:48 mxking 阅读(4350) 评论(0) 推荐(0) 编辑
摘要:一. 函数内嵌 闭包 在python中,函数可以作为返回值, 可以给变量赋值. 在python中, 内置函数必须被显示的调用, 否则不会执行. #!/usr/bin/env python #-*- coding: utf-8 -*- def foo(): m = 4 def bar(): n = 3 阅读全文
posted @ 2016-02-16 16:45 mxking 阅读(437) 评论(0) 推荐(0) 编辑
摘要:Atomic 采用类似github的版本管理, 可以使用以下命令升级 ostree remote add --set=gpg-verify=false atomic20160212 http://.../rel-eng/Atomic-7.2-tree-20160212.0/ostree/repo/ 阅读全文
posted @ 2016-02-16 08:31 mxking 阅读(285) 评论(0) 推荐(0) 编辑
摘要:安装sublime下载地址:http://www.sublimetext.com/,请自行根据系统版本进行下载。下载好之后直接安装即可。 汉化包 汉化包下载: 汉化方法: 1.运行sublime text 2; 2.选择“preferences”—>“Browse packages”; 3.找到文件 阅读全文
posted @ 2016-02-05 15:03 mxking 阅读(221) 评论(0) 推荐(0) 编辑
摘要:异步和轮询 Ansible 有时候要执行等待时间很长的操作, 这个操作可能要持续很长时间, 设置超过ssh的timeout. 这时候你可以在step中指定async 和 poll 来实现异步操作 async 表示这个step的最长等待时长, 如果设置为0, 表示一直等待下去直到动作完成. poll 阅读全文
posted @ 2016-02-04 16:35 mxking 阅读(14611) 评论(0) 推荐(0) 编辑