<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WWW Redirect Right property" stopProcessing="true">
<match url=".*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.xxx\.cn$" negate="true" />
apt-get install fonts-droid-fallback ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming xfonts-wqy ttf-mscorefonts-installer \
fonts-noto-cjk
IN Ubuntu 16.04 LTS
apt-get install build-essential autoconf
apt-get install libxml2-dev libevent-dev libgmp-dev libmysqlclient-dev libgd-dev libssl-dev libpng12-dev libjpeg-dev libbz2-dev libicu-dev libmcrypt-dev libreadline-dev libxslt-dev libltdl-dev libpq-dev libcurl4-openssl-dev libvmime-dev
ln -s /usr/include/freetype2 /usr/include/freetype2/freetype
phpbrew install 5.3.29 +default+dbs +gd +fpm +pdo +curl +json +hash +mbstring +fileinfo +soap +session +opcache +imap +readline +iconv
then vim /etc/rc.loal
replace #!/bin/sh -e
to #!/bin/bash -e
in it,then
add:
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
#!/bin/bash | |
#receive command | |
#you neet atd daemon to do this | |
cmd="$*" | |
echo $cmd | |
[[ $cmd == "" ]] && { echo 'Command Can Not be Empty' ; exit 1; } | |
command -v at >/dev/null 2>&1 || { echo "I require 'at command' but it's not installed. Aborting." >&2; exit 1; } | |
#set how many minutes to delay | |
range=2-350 | |
echo 'sleep ' $(shuf -i 1-60 -n 1) ';' $cmd |at now + $(shuf -i $range -n 1) min |
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
#!/bin/bash | |
#=====================Config====================== | |
mainLog=phone.log | |
filterLog=phone.filter.log | |
maxTries=100 | |
#=====================Config====================== | |
function fetch { | |
curl -Ss --request GET \ | |
--url 'http://js.189.cn/nmall/shop/number/queryNumber.json?areaId=16&areaCode=0510&numberHead=&showCount=50&isFour=&matchNum=&numberFee=-1&numberFlag=1' \ |
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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
class test(object): | |
def base36encode(self,number): | |
"""Converts an integer into a base36 string.""" | |
# From https://gist.github.com/kfr2/4287546 | |
import string | |
ALPHABET = string.digits+string.ascii_lowercase |
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
#!/bin/sh | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Openresty init.d script, put in /etc/init.d, chmod +x /etc/init.d/openresty | |
# For Debian, run: update-rc.d -f openresty defaults | |
# For CentOS, run: chkconfig --add openresty | |
# | |
### BEGIN INIT INFO | |
# Provides: openresty | |
# Required-Start: $all |
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
diff -ruN coreseek-4.1-beta/csft-4.1/buildconf.sh coreseek-4.1-beta.p0/csft-4.1/buildconf.sh | |
--- coreseek-4.1-beta/csft-4.1/buildconf.sh 2011-10-07 20:08:56.000000000 +0800 | |
+++ coreseek-4.1-beta.p0/csft-4.1/buildconf.sh 2015-07-22 15:35:21.268304991 +0800 | |
@@ -2,5 +2,5 @@ | |
autoheader \ | |
&& aclocal \ | |
-&& automake --foreign \ | |
+&& automake --add-missing --foreign \ | |
&& autoconf |
NewerOlder