上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
摘要: 在电信网络中,Docker在build和run时会无法访问外网,原因是docker的默认dns地址是8.8.8.8,由于众所周知的原因,我们需要改写这个地址,方法如下: 修改/etc/sysconfig/docker文件,在OPTIONS中添加dns=114.114.114.114,例如 Done 阅读全文
posted @ 2016-11-18 10:54 GreatK 阅读(975) 评论(0) 推荐(0)
摘要: 1. 使用rednose增强输出 2. 使用coverage 随后可以在cover目录中查看生成的html报表 3. nose测试中默认捕获测试通过的case中的print输出,如果想要输出结果,可以加入以下参数 阅读全文
posted @ 2016-11-17 11:31 GreatK 阅读(258) 评论(0) 推荐(0)
摘要: 1. where(w) 找出当前代码运行位置 2. list(l) 显示当前代码的部分上下文 3. list <line number> 显示指定行的上下文 4. list <line number1, line number2> 显示指定开始行到结束行的代码 5. up(u) 返回上个调用点 6. 阅读全文
posted @ 2016-11-11 17:05 GreatK 阅读(6791) 评论(0) 推荐(0)
摘要: 当用docker -v挂载volume后,会出现Permission Denied的问题,这有时是因为SeLinux导致的。解决方法如下: 阅读全文
posted @ 2016-11-08 11:16 GreatK 阅读(8310) 评论(0) 推荐(1)
摘要: pip install <package> -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com 阅读全文
posted @ 2016-11-04 13:19 GreatK 阅读(1832) 评论(0) 推荐(0)
摘要: 对于gb2312编码的网页,直接用request去获取会得到乱码的结果,解决方法很简单: 1. npm install iconv-lite 2. var iconv = require('iconv-lite'); 3. 4. done. 阅读全文
posted @ 2016-11-02 17:00 GreatK 阅读(5323) 评论(0) 推荐(0)
摘要: firewall-cmd --permanent --add-port=137/tcp firewall-cmd --permanent --add-port=138/tcp firewall-cmd --permanent --add-port=139/tcp firewall-cmd --per 阅读全文
posted @ 2016-11-01 16:25 GreatK 阅读(6505) 评论(0) 推荐(0)
摘要: CMD+R go to function in current file CMD+Option+Down find function definition in another file (from cursor word) CMD+D / CMD+U jump & select next word 阅读全文
posted @ 2016-10-19 13:45 GreatK 阅读(189) 评论(0) 推荐(0)
摘要: 在C#中尝试获取AD帐号信息时,会随机出现Attempted to access an unloaded appdomain的问题,解决方法如下: 将 阅读全文
posted @ 2016-10-13 16:56 GreatK 阅读(1032) 评论(0) 推荐(0)
摘要: 查看linux系统里面的各个目录、文件夹的大小和使用情况, 先切换到需要查看的目录,如果需要查看所有linux目录的使用情况就直接切换到系统跟目录,然后执行; du -h --max-depth=1 说明 --max-depth=1 这个参数表示查看文件夹的深度为1,这里要指定,否则如果目录和文件过 阅读全文
posted @ 2016-07-07 16:21 GreatK 阅读(195) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页