(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
apt-get update | |
apt-get install pptpd -y | |
echo localip 192.168.240.1 >> /etc/pptpd.conf | |
echo remoteip 192.168.240.2-9 >> /etc/pptpd.conf | |
echo ms-dns 8.8.8.8 >> /etc/ppp/pptpd-options | |
echo ms-dns 8.8.4.4 >> /etc/ppp/pptpd-options | |
echo "vpn pptpd pass123 *" | tee -a /etc/ppp/chap-secrets | |
/etc/init.d/pptpd restart |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#用正则简单过滤html的<>标签 | |
import re | |
str = "<img /><a>srcd</a>hello</br><br/>" | |
str = re.sub(r'</?\w+[^>]*>','',str) | |
print str |