This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. prepare | |
# fonts | |
sudo apt-get install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gbsn00lp xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic | |
# depends | |
sudo apt-get install build-essential libqt4-dev libqt4-webkit qt4-qmake | |
# xvfb | |
sudo apt-get install xvfb | |
# 2. build | |
$ wget http://phantomjs.googlecode.com/files/phantomjs-1.3.0-source.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SEE: http://d.hatena.ne.jp/shim0mura/20110730/1312046133 | |
# SEE: https://gist.github.com/1031961 | |
# SEE: http://atrpms.net/documentation/install/ | |
# 1. prepare | |
$ cat /etc/yum.repos.d/atrpms.repo | |
[atrpms-stable] | |
name=ATrpms RHEL5 stable | |
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/stable/ | |
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP飞信发送类 | |
* | |
* @author quanhengzhuang <blog.quanhz.com> | |
* @version 1.5.0 | |
*/ | |
class PHPFetion | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('Asia/Shanghai'); | |
$sleeptime = 1; | |
require 'PHPFetion.php'; | |
#read to and msg from redis | |
function read_msg() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('Asia/Shanghai'); | |
# get args | |
$user = $_GET["user"]; | |
$pass = $_GET["pass"]; | |
$msg = $_GET["msg"]; | |
$msg_dc = urldecode( $msg ); | |
$tolist = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012/09/28 16:27:19 [debug] 26319#0: *1 event timer del: 13: 1348820899544 | |
2012/09/28 16:27:19 [debug] 26319#0: *1 generic phase: 0 | |
2012/09/28 16:27:19 [debug] 26319#0: *1 rewrite phase: 1 | |
2012/09/28 16:27:19 [debug] 26319#0: *1 test location: "/" | |
2012/09/28 16:27:19 [debug] 26319#0: *1 test location: "files/" | |
2012/09/28 16:27:19 [debug] 26319#0: *1 using configuration "/" | |
2012/09/28 16:27:19 [debug] 26319#0: *1 http cl:-1 max:1048576 | |
2012/09/28 16:27:19 [debug] 26319#0: *1 rewrite phase: 3 | |
2012/09/28 16:27:19 [debug] 26319#0: *1 post rewrite phase: 4 | |
2012/09/28 16:27:19 [debug] 26319#0: *1 generic phase: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012/09/28 16:29:49 [debug] 26416#0: *1 event timer del: 13: 1348821049654 | |
2012/09/28 16:29:49 [debug] 26416#0: *1 generic phase: 0 | |
2012/09/28 16:29:49 [debug] 26416#0: *1 rewrite phase: 1 | |
2012/09/28 16:29:49 [debug] 26416#0: *1 test location: "/" | |
2012/09/28 16:29:49 [debug] 26416#0: *1 test location: "files/" | |
2012/09/28 16:29:49 [debug] 26416#0: *1 using configuration "/" | |
2012/09/28 16:29:49 [debug] 26416#0: *1 http cl:-1 max:1048576 | |
2012/09/28 16:29:49 [debug] 26416#0: *1 rewrite phase: 3 | |
2012/09/28 16:29:49 [debug] 26416#0: *1 http script var | |
2012/09/28 16:29:49 [debug] 26416#0: *1 http script var: "Android/1.0" |