
技术
文章平均质量分 57
boy198332
这个作者很懒,什么都没留下…
展开
-
tcl的正则表达式命令regexp的参数-lineanchor的理解
tcl中正则表达式用得很多,往往一句代码能够做好几条其他语句才能做完的工作,高效快捷;在处理string中逐行匹配的情况下往往是用参数-line,但其实-line相当于-lineanchor和-linestop。在使用-lineanchor时的实践:-lineanchorChanges the behavior of “^” and “$” (the “anchors”原创 2013-11-20 18:52:08 · 4299 阅读 · 0 评论 -
python如何import 文件名存在字符串变量里的module
Python中经常需要import module,但有时候的场景是module name或者文件名是存在了一个string的bi原创 2014-10-13 11:44:56 · 4840 阅读 · 0 评论 -
python通过random方法生成255个字符的域名
有需求测试最大的域名结果,域名最大的字符数255个字符,但meige原创 2014-09-17 12:30:47 · 1766 阅读 · 0 评论 -
How do I resolve unmet dependencies?
Met a problem when installing the packages on Ubuntu:转载 2014-09-18 17:43:22 · 667 阅读 · 0 评论 -
配置freeradius,解决使用User-Password认证失败问题
第一次使用freeradius进行认证,记录使用的一些pei原创 2014-06-20 16:02:26 · 17621 阅读 · 0 评论 -
配置需要MD5 authentication的NTP server
新单位测试NTP的时候,了解了ntpdate 和 ntpd 的区别。在原创 2014-06-05 16:37:28 · 4274 阅读 · 0 评论 -
bash下$*, $@, $#等含义
shell编程中遇到 $$, $*, $@, $#, $!等特殊的变量,参考了如下:转载 2014-04-21 15:36:25 · 1748 阅读 · 0 评论 -
sed 实例备忘
需求:修改所有automation script目录下的build config file。每个feature下面都会有至少一个个build config file,文件名为:build.cfg, build_6.9.cfg ...需要在每个build config file搜索 关键字:INCLUDE_PING 或 INCLUDE_PING6.如果找到了关键字,则需要插入:INCLU原创 2013-08-02 20:08:38 · 622 阅读 · 0 评论 -
Windows下比较好用的工具(待续)
1. sendtotoys这个工具可以在右键菜单里“send to”中添加更多的选项,比如cmd,用得比较多的就是send to cmd,只需要右键单击文件,则可以将文件名发送到新打开的cmd,当需要和linux进行命令行交互时尤其好用。2. pscpLinux下scp很好用,可以远程拷贝文件或者整个文件夹,但Windows没有这个命令,当需要linux下进行互传文件时,这个p原创 2014-03-17 15:33:54 · 616 阅读 · 0 评论 -
解决GPG error: The following signatures couldn't be verified because the public key is not available
因为公司同事写的新脚本里使用了git v1.8 以后才有命令参数,这个参数在git v1.7版本上是没有的,而我们的Ubuntu 10.04的package 源里最新的git-core 就是1.7.xx,需要升级git的话需要添加新的git 源到/etc/apt/sources.list:deb http://ppa.launchpad.net/git-core/ppa/ubuntu luci原创 2013-12-23 17:58:06 · 11451 阅读 · 0 评论 -
解决为多个git账户的id_rsa文件在一台共享server上共存工作的问题
github及类似github等管理工具要求每个git user需要生成一对rsa密钥(公钥和私钥),然后把私/公钥放置于:/home/user/.ssh/id_rsa 和 /home/user/.ssh/id_rsa.pub并且将公钥注册于github或者类似工具上。这样当该账户和git 管理工具进行ssh 交互的时候,user 生成的公钥和私钥就会被用来认证是不是该用户,原创 2013-12-31 18:48:56 · 3522 阅读 · 0 评论 -
TCL 与 Python的一些比较
转载自己的百度空间文章,备忘!仅作备忘,未完待续1. Global scopeTcl里的Global scope指的是toplevel scope,甚至高于其他的namespace,但namespace中的变量也可以用global namespace::var在proc中声明;但python中是这么定义:the global scope of a functio原创 2013-12-06 19:23:25 · 6685 阅读 · 0 评论 -
tcl 正则表达式命令regexp 参数-inline的理解
tcl “似乎”在8.4以后的版本对正则表达式命令regexp 提供了一个新的参数 -inline:-inline Causes the command to return, as a list, the data that would otherwise be placed in match variables. When using-inline, match variables原创 2013-11-27 21:18:25 · 6662 阅读 · 0 评论 -
vim多窗口操作技巧备忘
学习了VIM多窗口操作的一些快捷键和技巧,留下链接备忘http://hxqhit.blog.163.com/blog/static/1535792220118189450479/http://www.2cto.com/os/201309/242189.htmlVIM关于屏幕“滚动”(scroll)的解释:http://man.chinaunix.net/ne转载 2013-11-22 18:16:43 · 799 阅读 · 0 评论 -
创建需求任意大小的文件的多种方式
在测试中需要创建需求大小的文件,学习了几种方式,罗列如下备忘:1. ddLinux下的命令dd用于转换和复制文件,dd命令需要输入,所以创建指定大小(200K)的文件(不关心内容),可以使用以下命令:$ dd if=/dev/urandom of=dd_testFile.txt bs=10K count=20或者$ dd if=/dev/zero of=dd_testFil原创 2015-02-06 18:22:12 · 1514 阅读 · 0 评论