03 2017 档案

摘要:1.创建存放可执行某些命令目录及配置PATH: mkdir /allow_commands # 放在/root里不行,需要对此路径有读取权限cp /usr/bin/cat /allow_commandscp /usr/bin/ls /allow_commandsvim /home/bfmq/.bas 阅读全文
posted @ 2017-03-27 14:27 北方姆Q 阅读(262) 评论(0) 推荐(0) 编辑
摘要:1 #!/usr/bin/env python 2 import time 3 import datetime 4 5 # 格式自改 6 UTC_FORMAT = '%Y-%m-%dT%H:%M:%SZ' 7 LOCAL_FORMAT = '%Y-%m-%d %H:%M:%S' 8 9 10 def utc2local(utc_str): 11 utc_st = ... 阅读全文
posted @ 2017-03-21 15:34 北方姆Q 阅读(1337) 评论(0) 推荐(0) 编辑
摘要:1 #!/usr/bin/env python 2 from aliyunsdkcore import client 3 import json 4 from aliyunsdkcdn.request.v20141111 import DescribeUserDomainsRequest # 获取CDN域名列表类 5 from aliyunsdkcdn.request.v20141... 阅读全文
posted @ 2017-03-20 18:30 北方姆Q 阅读(693) 评论(0) 推荐(0) 编辑
摘要:分为两部分,第一部分是硬件本身需要加载的信息,之后才是加载Linux相关信息,因为有装有双系统的机器嘛 1.计算机加电 2.BIOS开始运行,检测硬件:cpu、内存、硬盘等 3.BIOS读取CMOS存储器中的参数,选择启动设备(就是我们安装系统时很常见的那也选择引导页面,默认都是第一个选项从本地) 阅读全文
posted @ 2017-03-09 16:08 北方姆Q 阅读(211) 评论(0) 推荐(0) 编辑
摘要:还在让别人一眼就看出你是一只野生程序猿嘛,快来看看谷歌的python风格指南提升逼格吧! http://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_style_rules/ 阅读全文
posted @ 2017-03-09 10:13 北方姆Q 阅读(133) 评论(0) 推荐(0) 编辑