-
Notifications
You must be signed in to change notification settings - Fork 0
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
44 changed files
with
558 additions
and
579 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 was deleted.
Oops, something went wrong.
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
15 changes: 0 additions & 15 deletions
15
docs/后端开发/Spring/sprint-boot-with-jedis/sprint-boot-with-jedis.md
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# 我的世界开服 | ||
- [我的世界各个服务器类型区别](./我的世界各个服务器类型区别.md) | ||
- [我的世界开服-docker-compose](./我的世界开服-docker-compose.md) | ||
- [使用Docker一键开启我的世界服务器[java/基岩]](./使用Docker一键开启我的世界服务器.md) |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# AI-M61-32SU点灯 | ||
|
||
## 下载驱动 | ||
U8 编程器USB 转串口驱动(http://www.stcmcu.com/STCISP/CH341SER.exe ) | ||
|
||
## 按照教程开始搞 | ||
|
||
https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=43775&extra=page%3D1 | ||
|
||
|
||
进入\AiPi-Open-Kits\AiPi-Eyes-DU,执行 make 进行编译 | ||
|
||
在开发板上按住 IO2 按键并按一下 EN 按键进入烧录模式 | ||
|
||
执行,COM4 为上面找到的 COM 口 | ||
|
||
``` | ||
make flash COMX=COM4 | ||
``` | ||
| ||
# AI-M61-32SU点灯 | ||
|
||
## 下载驱动 | ||
U8 编程器USB 转串口驱动(http://www.stcmcu.com/STCISP/CH341SER.exe ) | ||
|
||
## 按照教程开始搞 | ||
|
||
https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=43775&extra=page%3D1 | ||
|
||
|
||
进入\AiPi-Open-Kits\AiPi-Eyes-DU,执行 make 进行编译 | ||
|
||
在开发板上按住 IO2 按键并按一下 EN 按键进入烧录模式 | ||
|
||
执行,COM4 为上面找到的 COM 口 | ||
|
||
``` | ||
make flash COMX=COM4 | ||
``` | ||
| ||
输出 SUCCESS 后再按一次 EN,板子成功点亮 |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# 嵌入式相关 | ||
- [AI-M61-32SU点灯](./AI-M61-32SU点灯.md) | ||
- [Ai-M61-32S开发板编译](./Ai-M61-32S开发板编译/Ai-M61-32S开发板编译.md) |
38 changes: 19 additions & 19 deletions
38
docs/兴趣/Electron客户端应用程序缺点.md → docs/生活记录/Electron客户端应用程序缺点.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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Electron客户端应用程序缺点 | ||
|
||
- 资源消耗:由于 Electron 应用程序需要运行 Chromium 浏览器内核, | ||
因此它们通常需要更多的系统资源,如内存和处理器时间,与本地应用程序相比,这可能导致性能问题。 | ||
|
||
- 文件大小: Electron 应用程序通常具有比本地应用程序更大的文件大小, | ||
因为它们需要包含 Chromium 浏览器内核和其他依赖项,这可能会增加应用程序的下载和安装时间。 | ||
|
||
- 安全性:由于 Electron 应用程序使用 Chromium 内核来显示网页和运行 JavaScript 代码, | ||
因此它们可能容易受到安全漏洞和攻击。因此,开发人员必须采取额外的安全措施来保护应用程序和用户数据。 | ||
|
||
- 难以调试:由于 Electron 应用程序通常包含多个进程,如渲染进程和主进程, | ||
因此调试可能会变得更加复杂。此外,开发人员必须了解 Chromium 内核和 Node.js 环境来调试应用程序。 | ||
|
||
- 开发成本:与使用本地应用程序开发工具相比,使用 Electron 开发应用程序可能需要更多的时间和资源。 | ||
这是因为开发人员需要掌握多个技术栈,包括前端开发,后端开发和桌面应用程序开发。 | ||
|
||
这些都是可能的 Electron 框架开发客户端应用程序的弊端, | ||
但这并不意味着 Electron 框架就不是一个好的开发选择。 | ||
# Electron客户端应用程序缺点 | ||
|
||
- 资源消耗:由于 Electron 应用程序需要运行 Chromium 浏览器内核, | ||
因此它们通常需要更多的系统资源,如内存和处理器时间,与本地应用程序相比,这可能导致性能问题。 | ||
|
||
- 文件大小: Electron 应用程序通常具有比本地应用程序更大的文件大小, | ||
因为它们需要包含 Chromium 浏览器内核和其他依赖项,这可能会增加应用程序的下载和安装时间。 | ||
|
||
- 安全性:由于 Electron 应用程序使用 Chromium 内核来显示网页和运行 JavaScript 代码, | ||
因此它们可能容易受到安全漏洞和攻击。因此,开发人员必须采取额外的安全措施来保护应用程序和用户数据。 | ||
|
||
- 难以调试:由于 Electron 应用程序通常包含多个进程,如渲染进程和主进程, | ||
因此调试可能会变得更加复杂。此外,开发人员必须了解 Chromium 内核和 Node.js 环境来调试应用程序。 | ||
|
||
- 开发成本:与使用本地应用程序开发工具相比,使用 Electron 开发应用程序可能需要更多的时间和资源。 | ||
这是因为开发人员需要掌握多个技术栈,包括前端开发,后端开发和桌面应用程序开发。 | ||
|
||
这些都是可能的 Electron 框架开发客户端应用程序的弊端, | ||
但这并不意味着 Electron 框架就不是一个好的开发选择。 | ||
开发人员应该权衡其优缺点并选择最适合其需求和资源的工具。 |
110 changes: 55 additions & 55 deletions
110
...xport-OTP-From-Microsoft-Authenticator.md → ...xport-OTP-From-Microsoft-Authenticator.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 |
---|---|---|
@@ -1,55 +1,55 @@ | ||
# Export OTP From Microsoft Authenticator | ||
|
||
## Referance article | ||
|
||
[Chinese article](https://zhufan.net/2023/10/05/%E6%89%8B%E5%8A%A8%E5%AF%BC%E5%87%BA-microsoft-authenticator-%E4%B8%AD%E7%9A%84%E5%AF%86%E9%92%A5/) | ||
|
||
|
||
## Export Microsoft Authenticator database | ||
|
||
You can use a rooted phone or a rooted android virtual machine,and use root explore app(like mt管理器 root explore ) to export database file from this path "/data/data/com.azure.authenticator/databases/PhoneFactor". | ||
|
||
## Get data from PhoneFactor and generate QR images | ||
|
||
I add the generate image part to the python script form the reference article. | ||
|
||
This is the full script: | ||
|
||
```shell | ||
pip install qrcode[pil] | ||
``` | ||
|
||
```python | ||
import sqlite3 | ||
import uuid | ||
import json | ||
import qrcode | ||
# connect to sqlite3 database | ||
conn = sqlite3.connect('PhoneFactor') | ||
cursor = conn.cursor() | ||
|
||
# execute SQL query,only select account_type=0,because outlook account not supported | ||
cursor.execute("SELECT name, username, oath_secret_key FROM accounts WHERE account_type = 0") | ||
|
||
result = [] | ||
|
||
# put result to object array | ||
for row in cursor.fetchall(): | ||
name, username, secret_key = row | ||
uuid_str = str(uuid.uuid4()) | ||
otpauthstr = f"otpauth://totp/{name}:{username}?secret={secret_key}" | ||
result.append({ | ||
"uuid": uuid_str, | ||
"otpauthstr": otpauthstr | ||
}) | ||
|
||
# close database connection | ||
conn.close() | ||
|
||
# generate qrcode images | ||
output_json = json.dumps(result, indent=4) | ||
for i in result: | ||
print(i) | ||
img = qrcode.make(i['otpauthstr']) | ||
img.save(f"{i['uuid']}.png") | ||
``` | ||
# Export OTP From Microsoft Authenticator | ||
|
||
## Referance article | ||
|
||
[Chinese article](https://zhufan.net/2023/10/05/%E6%89%8B%E5%8A%A8%E5%AF%BC%E5%87%BA-microsoft-authenticator-%E4%B8%AD%E7%9A%84%E5%AF%86%E9%92%A5/) | ||
|
||
|
||
## Export Microsoft Authenticator database | ||
|
||
You can use a rooted phone or a rooted android virtual machine,and use root explore app(like mt管理器 root explore ) to export database file from this path "/data/data/com.azure.authenticator/databases/PhoneFactor". | ||
|
||
## Get data from PhoneFactor and generate QR images | ||
|
||
I add the generate image part to the python script form the reference article. | ||
|
||
This is the full script: | ||
|
||
```shell | ||
pip install qrcode[pil] | ||
``` | ||
|
||
```python | ||
import sqlite3 | ||
import uuid | ||
import json | ||
import qrcode | ||
# connect to sqlite3 database | ||
conn = sqlite3.connect('PhoneFactor') | ||
cursor = conn.cursor() | ||
|
||
# execute SQL query,only select account_type=0,because outlook account not supported | ||
cursor.execute("SELECT name, username, oath_secret_key FROM accounts WHERE account_type = 0") | ||
|
||
result = [] | ||
|
||
# put result to object array | ||
for row in cursor.fetchall(): | ||
name, username, secret_key = row | ||
uuid_str = str(uuid.uuid4()) | ||
otpauthstr = f"otpauth://totp/{name}:{username}?secret={secret_key}" | ||
result.append({ | ||
"uuid": uuid_str, | ||
"otpauthstr": otpauthstr | ||
}) | ||
|
||
# close database connection | ||
conn.close() | ||
|
||
# generate qrcode images | ||
output_json = json.dumps(result, indent=4) | ||
for i in result: | ||
print(i) | ||
img = qrcode.make(i['otpauthstr']) | ||
img.save(f"{i['uuid']}.png") | ||
``` |
File renamed without changes.
Oops, something went wrong.