Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
http://data.house.sina.com.cn/ip/app_addr.php?ip= | |
http://php.weather.sina.com.cn/xml.php?city=&password=DJOYnieT8234jlsK&day= | |
http://vip.stock.finance.sina.com.cn/quotes_service/view/HisenseSuggest.php?type=1,2&key= | |
http://vip.stock.finance.sina.com.cn/quotes_service/view/HisenseABQuotes.php?id= | |
http://image2.sinajs.cn/newchart/min/n/%s.gif | |
http://image2.sinajs.cn/newchart/daily/n/%s.gif | |
http://image2.sinajs.cn/newchart/weekly/n/%s.gif | |
http://image2.sinajs.cn/newchart/monthly/n/%s.gif | |
http://tvlist.dnethome.net:8088/cgi-bin/epg_index.fcgi?action=smarttv_ad&id=12 | |
http://tvlist.dnethome.net:8088/cgi-bin/epg_index.fcgi?action=smarttv_ad&id=12 |
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
set lock-after-time 300 |
#!/bin/sh | |
# Update latest epel | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
sudo rpm -Uvh epel-release-6-8.noarch.rpm | |
# Download and build mosh | |
sudo yum -y install rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++ | |
rpmdev-setuptree | |
cd ~/rpmbuild/SOURCES |