-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
295 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
layout: post | ||
title: "Go 语言编写的强大灵活的 DNS 工具包" | ||
aliases: | ||
- "Go 语言编写的强大灵活的 DNS 工具包" | ||
tagline: "" | ||
description: "" | ||
category: 经验总结 | ||
tags: [ go-lang, dns, cli, dns-record, cname, ptr, ns, max, txt, srv, soa, ] | ||
create_time: 2024-04-11 13:26:45 | ||
last_updated: 2024-04-11 13:26:45 | ||
dg-home: false | ||
dg-publish: false | ||
--- | ||
|
||
[dnsx](https://github.com/projectdiscovery/dnsx) 是一个使用 Go 语言编写的 DNS 查询工具,由 ProjectDiscovery 团队开发和维护。通过 retryabledns 库运行各种 DNS 探测,支持多种 DNS 查询,用户自定义解析器以及 DNS 通配符过滤等功能。 | ||
|
||
## 功能 | ||
|
||
- 支持多种 DNS 记录查询,包括 A、AAAA、CNAME、PTR、NS、MX、TXT、SRV、SOA 等 | ||
- DNS 暴力破解 | ||
- 支持自定义 DNS 解析器 | ||
- 支持多种解析器格式 TCP UDP DOH DOT | ||
- 支持标准输入输出,方便和其他命令行工具配合使用 | ||
|
||
## 安装 | ||
|
||
dnsx 需要 Go 1.21 或更高版本。可以通过以下命令安装最新版本 | ||
|
||
``` | ||
go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest | ||
``` | ||
|
||
## 使用 | ||
|
||
解析子域名列表 | ||
|
||
subfinder 是一个用来枚举和发现子域名的工具,Go 语言编写,开源。 | ||
|
||
``` | ||
subfinder -d example.com | dnsx -silent -a -resp | ||
``` | ||
|
||
提取 CNAME 记录 | ||
|
||
``` | ||
subfinder -d example.com | dnsx -silent -cname -resp | ||
``` | ||
|
||
DNS 暴力破解 | ||
|
||
``` | ||
dnsx -d example.com -w wordlist.txt | ||
``` | ||
|
||
同样 dnsx 也可以作为 Go 库在程序中使用 | ||
|
||
``` | ||
dnsClient, _ := dnsx.New(dnsx.DefaultOptions) | ||
result, _ := dnsClient.Lookup("example.com") | ||
``` | ||
|
||
|
||
## related | ||
|
||
- [[反查一个域名的所有子域名]] | ||
- [[subfinder]] |
60 changes: 60 additions & 0 deletions
60
_posts/2024-10-08-screenpipe-your-personal-ai-assistant.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
layout: post | ||
title: "Screenpipe 私人的 AI 助理 本地记录看到听到的一切" | ||
aliases: | ||
- "Screenpipe 私人的 AI 助理 本地记录看到听到的一切" | ||
tagline: "" | ||
description: "" | ||
category: 产品体验 | ||
tags: [github, open-source, rewind, ollama, ai, desktop-app, macos, ai-assistant, ocr, screen-recording] | ||
create_time: 2024-11-16 09:28:20 | ||
last_updated: 2024-11-16 09:28:20 | ||
dg-home: false | ||
dg-publish: false | ||
--- | ||
|
||
[screenpipe](https://github.com/mediar-ai/screenpipe) 是一款开源的,记录在本地的,屏幕录制,以及全文检索应用,可以和 [[Ollama]] 一起使用,可以作为 [[Rewind]] 的开源代替。很早之前接触 Rewind 的时候就感觉非常的神奇,在不联网的情况下,可以完全在本地记录屏幕上的所有内容,并且可以非常快得在本地检索,所有屏幕中的内容,要实现这个功能我能想到的要突破的技术点一个就是存储,另外一个就是 OCR 识别以及检索。 | ||
|
||
根据 Rewind 的官方的记录只能在 macOS 下运行,可想应该是使用了 M 系列芯片的机器学习能力,但是今天介绍的 screenpipe 则是将原来闭源的 Rewind 做出了一个开源实现版本,通过连续对用户屏幕和录音设备的记录,来记录用户一天 24 小时的内容。 | ||
|
||
不知道大家有没有遇到过一种情况,自己明明在几个月前在浏览器看过一篇文章,虽然能大概回忆起来几个关键字,但是就是怎么都找不回来,我自己是遇到过几次这样的事情,从 Chrome 历史纪录,从 Google History 里面都通过关键字找了一圈,但是我自己记住的关键字可能是文章正文的内容,在浏览记录里面完全找不到,这个时候 screenpipe 就派上了用场。 | ||
|
||
## 功能 | ||
|
||
- 持续的数据收集,记录所有屏幕活动以及语音输入 | ||
- 支持中文 OCR | ||
- 本地数据处理,所有的数据不会离开用户的设备,也不会发送到外部系统 | ||
- AI 自动化,利用 AI 分析收集的数据并自动执行各种任务 | ||
- 可定制的工作流,通过 JavaScript 创建 Pipe 来构建自己的工作流 | ||
- 跨平台,支持 Windows,macOS,Linux 等 | ||
- 自动会议记录,总结,根据在线会议的音频和演示内容,自动总结并创建摘要 | ||
|
||
## 安装 | ||
|
||
``` | ||
brew tap mediar-ai/screenpipe https://github.com/mediar-ai/screenpipe.git | ||
brew install screenpipe | ||
screenpipe | ||
``` | ||
|
||
或者通过编译安装 | ||
|
||
``` | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
brew install pkg-config ffmpeg jq tesseract cmake wget | ||
git clone https://github.com/mediar-ai/screenpipe | ||
cd screenpipe | ||
cargo build --release --features metal | ||
./target/release/screenpipe | ||
``` | ||
|
||
## 缺点 | ||
|
||
目前运行 Screenpipe 还需要非常高的资源,会占用大量的 CPU 资源。 | ||
|
||
另外 Screenpipe 官方的站点如果输入了邮箱会被官方发送营销邮件,大家输入邮箱之前注意。 | ||
|
||
## related | ||
|
||
- [[Rewind]] | ||
- [[Ollama]] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
layout: post | ||
title: "Wallabag 个人的网站收藏工具" | ||
aliases: | ||
- "Wallabag 个人的网站收藏工具" | ||
tagline: "" | ||
description: "" | ||
category: 产品体验 | ||
tags: [self-hosted, docker, docker-compose, bookmark, chrome-extension, read-it-later, omnivore, readwise, pocket, instapaper] | ||
create_time: 2024-11-15 21:05:17 | ||
last_updated: 2024-11-15 21:05:17 | ||
dg-home: false | ||
dg-publish: false | ||
--- | ||
|
||
Wallabag 是一款开源的 PHP 编写的稍后阅读应用,我自己使用了很多年了,但是忘记在博客里面记录一下了,虽然本地 Obsidian 中还有很多笔记,但是忘记整理发出来了,正好这两天分享发现的新一款稍候阅读和书签管理工具 [hoarder](https://blog.einverne.info/post/2024/11/hoarder.html),然后就顺带提到了 Wallabag。 | ||
|
||
在视频中也提到了目前 Wallabag 使用的过程中没有遇到任何的问题,唯一可能不满意的就是其百年不变的界面,但是这个对我而言不算是问题。 | ||
|
||
Wallabag 可以自托管,配置完了之后可以非常轻松地保存网页的内容,并且 Wallabag 允许将文字图片都离线备份下来,这样不管以后文章被删除了,或者地址变更了,我都可以在 Wallabag 中找到我想要的内容。 | ||
|
||
## 功能 | ||
|
||
- Wallabag 会自动将网页正文内容提取,并且去除掉广告等无关的信息 | ||
- 跨平台支持,提供 Web 界面,移动应用,丰富的 API 接口,还有各种语言的 SDK [[wallabag-python-client]] | ||
- 同步和分享功能,支持跨设备同步 | ||
- 通过 RSS 订阅源来分享阅读列表 | ||
- 标签和检索功能 | ||
- 离线阅读模式,可以在完全离线的情况下阅读文章 | ||
- 数据隐私和安全,完全掌握自己的数据,可以自行部署在服务器 | ||
|
||
## 安装 | ||
|
||
Wallabag 提供了多种安装方式,包括 Docker 容器化安装,支持 SQLite,MariaDB/MySQL,PostgreSQL 等等数据库。 | ||
|
||
我推荐直接使用 docker-compose 安装,可以访问我的[配置](https://github.com/einverne/dockerfile/tree/master/wallabag) | ||
|
||
``` | ||
git clone https://github.com/einverne/dockerfile.git | ||
cd wallabag | ||
# cp env .env | ||
docker-compose up -d | ||
``` | ||
|
||
## 使用注意 | ||
|
||
### 禁止用户注册 | ||
|
||
为了防止实例泄漏被恶意注册,可以禁止新用户注册。在 Docker 安装的时候增加环境变量 | ||
|
||
``` | ||
- SYMFONY__ENV__FOSUSER_REGISTRATION=false | ||
``` | ||
|
||
### 本地图片文件 | ||
|
||
如果发现收藏的文章图片无法加载,可以查看一下 Wallabag 的日志,如果发现权限问题,那么需要调整一下挂载本地的文件夹权限: | ||
|
||
``` | ||
sudo chown -R nobody:nogroup ~/wallabag/ | ||
``` | ||
|
||
### 升级后无法登录 | ||
|
||
如果升级之后无法登录,报错 | ||
|
||
> Authentication request could not be processed due to some problem | ||
可以执行如下的命令来迁移数据库。 | ||
|
||
``` | ||
docker-compose exec wallabag /var/www/wallabag/bin/console doctrine:migrations:migrate --env=prod --no-interaction | ||
``` |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
layout: post | ||
title: "个人订阅管理工具 Wallos" | ||
aliases: | ||
- "个人订阅管理工具 Wallos" | ||
tagline: "" | ||
description: "" | ||
category: 产品体验 | ||
tags: [ wallos, subscription-management, telegram, self-hosting ] | ||
create_time: 2024-11-16 10:07:33 | ||
last_updated: 2024-11-16 10:07:33 | ||
dg-home: false | ||
dg-publish: false | ||
--- | ||
|
||
[Wallos](https://github.com/ellite/Wallos) 是一个强大的,管理订阅的开源工具,互联网应用发展到现在越来越多的应用从买断制转变成了订阅制,虽然这些服务给我们带来了便利,但是如何有效地管理和追踪自己订阅的内容就变成了一件相对麻烦的事情,因为有一些订阅可能是信用卡直接扣款,有一些可能是在 iOS App Store 里面管理,还有一些可能是 PayPal 订阅,Wallos 就是为了解决这个问题,提供了集中一体化追踪,管理,分析订阅的应用。 | ||
|
||
![5xeP0JbgmV](https://pic.einverne.info/images/5xeP0JbgmV.png) | ||
|
||
## 功能 | ||
|
||
Wallos 主要特性包括 | ||
|
||
- 订阅管理,管理订阅名称,价格,付款周期,到期日等 | ||
- 多币种管理,支持多种货币 | ||
- 汇率转换,Fixer API 集成,将不同的货币转换成主要货币 | ||
- 通知提醒,集成多种通知,包括邮件,Discord,Telegram 等,在订阅到期前发送提醒 | ||
- 数据可视化,提供统计图表,帮助用户了解支出情况 | ||
- 自定义分类,根据个人需求自定义分类 | ||
- 数据安全和隐私,所有的数据都存放在自托管的服务器 | ||
|
||
![fNc1l2SSIi](https://pic.einverne.info/images/fNc1l2SSIi.png) | ||
|
||
## 安装 | ||
|
||
推荐直接通过 Docker 进行部署。 | ||
|
||
``` | ||
version: '3.0' | ||
services: | ||
wallos: | ||
container_name: wallos | ||
image: bellamy/wallos:latest | ||
restart: always | ||
ports: | ||
- "8282:80/tcp" | ||
environment: | ||
TZ: 'Asia/Shanghai' | ||
# Volumes store your data between container upgrades | ||
volumes: | ||
- './db:/var/www/html/db' | ||
- './logos:/var/www/html/images/uploads/logos' | ||
``` | ||
|
||
浏览器访问 8282 端口,设置账号和密码。 | ||
|
||
## 使用 | ||
|
||
### 邮件提醒 | ||
|
||
在 Wallos 后台配置 SMTP,就可以启用邮件提醒,如果您想要一个 SMTP 邮件服务器,可以参考一下[这里](https://client.einverne.info/order.php?step=1&productGroup=9)。36 人民币就可以获得一年无限邮箱别名的域名邮箱。 | ||
|
||
填写邮箱配置,用于通知。 | ||
|
||
### 汇率自动转换 | ||
|
||
注册 https://fixer.io ,key 填入后台,用于汇率转换。 | ||
|
||
## related | ||
|
||
- [[汇率接口]] |