###depencies
http://www.noah.org/wiki/Build_Python_2.6_on_Ubuntu
libssl-dev
libreadline-dev
aptitude -y -q install libc6-dev
aptitude -y -q install libffi4-dev
aptitude -y -q install libncurses5-dev
aptitude -y -q install libncursesw5-dev
[program:501fun] | |
command=/home/zdb/uwsgi-0.9.8.6/uwsgi | |
--uid zdb | |
-x /home/zdb/webpy_uwsgi.xml | |
--vhost | |
user=zdb | |
autostart=true | |
autorestart=true | |
stdout_logfile=/sites/501fun/logs/501funlog.log | |
stderr_logfile=/sites/501fun/logs/501funerr.log |
#/etc/rc.local | |
iptables -A OUTPUT -p icmp -o eth0 -j ACCEPT | |
iptables -A INPUT -p icmp --icmp-type echo-reply -s 0/0 -i eth0 -j ACCEPT | |
iptables -A INPUT -p icmp --icmp-type destination-unreachable -s 0/0 -i eth0 -j ACCEPT | |
iptables -A INPUT -p icmp --icmp-type time-exceeded -s 0/0 -i eth0 -j ACCEPT | |
iptables -A INPUT -p icmp -i eth0 -j DROP |
log-queries | |
log-facility=/var/log/dnsmasq.log | |
#sudo /etc/init.d/dnsmasq restart | |
#sudo tail -f /var/log/dnsmasq.log | |
#android.clients.google.com |
$ sudo aptitude install guile-1.8 | |
$ guile | |
(trace function-name) | |
Then, whenever this function is called, it will print a message to the screen showing what arguments it was called with. When the procedure returns, it will print a message showing what value that call returned. | |
To turn off tracing, use the command: | |
(untrace function-name) | |
Or, to turn off all tracing, simply: |
#/tmp/foo_dir -> ubuntu12:/tmp/foo_dir/ | |
#--delete delete extraneous files from destination dirs | |
#--delete-excluded also delete excluded files from destination dirs | |
#--exclude=PATTERN exclude files matching PATTERN | |
rsync -avzP --delete --exclude=".svn" --delete-excluded /tmp/foo_dir/ ubuntu12:/tmp/foo_dir/ | |
PyRSS2Gen==1.1 |
###depencies
http://www.noah.org/wiki/Build_Python_2.6_on_Ubuntu
libssl-dev
libreadline-dev
aptitude -y -q install libc6-dev
aptitude -y -q install libffi4-dev
aptitude -y -q install libncurses5-dev
aptitude -y -q install libncursesw5-dev
###trick
if you create a new wget child process "wget http://foo.bar", but redirect child stdin and stdout to the same pipe, wget will give you something like this
0K .......... .......... .......... .......... .......... 0% 105K 2h1m
50K .......... .......... .......... .......... .......... 0% 158K 1h41m
100K .......... .......... .......... .......... .......... 0% 302K 81m58s
虚拟机 ubuntu 12.04
$ sudo aptitude install stunnel
$ sudo aptitude install squid3
squid3的默认http端口是3128
/etc/stunnel/stunnel.conf中的foreground = yes, 是用来调试用的 如果用superviord来管理stunnel 这个选项也会用得到
/etc/stunnel/stunnel.pem, 这个pair是这样得到的
dropbox
friendsfeed