node react 学习资源

react UI

https://mobile.ant.design/index-cn

react 桌面UI

https://github.com/gabrielbull/react-desktop

react 学习

http://wiki.jikexueyuan.com/project/react/getting-started.html

react electron 实例

https://github.com/ppoffice/Hozz
https://scotch.io/tutorials/build-a-music-player-with-react-electron-i-setup-basic-concepts

react web界面

https://vladimirponomarev.com/blog/authentication-in-react-apps-creating-components

chat & 点对点通信

https://github.com/DanielBaulig/chat.io

React Native 小书

http://rnbook.yeziker.com/

饿了么大前端 Node.js 进阶教程

https://github.com/ElemeFE/node-interview

命令行界面

https://github.com/Yomguithereal/react-blessed#demo
https://github.com/gaearon/react-blessed-hot-motion

登录相关

https://stormpath.com/blog/build-a-react-app-with-user-authentication
https://github.com/mxstbr/login-flow

其他

http://ithelp.ithome.com.tw/users/20103630/ironman/1219

https://github.com/facebookincubator/create-react-app

社区

https://cnodejs.org

windows 7 vl 版本

ed2k://|file|cn_windows_7_professional_with_sp1_vl_build_x64_dvd_u_677816.iso|3266004992|5A52F4CCEFA71797D58389B397038B2F|/

双网卡环境下iptables 转发 3389

# eth1 为外网网卡
# eth0 为内网网卡
# 10.46.242.142 为目标内网ip
# 10.26.164.26  为内网网卡eth0的ip


iptables  -F 
iptables  -F -t nat

sudo iptables -A FORWARD -i eth1 -o eth0 -p tcp --syn --dport 3389 -m conntrack --ctstate NEW -j ACCEPT

sudo iptables -A FORWARD -i eth1 -o eth0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o eth1 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

sudo iptables -P FORWARD DROP

sudo iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 3389 -j DNAT --to-destination 10.46.242.142
sudo iptables -t nat -A POSTROUTING -o eth0 -p tcp --dport 3389 -d 10.46.242.142 -j SNAT --to-source 10.26.164.26

requests debug mod

import logging

# These two lines enable debugging at httplib level (requests->urllib3->http.client)
# You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
# The only thing missing will be the response.body which is not logged.
try:
    import http.client as http_client
except ImportError:
    # Python 2
    import httplib as http_client
http_client.HTTPConnection.debuglevel = 1

# You must initialize logging, otherwise you'll not see debug output.
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True

mysql 维护技巧

将某表从数据库A移动到数据库B

RENAME TABLE a.table_a TO b.table_a;

去除索引

use databases_a ;ALTER TABLE table_a DROP INDEX password;

创建数据库

CREATE DATABASE IF NOT EXISTS databases_a DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;