摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr... 阅读全文
posted @ 2015-08-13 23:54 hao.ma 阅读(203) 评论(0) 推荐(0) 编辑
摘要: function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); ... 阅读全文
posted @ 2015-08-02 16:09 hao.ma 阅读(258) 评论(0) 推荐(0) 编辑
摘要: wget http://nginx.org/download/nginx-1.8.0.tar.gzwget http://nginx.org/download/nginx-1.8.0.tar.gzwget http://nginx.org/download/nginx-1.8.0.tar.gzwge... 阅读全文
posted @ 2015-07-29 20:22 hao.ma 阅读(388) 评论(0) 推荐(0) 编辑
摘要: openssl genrsa -out prikey.pem 1024 openssl rsa... 阅读全文
posted @ 2015-07-29 15:42 hao.ma 阅读(300) 评论(0) 推荐(0) 编辑
摘要: "vim config .vimrc"taglist ... 阅读全文
posted @ 2015-07-28 20:58 hao.ma 阅读(255) 评论(0) 推荐(0) 编辑
摘要: AllowOverride all Options +FollowSymLinks +SymLinksIfOwnerMatch Order allow,deny Allow from allRewriteEngine on RewriteCond $1 !^(index.php|image... 阅读全文
posted @ 2015-07-12 19:11 hao.ma 阅读(171) 评论(0) 推荐(0) 编辑
摘要: cat all_uuid_log | grep "[a-z0-9]\{32\}" 阅读全文
posted @ 2015-05-20 15:03 hao.ma 阅读(860) 评论(0) 推荐(0) 编辑
摘要: ./bin/mysqladmin -uroot -p123456 -S /home/allen/var/mysql/mysql.sock shutdown 阅读全文
posted @ 2015-05-17 15:30 hao.ma 阅读(796) 评论(0) 推荐(1) 编辑
摘要: 下载源码包进入源码包的modules目录 选择你要编译的.c文件eg:/home/work/local/apache/bin/apxs -c -i -a mod_proxy_http.c选项说明:-c 执行编译操作-i 安装操作,安装一个或多个动态共享对象到服务器的modules目录-a 自动增加一... 阅读全文
posted @ 2015-05-16 19:22 hao.ma 阅读(185) 评论(0) 推荐(0) 编辑
摘要: httperf: A relatively well-known open source utility developed by HP, for Linux operating systems onlywebsite: http://www.hpl.hp.com/research/linux/ht... 阅读全文
posted @ 2015-05-16 19:16 hao.ma 阅读(128) 评论(0) 推荐(0) 编辑