Typora激活思路
效果图
先决条件
清醒且爱思考的大脑
已安装官方typora软件的ubuntu系统
流畅且无限制的网路环境
编译环境搭建
无需root权限,执行下面命令
1curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
在弹出界面中输入 1 即可自动安装rust环境
用以下命令校验是否安装成功
12345❯ rustc --version rustc 1.66.0 (69f9c33d7 2022-12-12)❯ cargo --versioncargo 1.66.0 (d65d197ad 2022-11-15)
编译
克隆以下两个项目
12git clone https://github.com/DiamondHunters/NodeInject.gitgit clone https://github.com/DiamondHunters/NodeInject_Hook_example.git
将NodeInject_hooke_example项目中hook.js 复制到 NodeInject ...
HEXO 核心部署命令
部署HEXO
安装hexo
1npm install hexo
初始化目录
1npx hexo init core
安装hexo主题,在hexo根目录下运行
1git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
安装主题渲染插件
1npm install hexo-renderer-pug hexo-renderer-stylus --save
安装搜索插件
1npm install hexo-generator-searchdb
Windows/Linux 设置ssh代理
设置方法
编辑home目录下的.ssh/config文件
在最后加入以下内容1234Host * Compression yes ServerAliveInterval 20 ProxyCommand nc -X 5 -x 127.0.0.1:7890 %h %p
windwos则是以下配置
12345Host *Compression yesServerAliveInterval 20ProxyCommand "C:\Program Files\Git\mingw64\bin\connect.exe" -S 127.0.0.1:7890 %h %p
-X 5表示socks5代理
ubuntu 激活typora
效果图
先决条件
清醒且爱思考的大脑
已安装官方typora软件的ubuntu系统
流畅且无限制的网路环境
编译环境搭建
无需root权限,执行下面命令
1curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
在弹出界面中输入 1 即可自动安装rust环境
用以下命令校验是否安装成功
12345❯ rustc --version rustc 1.66.0 (69f9c33d7 2022-12-12)❯ cargo --versioncargo 1.66.0 (d65d197ad 2022-11-15)
编译
克隆以下两个项目
12git clone https://github.com/DiamondHunters/NodeInject.gitgit clone https://github.com/DiamondHunters/NodeInject_Hook_example.git
将NodeInject_hooke_example项目中hook.js 复制到 NodeInject ...
个人常用工具大全
ChatGPT
免登录、免注册、开箱即用的人工智能对话模型
网址:https://ai.dandaner.cn
API调试
在线免费API调试,可以说是Postman网页版
网址:https://api.dandaner.cn
SQL Studio
简单高效的数据库管理和开发的在线工具
https://sql.dandaner.cn
个人云盘
一个存放了常用资料和软件的云盘
网址:https://cloud.dandaner.cn
系统监控
在线、实时显示服务器运行状态
网址:https://tz.dandaner.cn
青龙面板
一个集JavaScript,python,shell,typescript定时运行管理的web面板
网址:https://ql.dandaner.cn
对象云存储
用于存放站点的样式文件以及图片
网址:https://oss.dandaner.cn
Http SSE
HTTP SSE简介
HTTP SSE(Server-Sent Events)是一种基于HTTP协议的服务器推送技术,允许服务器通过一个持久的HTTP连接将事件推送给客户端。它与WebSockets类似,但相对于WebSockets更为简单且轻量级。
使用SSE,客户端可以通过向服务器发送一个简单的HTTP请求来订阅事件流。一旦订阅成功,服务器可以将事件推送给客户端,而客户端无需发送任何请求就可以收到这些事件。与轮询和长轮询不同,SSE允许服务器将事件实时推送给客户端,因此可以实现更快速的实时通信。
SSE使用纯文本数据格式,并且易于理解和使用。它通常用于实时通知、实时数据更新、在线聊天和其他需要实时数据传输的应用程序。
Nginx配置SSE
编辑nginx目录下的mime.types文件,加入以下mime类型
1text/event-stream sse;
给流式api加入以下请求头
1234567891011location /{ proxy_pass http://ai; # 此处根据自己实际情况修改 ...