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
++++++++++ [ | |
>+++>++++>+++++++ | |
>++++++++++>+++++++++++ | |
<<<<<- | |
] | |
>>>++.>+.>--..+++. | |
<<<<++.>>>>++++++++. | |
--------.+++.<+++++++. | |
--------.<<<+. |
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
++++++++++ [ | |
>+++>++++>+++++++ | |
>++++++++++>+++++++++++ | |
<<<<<- | |
] |
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
>>>++. |
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
def interpret(source): | |
op = [0] * 255 | |
pointer = 0 | |
i = 0 | |
start = [] | |
while i < len(source): | |
if source[i] == '<': | |
pointer -= 1 | |
elif source[i] == '>': | |
pointer += 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
server { | |
listen 80; | |
server_name blog.wangjinli.com www.wangjinli.com wangjinli.com; | |
index index.html index.htm index.php default.html default.htm default.php; | |
root /home/wwwroot/www.wangjinli.com; | |
if ($host = 'blog.wangjinli.com';) { | |
rewrite ^/(.*)$ http://wangjinli.com/blog/$1 permanent; | |
} | |
include wordpress.conf; | |
location ~ [^/]\.php(/|$) { |
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
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
# Add trailing slash to */wp-admin requests. | |
rewrite /wp-admin$ $scheme://$host$uri/ permanent; |
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
location / { | |
try_files $uri $uri/ /blog/index.php?$args; | |
} |
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
yum install epel-release | |
yum update | |
yum install python-setuptools m2crypto supervisor | |
easy_install pip | |
pip install shadowsocks |
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
cd /usr/local/sbin/ | |
./privoxy --no-daemon /usr/local/etc/privoxy/config |
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
//AppDelegate.h | |
@interface AppDelegate : UIResponder<UIApplicationDelegate> { | |
NSString *str; | |
} | |
@property (nonatomic, retain) NSString *str; |
OlderNewer