- 支持 OpenWrt 的路由器,可以通过这里搜索自己的路由器是否支持
- 网络环境
- 带网线接口的 windows 电脑或者 linux 电脑
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 用法:在本地创建该文件 | |
# 设置权限:`sudo chmod 755 ./wifi-auto-dis-reconnect.sh` | |
# 运行:`sudo ./wifi-auto-dis-reconnect.sh` | |
# 用完之后如果网络没恢复,需手动运行 `sudo networksetup -setnetworkserviceenabled Wi-Fi on` | |
echo "shit network testing tool by tom" | |
echo " " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sseServer = new SSEServer({ | |
url: '/files/:fileGuid/pull' | |
}) | |
const commentRegister = sseServer.register({ | |
queryKeyword: 'comment', | |
getRoomId(context: SSEClientContext) { | |
return context.request.params.fileGuid | |
}, | |
async fetch (commentId: string, context: any) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Bluebird = require('bluebird') | |
var hbase = require('hbase-rpc-client') | |
const zookeeperHosts = process.env.NODE_ENV === 'production' | |
? [ | |
'hb-2zep85a9uik6g1lg8-004.hbase.rds.aliyuncs.com:2181', | |
'hb-2zep85a9uik6g1lg8-003.hbase.rds.aliyuncs.com:2181', | |
'hb-2zep85a9uik6g1lg8-002.hbase.rds.aliyuncs.com:2181' | |
] : [ | |
'localhost:2181' |
###石墨整体架构一览 ####前端篇
#####框架 石墨的前端使用的框架很传统:jQuery + RequireJS,我们使用RequireJS的text模块引入模板,手动用代码渲染数据,没有使用AngularJS之类的MV*框架的原因是自己编写的js更灵活,拓展性更好。框架们的功能都很强大,但是当遇到一些复杂依赖或者性能问题时,坑往往会很深。
#####环境结构
在生产环境下