lmmsoft / 2023

创建一个项目,用自动化的方式,记录我的2023年
MIT License
0 stars 0 forks source link

个人大数据之旅 #9

Open lmmsoft opened 1 year ago

lmmsoft commented 1 year ago

记录个人大数据相关的 idea

有了ChatGPT之后,AI大爆发,借助大模型,人人都可以用 提示词 的方式搞人工智能,算力大爆发,思路大爆发,一切皆可以用AI重做一遍。

我也不能例外。

【原则】 给自己的要求:每天动动手

【大方向】

【备份】

lmmsoft commented 1 year ago

第一章:升级NAS 背景: 实操:pdd yyds 结果:

【网络】

lmmsoft commented 1 year ago

第二章:搭建数据库

最终方案:

NAS: mysql(双活), redis(不差内存) Azure虚拟机:mongodb, Azure免费db服务:mysql + postgress + azuredb(热备)

Serverless服务:

mongodb atlas: 免费额度 https://cloud.mongodb.com/ 注意要选Shared 里面的 M0, 有 512M 大小,Serverless 是要钱的,60天没用会回收 redis: 免费额度 rsshub: 使用 https://zeabur.com/ 自己搭建一个,需要7天登陆一次

DB具体场景:

postgres

MySQL

VM场景

lmmsoft commented 1 year ago

第三章:搭建ttrss

【What】

【Why】

【How】

国产搭建方案,

https://github.com/HenryQW/Awesome-TTRSS

放那里?

用什么方案

这个教程不错 https://sspai.com/post/57498

docker 部署

docker run -it --name ttrss --restart=always \
-e SELF_URL_PATH=[ TTRSS 实例地址 ]  \
-e DB_HOST=[ 数据库地址 ]  \
-e DB_PORT=[ 数据库端口 ]  \
-e DB_NAME=[ 数据库名称 ]  \
-e DB_USER=[ 数据库用户名 ]  \
-e DB_PASS=[ 数据库密码 ]  \
-p [ 容器对外映射端口 ]:80  \
-d wangqiru/ttrss

- 我的 docker-compose.yml ,注释掉了 postgress 容器部分,ttrss 修改环境变量,连接azure的postgres数据库,供参考,实际请在awesome-TTRSS项目的最新 docker-compose.yml 上修改

version: "3" services: service.rss: image: wangqiru/ttrss:latest container_name: ttrss ports:

volumes: feed-icons:

networks: public_access: # Provide the access for ttrss UI service_only: # Provide the communication network between services only internal: true database_only: # Provide the communication between ttrss and database only internal: true


## 【踩坑】
Azure的postgres默认强制ssl登陆,而 ttrss 的初始化代码里,没有打开ssl,会导致报错
Exception while creating PDO object:SQLSTATE[08006] [7] connection to server at "xxx.postgres.database.azure.com" (202.89.222.255), port 5432 failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
connection to server at "xxx.postgres.database.azure.com" (202.89.222.255), port 5432 failed: FATAL:  no pg_hba.conf entry for host "202.222.16.44", user "xxx", database "ttrss", no encryption


解决的方法是在 Azure Postgres的【服务器参数】里,把 require_secure_transport 设为 false
![image](https://github.com/lmmsoft/2023/assets/1109198/aa5b7173-4e48-4f8d-b1e9-2490c9343f4e)

## 踩坑2
- db 问题过了后,部署应该可以了, 但是 url 总是打不开,vm上 curl localhost:181 有返回, curl dns:181 不行,应该是防火墙问题,azure vm的网络配置里,赶紧打开 181 端口

## 踩坑3
- 打开网页后,提示我 SELF_URL_PATH 不对, 应该是 http://url , 我原本设置是 url,没有http://,删了容器重启
- 正确>  -e SELF_URL_PATH=http://xxx.azure.com:181

## 装好之后
- 如何开启 opencc 和 mercury 插件,其他的一些折腾内容,参考 https://spencer-blog-legacy.vercel.app/2020/03/ttrss-noteworthy/
lmmsoft commented 1 year ago

第四章:搭建rsshub

自己搭建

发现网页的rss源

微信公众号

Wechat2RSS

lmmsoft commented 1 year ago

第五章:导入 rss 数据源

【公众号】 【微博】订阅几个必读的人(不怎么转发,只原创思想,等等) 【推特】现在可能比较麻烦

lmmsoft commented 1 year ago

第六章:数据索引

ttrss 的数据,如何索引,如何AI 化?

lmmsoft commented 1 year ago

第七章:自动化,AI 处理 ttrss数据

lmmsoft commented 1 year ago

第八章:个人的【文件传输助手】【待读清单】 wallabag

ttrss插件

Chrome 插件

搭建 wallabag

类似的

https://github.com/ArchiveBox/ArchiveBox 对比https://www.libhunt.com/compare-wallabag-vs-pirate--ArchiveBox

搭建实操篇

搭建在哪里的思考

需要的资源和我有的资源

lmmsoft commented 1 year ago

第三章,续篇:折腾ttrss

各种插件

ALL-about-RSS

lmmsoft commented 1 year ago

第十一章,手机机器人自动化

hamibot

lmmsoft commented 1 year ago

第十二章 使用python库生成自己的rss

Feedgen

lmmsoft commented 1 year ago

第十三章 企业微信开发

lmmsoft commented 1 year ago

第十四讲 微博爬虫

lmmsoft commented 1 year ago

第十五讲 事件触发器

lmmsoft commented 1 year ago

第十六讲 手机远程控制

相关软件

对比文章

scrcpy

lmmsoft commented 12 months ago

第十七讲 部署 self Read it later omnivore

-更现代, 有 web + iOS app + Android app

lmmsoft commented 11 months ago

第九章 浏览器插件

目的:全面拥抱,上网随时用 ChatGPT,被动使用 + 比较容易的主动

插件列表(用过很多,以下是推荐的,都是我高频使用的)

Monica

Glarity

lmmsoft commented 11 months ago

第二十一章 个人微信机器人方案收集

lmmsoft commented 11 months ago

第二十二章 语言输入 + AI 优化

参考文章

perform the following actions: 1 - remove all newlines. 2 - Browse the content to understand the meaning of this text. 3 - Remove modal particles and unnecessary repetition. 4 - Output the modified content.

I don't need you to summarize, you just need to clean up the content. Note that you can only modify, add or subtract words, but not add, delete or change sentences. Clean the text below, delimited by triple backticks. Return your answer in Chinese

Text: {texts[i]} """

lmmsoft commented 9 months ago

第二十三章 MySQL双向同步

lmmsoft commented 6 months ago

第八章,续,搭建 wallabag