Mountain Lion 安装 Command Line Tools

2012年7月31日 mac 1 条评论

首先安装 Xcode4.4 然后 按照一下步骤:

Mountain Lion :
Launch Xcode
Select Xcode -> Preferences from the menu bar.
Select the Downloads tab.
Install “Command Line Tools”.

安装非常简单呵呵~~~100多M~

微盾PHP脚本解密

2012年7月23日 perl, php, 杂项 3 条评论

微盾 的加密主要是用base64做的。。我用额是别人现有的接口。。我只是做了一个批量而已。。

#!/usr/bin/perl

use warnings;
use strict;

use AnyEvent;
use AnyEvent::HTTP;
use Encode;
use Encode::CN;

my @dir_array;
my $decode_api = “http://pubapi1.yoursunny.com/PHP-decode/APIv1.php”;

reader_dir(“$ARGV[0]“);

for my $file (@dir_array) {

my $cv = AnyEvent->condvar;

$cv->begin();
阅读全文…

Yum错误

2012年6月29日 linux 没有评论

今早登录服务器使用yum安装软件的时候发现不能安装。。

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It’s possible that the above module doesn’t match the
current version of Python, which is:
2.6 (r26:66714, Mar 16 2012, 17:42:38)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]

If you cannot solve this problem yourself, please go to
the yum faq at:

http://wiki.linux.duke.edu/YumFaq

经过google发现是python的问题

系统python的当前版本 Python 2.6

运行:#whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/include/python2.4 /usr/share/man/man1/python.1.gz

修改文件:
vim /usr/bin/yum

修改头 #!/usr/bin/python => #!/usr/bin/python2.4

再次运行就正常了。。嘿嘿~~

Varnish 初体验-原理

2012年4月6日 杂项 没有评论

Varnish 安装与启动

2012年4月6日 linux, varnish 没有评论

MogileFS 写入测试

2012年3月30日 MogileFS 没有评论

Perl 线程

2012年3月29日 perl 没有评论

MogileFS 初体验

2012年3月23日 MogileFS 没有评论

人人API开发之人人连接(1)

2012年2月1日 杂项 没有评论

上线

2011年12月31日 杂项 2 条评论