update
23
note/2024.md
Normal file
@@ -0,0 +1,23 @@
|
||||
莲花山 书城 会展 商超(买衣服/吃饭) 自驾游 报团 ==>香港/广州/
|
||||
|
||||
dingtalk amzon boss(g) wework
|
||||
|
||||
raspberry pi 云手机/微信机人 AIGC
|
||||
|
||||
---
|
||||
|
||||
~~设置软路由802~~
|
||||
|
||||
pve小主机
|
||||
|
||||
~~拿1把椅子~~
|
||||
|
||||
厨房置物架 / 京东 菜刀套装
|
||||
|
||||
冰箱-清洁 朴朴买菜
|
||||
|
||||
京东:床垫
|
||||
|
||||
菜鸟:4件套 床上用品
|
||||
|
||||
208==>丢垃圾 [晚上]
|
||||
31
note/702.md
Normal file
@@ -0,0 +1,31 @@
|
||||
浴室灯泡
|
||||
|
||||
<u>~~拖鞋/ 毛巾/沐浴露/洗面奶~~</u>
|
||||
|
||||
~~牙膏/牙刷~~
|
||||
|
||||
~~洗手液~~
|
||||
|
||||
- ~~寄快递 -斌哥~~
|
||||
|
||||
- ~~迪卡农 popu珊~~ (线上)
|
||||
|
||||
- ~~设置AI主机~~
|
||||
|
||||
设置orangepi 5
|
||||
|
||||
- ~~清洗书桌~~
|
||||
|
||||
~~买插座[床头]~~
|
||||
|
||||
~~京东-纸箱--==>宝安~~
|
||||
|
||||
~~剪辑视频--上传tk/油管~~
|
||||
|
||||
~~木屋烧烤~~
|
||||
|
||||
伸缩棍-窗帘
|
||||
|
||||
<u>~~莲花山+会展~~</u>
|
||||
|
||||
公司架构 (减资,注销)
|
||||
95
note/README.md
Normal file
@@ -0,0 +1,95 @@
|
||||
# marktext
|
||||
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
||||
|
||||
## Add your files
|
||||
|
||||
|
||||
|
||||
|
||||
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
||||
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
||||
|
||||
```
|
||||
cd existing_repo
|
||||
git remote add origin http://gitlab.yidooplanet.com/gitlab-instance-0a899031/marktext.git
|
||||
git branch -M main
|
||||
git push -uf origin main
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [Set up project integrations](http://gitlab.yidooplanet.com/gitlab-instance-0a899031/marktext/-/settings/integrations)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
||||
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
||||
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
||||
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
||||
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
||||
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
||||
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
||||
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
||||
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
||||
|
||||
## Suggestions for a good README
|
||||
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
||||
|
||||
## Name
|
||||
Choose a self-explaining name for your project.
|
||||
|
||||
## Description
|
||||
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
||||
|
||||
## Badges
|
||||
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
||||
|
||||
## Visuals
|
||||
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
||||
|
||||
## Installation
|
||||
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
||||
|
||||
## Usage
|
||||
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
||||
|
||||
## Support
|
||||
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
||||
|
||||
## Roadmap
|
||||
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
||||
|
||||
## Contributing
|
||||
State if you are open to contributions and what your requirements are for accepting them.
|
||||
|
||||
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
||||
|
||||
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
||||
|
||||
## Authors and acknowledgment
|
||||
Show your appreciation to those who have contributed to the project.
|
||||
|
||||
## License
|
||||
For open source projects, say how it is licensed.
|
||||
|
||||
## Project status
|
||||
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
||||
36
note/cityNew/小程序.md
Normal file
@@ -0,0 +1,36 @@
|
||||
| AppID(小程序ID) | wx2b2ec2ba5ee694bc |
|
||||
| --------------------- | ------------------ |
|
||||
| smallzhiyun@gmail.com | |
|
||||
|
||||
| 原始ID | gh_a3692ee8e69f微信客服 企业 id: `wwb04af9a97514271c` |
|
||||
| ---- | ------------------------------------------------ |
|
||||
|
||||
视频号id: `sphqzUmI0BlppCI`
|
||||
|
||||
客服链接: `[微信客服](https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5)
|
||||
|
||||
---
|
||||
|
||||
- 山峰距离排序
|
||||
|
||||
- 地图导航lbs
|
||||
|
||||
- 天气 (一周)
|
||||
|
||||
- 活动状态: 立即报名/ 取消 | 待审核 | 待参加 | 已结束
|
||||
|
||||
- 校验登录态
|
||||
|
||||
- 打卡- 朋友圈 [展示]
|
||||
|
||||
- 首页信息流
|
||||
|
||||
- 消息推送
|
||||
|
||||
appid
|
||||
|
||||
`wx515bd42ee0db5c5d`
|
||||
|
||||
密匙
|
||||
|
||||
`AAQ9G7sEAAABAAAAAACI/RH8UZTFv9gNoZeeYyAAAAAraAdzKm8i8JwFJ68cDOJBtIHsmv3F8e00LCv7f+tYvkj6KtzF9bTaXDEsWluEhxINIDX0mp8g3767l237bBMQ4w791sE7KBU2+X9jnsBcWJjMJDu+q+gQ7Fl/78eoq+UYzkrQcOfNpGsIB8hQlJFd0Rm2soIU9Ko=`
|
||||
89
note/cityNew/微信小程序开发.md
Normal file
@@ -0,0 +1,89 @@
|
||||
## 微信小程序开发
|
||||
|
||||
> 开发背景
|
||||
|
||||
作为一个长期的资深宅男,是时候经常去户外呼吸下新鲜空气,贴近大自然,而在深圳这种快节奏的城市, 唯有爬山,
|
||||
|
||||

