Skip to content

Instantly share code, notes, and snippets.

++++++++++ [
>+++>++++>+++++++
>++++++++++>+++++++++++
<<<<<-
]
>>>++.>+.>--..+++.
<<<<++.>>>>++++++++.
--------.+++.<+++++++.
--------.<<<+.
++++++++++ [
>+++>++++>+++++++
>++++++++++>+++++++++++
<<<<<-
]
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
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(/|$) {
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location / {
try_files $uri $uri/ /blog/index.php?$args;
}
yum install epel-release
yum update
yum install python-setuptools m2crypto supervisor
easy_install pip
pip install shadowsocks
cd /usr/local/sbin/
./privoxy --no-daemon /usr/local/etc/privoxy/config
//AppDelegate.h
@interface AppDelegate : UIResponder<UIApplicationDelegate> {
NSString *str;
}
@property (nonatomic, retain) NSString *str;