摘要: vi统计某个匹配出现的次数::%s/hello world/&/gn上句统计hello world 在全文出现的次数。如果要统计从50行到100行,出现的次数,则使用::50,100s/hello world//gn 阅读全文
posted @ 2014-03-06 10:56 taotaowill 阅读(5336) 评论(0) 推荐(0) 编辑
摘要: escape = function(text){var REGX_HTML_ENCODE = /"|&|'||[\x00-\x20]|[\x7F-\xFF]|[\u0100-\u2700]/g;return text.replace(REGX_HTML_ENCODE, function($0){ var c = $0.charCodeAt(0), r = ["&#"]; c = (c == 0x20) ? 0xA0 : c; r.push(c); r.push(";"); return r.join("&quo 阅读全文
posted @ 2014-03-06 10:00 taotaowill 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 无标题文档 6 22 23 24 25 123456726 27 阅读全文
posted @ 2014-02-27 19:12 taotaowill 阅读(524) 评论(0) 推荐(0) 编辑
摘要: " 高亮行尾的空格highlight WhitespaceEOL ctermbg=red guibg=red match WhitespaceEOL /\s\+$/"===================================================================... 阅读全文
posted @ 2014-01-04 16:15 taotaowill 阅读(232) 评论(0) 推荐(0) 编辑
摘要: cookie欺骗的核心目的是:假装自己是别人。核心步骤就是:1.获取他人的cookie; 2.将获取的cookie设置到自己的浏览器中。第二步:如何向自己的浏览器中设置cookie?浏览器不允许用户手动设置cookie,而只能在指定域名下设置。那么就需要欺骗浏览器,让浏览器以为自己是在某一域名下。1.在本机搭建web服务器,页面中利用js来设置cookie;2.修改本地的host文件(windows/system32/drivers/etc/hosts),添加一行记录;127.0.0.1 www.xxx.com达到dns欺骗,再次访问www.xxx.com时,会跳转到本机的web服务页面上,而 阅读全文
posted @ 2013-12-23 22:57 taotaowill 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 利用163邮箱:1CharSet="UTF-8";//设定邮件编码,默认ISO-8859-1,如果发中文此项必须设置为UTF-87$mail->IsSMTP();//设定使用SMTP服务8$mail->SMTPAuth=true;//启用SMTP验证功能9//$mail->SMTPSecure="ssl";//SMTP安全协议10$mail->Host="smtp.163.com";//SMTP服务器11$mail->Port=25;//SMTP服务器的端口号12$mail->Username=&q 阅读全文
posted @ 2013-10-23 16:47 taotaowill 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 建一个文本文档,在其中输入以下内容(包括一些汉字,到goto :start为止):REM QBFC Project Options BeginREM HasVersionInfo: YesREM Companyname: REM Productname: 顽固目录删除器REM Filedescription: 顽固目录删除器REM Copyrights: REM Trademarks: 顽固目录删除器REM Originalname: 顽固目录删除器REM Comments: REM Productversion: 20.10.05.08REM Fileversion: ... 阅读全文
posted @ 2013-10-22 23:21 taotaowill 阅读(3007) 评论(0) 推荐(0) 编辑
摘要: 去网站:http://gnome-look.org/content/download.php?content=149310&id=1&tan=21193118下载theme或icon, 将theme放在/usr/share/themes/目录下,icon放在/usr/share/icons/下,然后在Ubuntu Tweak Tool中就可以看到theme和icon了。 阅读全文
posted @ 2013-10-22 18:45 taotaowill 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 问题:比如我在svn上checkout出一个项目 它下边的所有子文件夹都会包含一个.svn 的文件夹,应为太多了,不想一个一个去删,不知道怎样才能一次性删除?答案:find 要查找的目录名 -name .svn |xargs rm -rf 阅读全文
posted @ 2013-10-21 13:53 taotaowill 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: importosimportjsonimportlogging.configimportlogginglogging.basicConfig(filename='C:\\Users\\user\\Desktop\\log.txt',level=logging.DEBUG,filemode='w',format='%(asctime)s-%(levelname)s:%(message)s')logger=logging.getLogger('root')logger.info('info ***')logger.er 阅读全文
posted @ 2013-10-17 13:24 taotaowill 阅读(439) 评论(0) 推荐(0) 编辑