|
||||
|
||||
> 预约报名
|
||||
|
||||
使用`个人主体`开发一款预约报名的`微信小程序`,历史背景,在此之前也开发过,不过由于每次提交审核, 都会被驳回,理由是质问使用的`知晓云sdk" 是什么用途,于是就懒得维护了
|
||||
|
||||
在微信云开发推出之前,小程序依靠知晓云的baas服务,进行数据的CURD增删查改,以及cms管理后台
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/f9f348dbf0b7880b397020504d51275c6f09696e.png" title="" alt="Screen Shot 2022-11-27 at 17.33.58.png" width="149">
|
||||
|
||||
> 微信云开发
|
||||
|
||||
鉴于云开发,是微信团队主推的自家服务,免鉴权集成,数据库/内容存储/静态网站/云托管等服务应有,于是开始重构
|
||||
|
||||
- 使用taro多端框架 (react)
|
||||
|
||||
- vant-ui
|
||||
|
||||
- 微信云开发 (后端)
|
||||
|
||||
<img title="" src="file:///Users/eric/Documents/marktext/images/621c04eda54b1754af3998ccf3cc94af674425b3.png" alt="Screen Shot 2022-11-27 at 17.31.39.png" width="298">
|
||||
|
||||
---
|
||||
|
||||
## 开发问题
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/54f3f8471c583b62e1c38102adc6a57311f1ea57.png" title="" alt="Screen Shot 2022-11-27 at 17.41.44.png" width="393">
|
||||
|
||||
> 隐私问题
|
||||
|
||||
以前的小程序, 点一下按钮可以拿到非常多的用户信息
|
||||
|
||||
手机硬件/软件的多个维度
|
||||
|
||||
用户的省份/城市/性别/昵称/头像
|
||||
|
||||
而现在,即使是昵称/头像,都要`专用的组件和api,`用户体验也非常差
|
||||
|
||||
其他的信息基本拿不到了,没法做数据分析
|
||||
|
||||
而`手机号/发票`类似的, 只有`企业认证`的主体,才有权限
|
||||
|
||||
> 权限问题
|
||||
|
||||
微信文档的api非常全,但是适用于`个人`主体的开放openapi,非常少
|
||||
|
||||
最常见的form表单,是基本不允许的,不能收集用户相关信息
|
||||
|
||||
> 开发问题
|
||||
|
||||
开发小程序,不是传统的前端/后端/运维部署, 很多功能实现基于云开发特有的`云函数`所以要对微信开发者工具IDE, 和 一些概念有理解和实践
|
||||
|
||||
本身还有一些bug,比如展示的2张图片,是同一个存储库,会有渲染异常,偶现
|
||||
|
||||
---
|
||||
|
||||
## 微信生态
|
||||
|
||||
> 公众号与个人微信
|
||||
|
||||
原本以为小程序,只是实现app一样的功能, 却发现微信生态是环环相扣的
|
||||
|
||||
- 公众号/视频号/小程序/小商店/小游戏
|
||||
|
||||
个人小程序支持
|
||||
|
||||
1. 引导关注公众号 [扫码场景]
|
||||
|
||||
2. 长按识别个人微信二维码
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/b3a82e7a5785d4fe00dc9593970a3b82373c38e7.png" title="" alt="Screen Shot 2022-11-27 at 17.44.37.png" width="132">
|
||||
|
||||
---
|
||||
|
||||
## 其他延伸
|
||||
|
||||
> 微信服务,已经庞大到难以想象
|
||||
|
||||
由于IOS的小程序,没有`发送到桌面`的功能, 目前android手机使用频率很高
|
||||
|
||||
桌面上,几乎都是小程序
|
||||
|
||||
至于为什么,简单说不清楚了,
|
||||
0
note/date/2022-08/.md
Normal file
1
note/date/2022-08/test.md
Normal file
@@ -0,0 +1 @@
|
||||

|
||||
0
note/date/2022-08/wordpress修改
Normal file
101
note/date/2022-08/wordpress独立博客.md
Normal file
@@ -0,0 +1,101 @@
|
||||
## wordpress独立博客
|
||||
|
||||
> 独立博客的搭建有很多方式,`静态站`或者`动态cms`
|
||||
|
||||
静态站点对新手不是很友好,大多使用一些项目框架和git上传,以及markdown格式,wordpress熟悉`仪表盘`后,基本开箱即用,配和无数拓展的插件,也更方便
|
||||
|
||||
## 搭建
|
||||
|
||||
> 使用aapanel的php环境+nginx
|
||||
|
||||
这里使用的是宝塔面板的国际版aapanel, 因为你懂的原因, 后续会进行替换
|
||||
|
||||
在` ubuntu`安装
|
||||
|
||||
```
|
||||
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel
|
||||
```
|
||||
|
||||
- aapanel[^1]
|
||||
|
||||
- wordpress官网的zip安装包[^2]
|
||||
|
||||
在可视化的web面板,解压在根目录就可以了
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 主题和插件
|
||||
|
||||
> Popularis Writer 主题
|
||||
|
||||
wordpress的免费付费主题很多,要找到合适的,也需要花点时间,
|
||||
|
||||
目前使用的是这款`Popularis Writer`[^3]主题的免费版,因为是英文主题样式,所以为了契合中文的样式对css样式进行了调整
|
||||
|
||||

|
||||
|
||||
> 在自定义里修改css样式
|
||||
|
||||
css样式是wordpress框架本身的控制,并不是修改主题的文件,所以`主题更新后,也不会受到影响`
|
||||
|
||||

|
||||
|
||||
> 使用githuber-md插件
|
||||
|
||||
使用markdown进行编辑,可以极大的提高打字效率,`githuber-md`就是一款非常友好的markdown编辑器插件
|
||||
|
||||
采用的是双栏滚动对比视图,支持各种拓展语法,比如
|
||||
|
||||
- 待办任务
|
||||
|
||||
- emoji表情
|
||||
|
||||
- 代码高亮和 table表格
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 本地同步
|
||||
|
||||
在web后台编辑文字,有点膈应, 实际上采取的是以下同步策略
|
||||
|
||||
- 开源的marktext编辑器
|
||||
|
||||
- 自建gitlab进行备份(手动git,版本管理)
|
||||
|
||||
- 自建nextcloud网盘自动同步备份 [可忽略]
|
||||
|
||||
图床使用的`腾讯云的cos对象存储`[^4]
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 其他
|
||||
|
||||
> 自托管与homelab
|
||||
|
||||
原博客域名虽说有四年历史,由于更名,放弃续费 (已被某区款链相关注册😅....)
|
||||
|
||||
除了wordpress独立博客部署在vps上,其他的服务都部署在家里的主机上自用
|
||||
|
||||
用`开源的项目代替商业应用`,并不是说要完全抛弃商业化应用,而是做一个backup,比如
|
||||
|
||||
| 开源 | 商业 |
|
||||
| ----------- | ----------- |
|
||||
| nextcloud | 云盘/google日历 |
|
||||
| tinyRSS | inoreader |
|
||||
| calibre-web | kindle |
|
||||
|
||||
---
|
||||
|
||||
[^1]: www.aapanel.com
|
||||
|
||||
[^2]: [Download – WordPress.org](https://wordpress.org/download/)
|
||||
|
||||
[^3]: https://themes4wp.com/
|
||||
|
||||
[^4]: [云产品特惠专区](https://cloud.tencent.com/act/cps/redirect?redirect=2446&cps_key=d096044bdae9e70d7718918e22123113&from=console)
|
||||
1
note/date/2022-08/使用wordpress修改
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
141
note/date/2022-08/折腾手机.md
Normal file
@@ -0,0 +1,141 @@
|
||||
## 折腾手机
|
||||
|
||||
大多数人除了办公,在家并不怎么用电脑,可能就是打打游戏,看看剧
|
||||
|
||||
而手机就除了智能手表以外,唯一随身携带的硬件生产力,android和ios各分天下
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## android手机
|
||||
|
||||
> 刷机不死,刷机永生
|
||||
|
||||
国产手机,虽然性价比高,但是有基本的代价,就是无处不在见缝插针的`系统级广告`,而rom又是经过深度魔改的,个人的隐私几乎就是在裸奔
|
||||
|
||||
新机`解锁bl`后,可以选择`欧版的定制rom`,因为有严格的隐私政策,所以肉眼可见的干净清爽
|
||||
|
||||
也可以选择第三方适配的`Lineage OS`[^1], (在此基础上,特定的机型,可以刷入`kali nethunter`)[^2]
|
||||
|
||||
继续刷入`twrp`,以及`magisk`,[^3],获取`root权限`,为后面`类xposed外挂`提供基础环境和权限
|
||||
|
||||
一般是实体机+USB线连接PC, 使用`adb`命令进行通信操作
|
||||
|
||||
> android优势
|
||||
|
||||
抛开root不谈,
|
||||
|
||||
- 通话自动录音`是刚需
|
||||
|
||||
- 在当前的大背景下, 微信小程序能新建`桌面快捷方式`,且是独立的进程,同时打开核酸码,登记码,各种...-
|
||||
|
||||
- `主题定制/个性化`:例如,图标一棑可以*6
|
||||
|
||||
- `app自由下载`,无需经过特殊的区域的应用市场
|
||||
|
||||
- xiaomi系统系带的:`应用双开`
|
||||
|
||||
> root后的那些事
|
||||
|
||||
首先就需要一个`透明代理`,可以将某些app的流量进行转发
|
||||
|
||||
使用wifi热点软件,还可以将网络进行`无限中继`,对外提供的wifi,依旧是经过处理的信号
|
||||
|
||||
android7.0以上无法抓https的包,拥有root权限,可以将`证书安装在系统目录`,进行抓包
|
||||
|
||||
相关的`取证软件`,可以在正常的操作下,进行摄像录音,息屏也是在后台运行
|
||||
|
||||
在`终端termux`[^4]中通过`tailscale`[^5]等进行p2p组网 (此处省略...用途)
|
||||
|
||||
使用adb对手`机进行自动化控制`
|
||||
|
||||
> 类xposed外挂
|
||||
|
||||
当前使用的是`lsposed`,无论`太极`,还是其他,此类软件都是类xposed,对系统级api进行劫持处理,不需要对app进行改造逆向,就可以拓展功能
|
||||
|
||||
- wexin的`wx模块`
|
||||
|
||||
- 微信/小红书/知乎的等`xx助手模块`
|
||||
|
||||
- 改机伪造:应用变量和lgps虚拟定位/虚拟摄像头
|
||||
|
||||
- NFC近场通信
|
||||
|
||||
> 相关设置
|
||||
|
||||
某些应用,需要给`白名单`,防止电池优化,或者允许`自启动`
|
||||
|
||||
> 其他
|
||||
|
||||
- 各种开源的sms相关短信件: 自动转发
|
||||
|
||||
- esim虚拟开卡
|
||||
|
||||
- scrpy远程云手机同步画面/投屏
|
||||
|
||||
- OTG拓展配件
|
||||
|
||||
---
|
||||
|
||||
## ios手机
|
||||
|
||||
> 墓碑机制
|
||||
|
||||
在国内使用iphone,简洁直观,打打电话,看刷刷app就挺好了,图的就是它相对硬件工业化水准高,性能抗打
|
||||
|
||||
相比于android的开放,ios系统的`越狱`,针对升级后的系统就不是那么容易,并不是太建议这么做
|
||||
|
||||
> 针对跨境生态
|
||||
|
||||
- 修改系统语言:english
|
||||
|
||||
- 修改时区:你想要的海外城市
|
||||
|
||||
首先,下载`透明代理`,需要把`appstore`切换到美区,因为指定区域才能下载,所以需要一个美区的`appleid账号`, 教程网上可自己搜
|
||||
|
||||
而ios生态的大多数优质应用,都是收费软件,`代购充值礼品卡`,是处理金融事务一个折中的办法
|
||||
|
||||
> SIM卡与锁区
|
||||
|
||||
海外app生态中,有个极端的例子,就是`tiktok(抖音海外版)`,如果检测到安装了国内的sim卡,是黑屏无网络信号
|
||||
|
||||
所以需要一张可以在国内漫游的`US实体手机卡`还可以接受`sms短信`
|
||||
|
||||
- 在万能的某宝,或者飞猪,购买:国内卡商疯狂推荐的3$/m每月的`Ultra Mobile PayGo`
|
||||
|
||||
- 通过实体卡可以申请注册`google voice虚拟号`
|
||||
|
||||
美版的iphone是esim+实体卡,国行是双sim实体卡,所以副卡可以使用`流量卡`
|
||||
|
||||
> 细节
|
||||
|
||||
- `实体卡`才能接收银行类金融SMS认证信息
|
||||
|
||||
- google voice需要设置`incomming call`启用屏幕来电显示
|
||||
|
||||
至此,你才拥有一个初级的适用于跨境生态的手机
|
||||
|
||||
如果你不满足于仅仅一个作为消费型用户,而是作为生产力/商业型用户操作,还涉及
|
||||
|
||||
- ios developer申请
|
||||
|
||||
- ITIN纳税识别号申请
|
||||
|
||||
- 家庭住宅地址申请(也是商业化,但不是代购转运地址)
|
||||
|
||||
---
|
||||
|
||||
## 其他
|
||||
|
||||
本文只是对手机使用(折腾)的一个简单总结,并不属于教程,无描述和贴图,仅以此记录
|
||||
|
||||
[^1]: https://lineageos.org/
|
||||
|
||||
[^2]: https://www.kali.org/docs/nethunter/
|
||||
|
||||
[^3]: [GitHub - topjohnwu/Magisk: The Magic Mask for Android](https://github.com/topjohnwu/Magisk)](https://github.com/topjohnwu/Magisk)
|
||||
|
||||
[^4]: [Termux | The main termux site and help pages.](https://termux.dev/en/)
|
||||
|
||||
[^5]: https://tailscale.com/
|
||||
41
note/date/2022-08/路由器后续.md
Normal file
@@ -0,0 +1,41 @@
|
||||
## openwrt路由器
|
||||
|
||||
<img title="" src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202208312317770.png" alt="" width="293">
|
||||
|
||||
> 使用体验
|
||||
|
||||
我购买的一款是在某宝购入的`GL.iNet SFT1200`,是一款旅行用便携路由器,虽说是openwrt系统,但是官方自带管理后台
|
||||
|
||||

|
||||
|
||||
在`高级功能`中有luci的入口,可以进入原生的opwenwrt后台
|
||||
|
||||
如果只是为了wifi,那这款路由器,比起其他品牌的商业路由,性价比不高,我们肯定需要自己拓展一翻
|
||||
|
||||

|
||||
|
||||
## 体验
|
||||
|
||||
> 不是那么友好
|
||||
|
||||
这款`GL-SFT1200`使用的芯片是国产的,所以安装拓展脚本,会遇到各种各样起奇奇怪怪的问题
|
||||
|
||||
血泪建议要么用arm,树莓派,香橙派,nanopi等,要么直接上x86软路由
|
||||
|
||||

|
||||
|
||||
因为拓展脚本一直各种不支持,各种小问题,所以在网络上找了一个`直接编译好`的系统固件,重刷了着整个系统,拓展脚本确实可以用了
|
||||
|
||||
但是会时不时掉线,甚至进入默认的引导安装界面,所幸关机重启,又能恢复了
|
||||
|
||||
> 其他型号
|
||||
|
||||
便携的产品线,其他型号性能会更强劲,芯片的采用,自然也不是廉价的国产货
|
||||
|
||||
但是价格就会高一些,至于会不会出现一些薛定谔的问题,暂时没法体验
|
||||
|
||||
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202208312318512.png" title="" alt="" width="402">
|
||||
|
||||
## 便携随身
|
||||
|
||||
决定用旅行版的路由器,是为了方便携带,虽然不是经常出差,但是大环境下,随时随地都有可能被安排/限制在一个陌生的地方,一个随身的openwrt路由,自带wifi,而且也可以使用4g模块,就显得非常重要了
|
||||
11
note/date/2022-11/think.md
Normal file
@@ -0,0 +1,11 @@
|
||||
rss. [freshrdss]
|
||||
|
||||
wordpress [english]
|
||||
|
||||
---
|
||||
|
||||
keep
|
||||
|
||||
digital nomad
|
||||
|
||||
---
|
||||
19
note/date/2022-12/晨飞博客.md
Normal file
@@ -0,0 +1,19 @@
|
||||
wordpress
|
||||
|
||||
跨境电商-硬件
|
||||
|
||||
英语/技术
|
||||
|
||||
|
||||
|
||||
keep
|
||||
|
||||
wordpress sns rss
|
||||
|
||||
nethunter
|
||||
|
||||
ios
|
||||
|
||||
dingtalk
|
||||
|
||||
scommerce
|
||||
75
note/en-homelab/start-homelab.md
Normal file
@@ -0,0 +1,75 @@
|
||||
## Start tossing my homelab
|
||||
|
||||
> Initial reason
|
||||
|
||||
I wanted to start tossing `homelab` because the cost of cloud servers is relatively expensive, as an individual user, in the absence of a business model, I wanted to save as much budget as possible, using open source github works to build services for their own use.
|
||||
|
||||
After learning about `frp`, an open source intranet penetration tool, I tried it and found that it can be very good against the interference of broadband operators and idle, the home of various laptops/hosts and other non-dedicated server hardware to use effectively.
|
||||
|
||||
---
|
||||
|
||||
## Host and configuration
|
||||
|
||||
> Purchased 3 mini-hosts for around $145
|
||||
|
||||
Home mac mini and desktop host, are productivity tools, can not be used as a server, and professional servers, and power and noise problems, so focus on the `mini pc`:
|
||||
|
||||
- cpu performance can be used on the line,
|
||||
|
||||
- Memory is best > 16gb
|
||||
|
||||
- Hard disk capacity is best 512gb
|
||||
|
||||
In China's e-commerce sites, there are many years of such mini pc, I bought a total of 3 units, the table is organized as follows:
|
||||
|
||||
| website | brand | image | price | amazon price | aliexpress price |
|
||||
| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ | ---------------- |
|
||||
| Xiaomi Youpin | `Ningmei` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041500584.png" title="" alt="" width="197"> | 174$ | TRIGKEY 199& | |
|
||||
| KYOTO | `konka` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041502087.png" title="" alt="" width="202"> | 145$ | KAMRUI 199$ | GK3V 125$ |
|
||||
| | `Zero Moment` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041504005.png" title="" alt="" width="212"> | 159 $ | Beelink 239$ | Belink 249$ |
|
||||
|
||||
---
|
||||
|
||||
## openwrt router
|
||||
|
||||
Router purchased an openwrt router from the Chinese e-commerce site `Taobao`: . `gl-inet`'s `sft1200` travel router
|
||||
|
||||
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041520749.png" title="" alt="" width="170">
|
||||
|
||||
---
|
||||
|
||||
## Server deployment
|
||||
|
||||
For the linux server, I choose a web control panel: 'aapanel'[^1], which is the international version of the Chinese company 'pagoda panel'
|
||||
|
||||
At some point in the future, I will definitely replace it, after all, there may be privacy issues, or other indescribable monitoring
|
||||
|
||||

|
||||
|
||||
--
|
||||
|
||||
## Build a wordpress blog
|
||||
|
||||
> Documenting the process of building and using homelab
|
||||
|
||||
I bought the domain name: homelabbity.org from `namecheap`, and then did the following:
|
||||
|
||||
- dns pointed to `cloudfare`
|
||||
|
||||
- Apply ssl certificate: `Let's Encrypt`, to encrypt the site
|
||||
|
||||
- Self-hosted wordpress: download zip file, run/proxy with `php+nginx
|
||||
|
||||
- Choose a suitable blog theme
|
||||
|
||||
- Install seo plugin
|
||||
|
||||
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041526134.png" title="" alt="" width="244">
|
||||
|
||||
---
|
||||
|
||||
## Finally
|
||||
|
||||

|
||||
|
||||
It's fun to be able to access servers in other countries, and your own home server, via ssh at any time 🙃
|
||||
49
note/fastapi/慕课fastapi.md
Normal file
@@ -0,0 +1,49 @@
|
||||
异步
|
||||
|
||||
高性能
|
||||
|
||||
自动生成swaager文档 [调试]
|
||||
|
||||
官网文档友好
|
||||
|
||||
uvicorn是python库,pip包, 不能在linux直接安装 [异步web服务部署]
|
||||
|
||||
gunicorn是linux库
|
||||
|
||||
使用虚拟环境
|
||||
|
||||
生成requirement.txt
|
||||
|
||||
打包exe
|
||||
|
||||
docker部署
|
||||
|
||||
## pydantic
|
||||
|
||||
https://docs.pydantic.dev/
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/c672dab3f89aeffd45b6290f1885d5bcb9fa4f2f.png" title="" alt="Screen Shot 2022-12-14 at 09.12.08.png" width="540">
|
||||
|
||||
`python解包` user=User(**XXX) 类似于 js的结构赋值
|
||||
|
||||
dict与obj的区别
|
||||
|
||||
vscode python开插件
|
||||
|
||||
数据库操作orm sqlalchemy
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/81d743fc638bdf36deb3829680cf523ff1e1febd.png" title="" alt="Screen Shot 2022-12-14 at 09.18.40.png" width="441">
|
||||
|
||||
路径参数/查询参数/请求体
|
||||
|
||||
终端启动命令
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/df5cda3b9ab14fb62674851490b8d6b3f0d88e91.png" title="" alt="Screen Shot 2022-12-14 at 09.25.34.png" width="443">
|
||||
|
||||
也可以在程序内启动
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/ab9cc13c0a827c617e0eee658d8b7b33d23242d1.png" title="" alt="Screen Shot 2022-12-14 at 09.38.52.png" width="455">
|
||||
|
||||
异步async await
|
||||
|
||||
大型应用目录结构设计
|
||||
0
note/homelabbity/.md
Normal file
75
note/homelabbity/homelab _ 开始搭建博客记录.md
Normal file
@@ -0,0 +1,75 @@
|
||||
## 开始折腾我的homelab
|
||||
|
||||
> 最初的原因
|
||||
|
||||
想开始折腾`homelab`是因为,云服务器的费用比较昂贵,作为个人用户,在没有进行商业模式的情况下,想尽可能的节省预算,使用开源的github作品搭建服务给自己使用.
|
||||
|
||||
了解到`frp`这个开源的内网穿透工具后,尝试了一下,发现它可以很好的对抗宽带运营商的干扰和闲置,把家里的各种笔记本/主机等非专用服务器硬件有效使用起来.
|
||||
|
||||
---
|
||||
|
||||
## 主机和配置
|
||||
|
||||
> 购买了3台145$左右的mini主机
|
||||
|
||||
家里的mac mini和台式主机,都是生产力工具,无法作为服务器使用,而专业的服务器,又有电力和噪音问题,所以把注意力聚焦在`mini pc`:
|
||||
|
||||
- cpu性能够用就行,
|
||||
|
||||
- 内存最好>16gb
|
||||
|
||||
- 硬盘容量最好512gb
|
||||
|
||||
在中国的电商网站上, 有很多年这样的mini pc,我一共购买了3台,表格整理如下:
|
||||
|
||||
| 网站 | 品牌 | 图片 | 价格 | amazon价格 | aliexpress价格 |
|
||||
| ---- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ---- | ------------- | ------------ |
|
||||
| 小米有品 | `宁美` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041500584.png" title="" alt="" width="197"> | 174$ | TRIGKEY 199& | |
|
||||
| 京东 | `konka` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041502087.png" title="" alt="" width="202"> | 145$ | KAMRUI 199$ | GK3V 125$ |
|
||||
| 淘宝 | `零刻` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041504005.png" title="" alt="" width="212"> | 159$ | Beelink 239$ | Belink 249$ |
|
||||
|
||||
---
|
||||
|
||||
## openwrt路由器
|
||||
|
||||
路由器在中国的电商网站`淘宝`购买了一款openwrt路由器: .`gl-inet`的`sft1200`旅行路由器
|
||||
|
||||
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041520749.png" title="" alt="" width="170">
|
||||
|
||||
---
|
||||
|
||||
## 服务器部署
|
||||
|
||||
对于linux服务器,我选择一个web控制面板:`aapanel`[^1],这是中国公司`宝塔面板`的国际版本
|
||||
|
||||
在以后的某一天,我肯定会将它替换掉,毕竟,可能会存在隐私问题,或者其他的不可描述的监控
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 搭建wordpress博客
|
||||
|
||||
> 记录homelab的搭建使用过程
|
||||
|
||||
在`namecheap`购买了域名:homelabbity.org,然后进行了以下操作:
|
||||
|
||||
- dns指向`cloudfare`
|
||||
|
||||
- 申请ssl证书:`Let's Encrypt`,对网站进行加密
|
||||
|
||||
- 自托管wordpress: 下载zip文件,用`php+nginx`运行/代理
|
||||
|
||||
- 选择一个适合的博客主题
|
||||
|
||||
- 安装seo插件
|
||||
|
||||
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041526134.png" title="" alt="" width="244">
|
||||
|
||||
---
|
||||
|
||||
## 最后
|
||||
|
||||

|
||||
|
||||
能随时通过ssh访问其他国家的服务器,和自己家中的服务器,是一件挺好玩的事情🙃
|
||||
BIN
note/images/2022-10-16-23-07-56-image.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
note/images/2022-10-16-23-08-10-image.png
Normal file
|
After Width: | Height: | Size: 424 KiB |
BIN
note/images/350d5d2e9a897c1371c0755735818de0580ba717.jpeg
Normal file
|
After Width: | Height: | Size: 531 KiB |
BIN
note/images/54f3f8471c583b62e1c38102adc6a57311f1ea57.png
Normal file
|
After Width: | Height: | Size: 503 KiB |
BIN
note/images/621c04eda54b1754af3998ccf3cc94af674425b3.png
Normal file
|
After Width: | Height: | Size: 493 KiB |
BIN
note/images/81d743fc638bdf36deb3829680cf523ff1e1febd.png
Normal file
|
After Width: | Height: | Size: 715 KiB |
BIN
note/images/ab9cc13c0a827c617e0eee658d8b7b33d23242d1.png
Normal file
|
After Width: | Height: | Size: 404 KiB |
BIN
note/images/b3a82e7a5785d4fe00dc9593970a3b82373c38e7.png
Normal file
|
After Width: | Height: | Size: 228 KiB |
BIN
note/images/b7fc0f881c68ba0c072034da23536018c723e9ba.png
Normal file
|
After Width: | Height: | Size: 806 KiB |
BIN
note/images/c672dab3f89aeffd45b6290f1885d5bcb9fa4f2f.png
Normal file
|
After Width: | Height: | Size: 635 KiB |
BIN
note/images/df5cda3b9ab14fb62674851490b8d6b3f0d88e91.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
note/images/f9f348dbf0b7880b397020504d51275c6f09696e.png
Normal file
|
After Width: | Height: | Size: 205 KiB |
27
note/life/放假安排.md
Normal file
@@ -0,0 +1,27 @@
|
||||
## 小程序
|
||||
|
||||
- 头像转动漫 [软文]
|
||||
|
||||
- exif元信息 [软文]
|
||||
|
||||
- 同城*户外*爬山 [小红书自动化bot, 开发板]
|
||||
|
||||
- 相亲小程序 [公司] [广告投放]
|
||||
|
||||
- 蓝牙小程序 [智能浇花][二次开发]
|
||||
|
||||
- 跨境saas小程序
|
||||
|
||||
---
|
||||
|
||||
## 证书
|
||||
|
||||
- BEC中级
|
||||
|
||||
- 驾照
|
||||
|
||||
---
|
||||
|
||||
输出
|
||||
|
||||
- 维信读书
|
||||
13
note/pass income/副业.md
Normal file
@@ -0,0 +1,13 @@
|
||||
本地智能零售店 美团开店宝
|
||||
|
||||
个人自媒体:微信生态
|
||||
|
||||
跨境+电商: reddit /youtube/ amazon / wordpress
|
||||
|
||||
公司: 联合办公空间 [相亲]
|
||||
|
||||
---
|
||||
|
||||
硬件: 树莓派+python
|
||||
|
||||
|
||||
45
note/python/python自动化.md
Normal file
@@ -0,0 +1,45 @@
|
||||
## raspberry pi
|
||||
|
||||
webhook
|
||||
|
||||
定时任务
|
||||
|
||||
micropython
|
||||
|
||||
|
||||
|
||||
## 多媒体部处理
|
||||
|
||||
> 音视频
|
||||
|
||||
- 翻译小助手
|
||||
|
||||
- 一键全球语音
|
||||
|
||||
> 图片
|
||||
|
||||
- 照片元信息
|
||||
|
||||
- 头像转动漫
|
||||
|
||||
> 文字
|
||||
|
||||
- pdf文档翻译
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## web后台
|
||||
|
||||
> fastapi
|
||||
|
||||
---
|
||||
|
||||
## 爬虫
|
||||
|
||||
- 小红书自动私信
|
||||
|
||||
- 数据分析
|
||||
|
||||
|
||||
0
note/python自动化/.md
Normal file
49
note/python自动化/python自动化.md
Normal file
@@ -0,0 +1,49 @@
|
||||
## 行业应用
|
||||
|
||||
平面设计自动化
|
||||
|
||||
运营数据分析
|
||||
|
||||
财务/IT审计
|
||||
|
||||
web后台fastapi
|
||||
|
||||
bot机器人 [Im]
|
||||
|
||||
爬虫
|
||||
|
||||
mitm抓包
|
||||
|
||||
pytest自动化测试 [ui自动化]
|
||||
|
||||
网络安全
|
||||
|
||||
金融量化分析
|
||||
|
||||
智能硬件/物联网 micropython
|
||||
|
||||
空间分析与地图
|
||||
|
||||
机器学习
|
||||
|
||||
办公自动化 word excel/ppt
|
||||
|
||||
qt [GUI编程]: 客户端
|
||||
|
||||
服务器运维
|
||||
|
||||
---
|
||||
|
||||
## 应用
|
||||
|
||||
文本处理:翻译
|
||||
|
||||
音视频
|
||||
|
||||
图片处理
|
||||
|
||||
---
|
||||
|
||||
## 政策
|
||||
|
||||
大学计算机二级
|
||||
5
note/work/10.31.md
Normal file
@@ -0,0 +1,5 @@
|
||||
```inboundOrderTypes
|
||||
inboundOrderTypes 入库已审核
|
||||
```
|
||||
|
||||
inboundOrderTypes: [2, 3]
|
||||
34
note/work/首页.md
Normal file
@@ -0,0 +1,34 @@
|
||||
1. GSP:默认印尼,且不可更改
|
||||
2. GBG:可切换选择
|
||||
|
||||
---
|
||||
|
||||
2.仓库状态为启用
|
||||
|
||||
货主,货主管理列表,状态为启用
|
||||
|
||||
---
|
||||
|
||||
首页默认选择今天
|
||||
|
||||
用户最长仅可选择一个月时间范围
|
||||
|
||||
2. 自定义日期选择:按日期选择,不选择时间
|
||||
|
||||
----
|
||||
|
||||
## 待办任务
|
||||
|
||||
点击任务数量,跳转到对应菜单列表
|
||||
|
||||
菜单筛选项自动关联首页已选择的筛选条件
|
||||
|
||||
---
|
||||
|
||||
**待办任务解释文案(页面显示)**
|
||||
|
||||
---
|
||||
|
||||
a. 点击任务数量,跳转到对应菜单列表
|
||||
|
||||
b. 菜单筛选项自动关联首页已选择的筛选条件
|
||||
45
note/待办2.md
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
|
||||
投放广告
|
||||
|
||||
旅行
|
||||
|
||||
联盟营销 图
|
||||
|
||||
硬件产品 相机/云手机
|
||||
|
||||
虚拟账号
|
||||
|
||||
app开发
|
||||
|
||||
博客 (广告)- youtube
|
||||
|
||||
社群
|
||||
|
||||
电子书
|
||||
|
||||
线下活动
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
美女
|
||||
|
||||
[徒步] ==> l莲花山
|
||||
|
||||
宠物
|
||||
|
||||
学习型社群(设计/会计/英语) | 职场技能
|
||||
|
||||
技术 [数字游民]
|
||||
|
||||
活动 副业[赚钱]
|
||||
|
||||
自驾
|
||||
|
||||
露营 [帐篷]
|
||||
191
note/待办事项.md
Normal file
@@ -0,0 +1,191 @@
|
||||
```
|
||||
docker run -itd --rm --privileged \
|
||||
-v ~/data:/data \
|
||||
-p 5555:5555 \
|
||||
redroid/redroid:11.0.0_magisk_widevine \
|
||||
ro.product.cpu.abilist=x86_64,arm64-v8a,x86,armeabi-v7a,armeabi \
|
||||
ro.product.cpu.abilist64=x86_64,arm64-v8a \
|
||||
ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi \
|
||||
ro.dalvik.vm.isa.arm=x86 \
|
||||
ro.dalvik.vm.isa.arm64=x86_64 \
|
||||
ro.enable.native.bridge.exec=1 \
|
||||
ro.dalvik.vm.native.bridge=libndk_translation.so \
|
||||
ro.ndk_translation.version=0.2.2 \
|
||||
```
|
||||
|
||||
97b15b17e17ef0f4bde21004d8ed5bfc
|
||||
|
||||
97b15b17e17ef0f4bde21004d8ed5bfc
|
||||
|
||||
97b15b17e17ef0f4bde21004d8ed5bfc
|
||||
|
||||
```
|
||||
sudo docker run -itd --rm --privileged \
|
||||
--name a11 \
|
||||
-v ~/data:/data \
|
||||
-v ~/remove.rc:/vendor/etc/init/remove.rc \
|
||||
-v ~/setup.sh:/setup.sh \
|
||||
-v ~/magisk.tar:/magisk.tar \
|
||||
-p 5555:5555 \
|
||||
redroid/redroid:11.0.0-latest \
|
||||
ro.secure=0
|
||||
```
|
||||
|
||||
dingtalk boss直聘 wework
|
||||
|
||||
amazon 1688
|
||||
|
||||
微信机器人
|
||||
|
||||
---
|
||||
|
||||
boss直聘获取简历 加微信
|
||||
|
||||
wework 现场面试
|
||||
|
||||
钉钉办公电话 打电话
|
||||
|
||||
amazon订单打包
|
||||
|
||||
chrome插件开发[saas]
|
||||
|
||||
----
|
||||
|
||||
> 接受好友请求
|
||||
|
||||
菜鸟程序员
|
||||
|
||||
副业:跨境电商
|
||||
|
||||
爱好:Raspberry pi
|
||||
|
||||
努力成为一名数字游民ing
|
||||
|
||||
博客:hackrobot.cn
|
||||
|
||||
本群由机器人助理
|
||||
|
||||
- 默认AI智能对话
|
||||
|
||||
- /img 文字生成图片
|
||||
|
||||
加入交流群,请发送:加群
|
||||
|
||||
> 加群
|
||||
|
||||
---
|
||||
|
||||
秉持开放式交流,请先自我介绍一下吧
|
||||
|
||||
不接受陌生人闲聊
|
||||
|
||||
转账99,自动邀请
|
||||
|
||||
不承诺提供任务服务
|
||||
|
||||
dingtalk wework boss amazon
|
||||
|
||||
pi openwrt [all in one] =>video
|
||||
|
||||
nethunter xposed [wechat]
|
||||
|
||||
meetup [vlog]
|
||||
|
||||
----
|
||||
|
||||
健身 iwatch截图 [keep]
|
||||
|
||||
amzon 商超 5a 联合办公
|
||||
|
||||
---
|
||||
|
||||
会展: [2023第五届深圳国际应急产业博览会 09月26日-09月28日
|
||||
|
||||
植物园 30min/40元
|
||||
|
||||
海滨栈道 [深圳湾] 红树湾南 [徒步]
|
||||
|
||||
---
|
||||
|
||||
会展:第四十三届安居博览会暨四十届深圳家装节 09月29日-10月01日
|
||||
|
||||
罗湖水贝(黄金) 30min/40元
|
||||
|
||||
夜场
|
||||
|
||||
水会
|
||||
|
||||
徒步:莲花山
|
||||
|
||||
-----
|
||||
|
||||
会展 深圳国际汽车展览会(汽车嘉年华) 09月29日-10月03日
|
||||
|
||||
骑马射箭
|
||||
|
||||
徒步: 梅林水库
|
||||
|
||||
----
|
||||
|
||||
\
|
||||
|
||||
副业:跨境电商
|
||||
|
||||
爱好:树莓派+AI
|
||||
|
||||
做一个数字游民
|
||||
|
||||
---
|
||||
|
||||
公司 跨境电商 亚马逊 团队 招人g
|
||||
|
||||
在家 仓储/物流
|
||||
|
||||
wp/youtube
|
||||
|
||||
微信xposed CRM
|
||||
|
||||
树莓派 AI
|
||||
|
||||
数字游民
|
||||
|
||||
-----
|
||||
|
||||
```
|
||||
docker run -itd --rm --privileged \
|
||||
-v ~/data:/data \
|
||||
-p 5555:5555 \
|
||||
redroid/redroid:11.0.0_ndk_magisk_widevine \
|
||||
ro.product.cpu.abilist=x86_64,arm64-v8a,x86,armeabi-v7a,armeabi \
|
||||
ro.product.cpu.abilist64=x86_64,arm64-v8a \
|
||||
ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi \
|
||||
ro.dalvik.vm.isa.arm=x86 \
|
||||
ro.dalvik.vm.isa.arm64=x86_64 \
|
||||
ro.enable.native.bridge.exec=1 \
|
||||
ro.dalvik.vm.native.bridge=libndk_translation.so \
|
||||
ro.ndk_translation.version=0.2.2 \
|
||||
```
|
||||
|
||||
```docker
|
||||
docker run -itd --rm --privileged \
|
||||
-v ~/data12:/data \
|
||||
-p 7777:5555 \
|
||||
redroid/redroid:12.0.0_64only-ndk \
|
||||
androidboot.use_memfd=1 \
|
||||
ro.product.cpu.abilist=x86_64,arm64-v8a \
|
||||
ro.product.cpu.abilist64=x86_64,arm64-v8a \
|
||||
ro.dalvik.vm.isa.arm64=x86_64 \
|
||||
ro.enable.native.bridge.exec=1 \
|
||||
ro.dalvik.vm.native.bridge=libndk_translation.so
|
||||
```
|
||||
|
||||
```
|
||||
from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
|
||||
>>> model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True, device='cuda')
|
||||
>>> model = model.eval()
|
||||
>>> response, history = model.chat(tokenizer, "你好", history=[])
|
||||
>>> print(response)
|
||||
你好👋!我是人工智能助手 ChatGLM2-6B,很高兴见到你,欢迎问我任何问题。
|
||||
>>> response, history = model.chat(tokenizer, "晚上睡不着应该怎么办", history=history)
|
||||
>>> print(response)
|
||||
```
|
||||
23
note/快速写一篇公众号.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## 快速写一篇公众号
|
||||
|
||||
- 使用markdown语法
|
||||
|
||||
- marktext [开源编辑器]
|
||||
|
||||
---
|
||||
|
||||
## 使用图床
|
||||
|
||||
- 腾讯云cos
|
||||
|
||||
- picgo软件上传
|
||||
|
||||
---
|
||||
|
||||
## 网页格式化
|
||||
|
||||
- xxx
|
||||
|
||||
- 复制markdwon源码
|
||||
|
||||

|
||||