随笔分类 -  linux

摘要:Ok, if anyone ends up in a similar situation, you can use pkexec yum install sudo. pkexec will let you enter your password in your OS's GUI. pkexec a... 阅读全文
posted @ 2015-07-09 22:20 lein.wang 阅读(367) 评论(0) 推荐(0)
摘要:http://help.aliyun.com/knowledge_detail.htm?spm=5176.7114037.1996646101.1.PcbeK6&categoryId=8314872&knowledgeId=5975216&pos=110.159.0.0/16,10.158.0.0/... 阅读全文
posted @ 2015-06-11 15:38 lein.wang 阅读(576) 评论(0) 推荐(0)
摘要:阿里云ECS服务器被DDoS无解,请问我该何去何从? 阅读全文
posted @ 2015-05-26 18:08 lein.wang 阅读(130) 评论(0) 推荐(0)
摘要:#!/bin/bash# for ((i=1;i>awk_column.txt;# done-------上面注释的部分用来生成awk_column.txtc1=`shuf -i 1-10000 -n 1`c2=`shuf -i 1-10000 -n 1`awk 'BEGIN {} {if ($1 ... 阅读全文
posted @ 2015-05-13 15:28 lein.wang 阅读(155) 评论(0) 推荐(0)
摘要:spl_autoload_register(PHP 5 >= 5.1.2)spl_autoload_register—注册给定的函数作为 __autoload 的实现说明¶boolspl_autoload_register([callable$autoload_function[,bool$thro... 阅读全文
posted @ 2015-03-19 10:11 lein.wang 阅读(200) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/yjf512/archive/2012/03/30/2424726.htmlhttp://chenxiaoyu.org/2011/10/30/nginx-modules.htmlhttp://tengine.taobao.org/ 阅读全文
posted @ 2014-11-27 14:17 lein.wang 阅读(98) 评论(0) 推荐(0)
摘要:http://www.insilmaril.de/vym/点击打开链接http://www.oschina.net/p/vym有人说VYM就跟目录是一回事,确实是这样,只不过与excel之类的比起来,它更生动,易操作,更直接,更符合人类大脑对图片比较容易接受的思维习惯。 阅读全文
posted @ 2014-11-27 11:16 lein.wang 阅读(420) 评论(0) 推荐(0)
摘要:环境: fedora 20$ curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh#############################... 阅读全文
posted @ 2014-11-24 22:42 lein.wang 阅读(360) 评论(0) 推荐(0)
摘要:Fedora 16采用GRUB2,因此启动菜单编辑方式与以前版本有所不同设置默认启动Windows1. 首先找到Windows的menuentry# cat /boot/grub2/grub.cfg | grep Windows输出:menuentry "Windows 7 (loader) (o... 阅读全文
posted @ 2014-11-17 20:49 lein.wang 阅读(230) 评论(0) 推荐(0)
摘要:点击打开链接http://blog.csdn.net/chuanj1985/article/details/6873830 阅读全文
posted @ 2014-11-08 19:59 lein.wang 阅读(120) 评论(0) 推荐(0)
摘要:点击打开链接http://www.cnblogs.com/eastson/archive/2012/08/24/2654163.html 阅读全文
posted @ 2014-11-08 19:32 lein.wang 阅读(100) 评论(0) 推荐(0)
摘要:官网:http://thrift.apache.org/一些介绍使用的文章:http://www.ibm.com/developerworks/cn/java/j-lo-apachethrift/index.htmlhttp://thrift.apache.org/tutorial/phphttp:... 阅读全文
posted @ 2014-10-15 15:00 lein.wang 阅读(643) 评论(0) 推荐(0)
摘要:安装php的redis扩展:http://pecl.php.net/package/redis也可以用PHP直接连redis:http://www.cnblogs.com/kudosharry/articles/2534694.htmlhost = $host; $this->port... 阅读全文
posted @ 2014-10-10 14:45 lein.wang 阅读(138) 评论(0) 推荐(0)
摘要:http://blog.cafeneko.info/2010/10/nginx_rewrite_note/ 阅读全文
posted @ 2014-10-10 10:14 lein.wang 阅读(89) 评论(0) 推荐(0)
摘要:点击打开链接http://imtiger.net/blog/2012/08/29/qps-pv-rt/ 阅读全文
posted @ 2014-09-30 16:52 lein.wang 阅读(488) 评论(0) 推荐(0)
摘要:phpcassa library里有个namespace :use phpcassa\Schema\DataType;当使用cql query得到cqlrow, int32 & Date type会乱码:string 'phpcassa\Schema\DataType\Int32Type' (len... 阅读全文
posted @ 2014-09-11 15:06 lein.wang 阅读(247) 评论(0) 推荐(0)
摘要:Ben: $ siege -u shemp.whoohoo.com/Admin.jsp -d1 -r10 -c25..Siege 2.65 2006/05/11 23:42:16..Preparing 25 concurrent users for battle.The server is now ... 阅读全文
posted @ 2014-09-10 16:39 lein.wang 阅读(171) 评论(0) 推荐(0)
摘要:SELECT ROUND( SUM(data_length + index_length) / 1024 / 1024 ) TOTAL_MB, ROUND(SUM(data_length) / 1024 / 1024) DATA_MB, ROUND( SUM(index_length) /... 阅读全文
posted @ 2014-09-10 10:11 lein.wang 阅读(212) 评论(0) 推荐(0)
摘要:点击打开链接http://stackoverflow.com/questions/22619897/remove-indent-guide-lines 阅读全文
posted @ 2014-09-01 13:33 lein.wang 阅读(233) 评论(0) 推荐(0)
摘要:http://www.360doc.com/content/14/0318/17/10058718_361644273.shtml 阅读全文
posted @ 2014-08-20 13:01 lein.wang 阅读(106) 评论(0) 推荐(0)