Files
obsidian_note/各种笔记.md
2025-12-04 09:12:56 +08:00

179 lines
5.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
![[企业微信截图_16564045337678.png]]
阿里云镜像 下载 地址
https://developer.aliyun.com/mirror/
### 小程序
#### 小程序二维码生成
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/qr-code.html
#### 微信授权获取的用户信息
>https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html
### 用 win10 user 文件夹转移工具
>【win10 user文件夹转移工具 V1.1.18 绿色版win10grwdzy】
>http://www.bkill.com/download/171073.html
### 数据库主从配置
>https://www.cnblogs.com/guliang/p/15739441.html
>https://www.csdn.net/tags/MtzaAg2sNTM4MDktYmxvZwO0O0OO0O0O.html
### 不安全的 http 请求
https://blog.csdn.net/u014644574/article/details/122021773
### 导入数据 mysql 导入 mysql 导出
[[mysql]]
```
migu_data-202204250656.sql
文件第一行加上 use migu_data
20主机
cp migu_data-202204250656.sql /data/pkg
22主机
scp userapp@10.191.28.20:/data/pkg/migu_data-202204250656.sql ./
ll
mysql5.7 -uroot -p'Mg@2022cn@@ds' < migu_data-202204250656.sql
命令行 方法
use database;
source /xxx/xxx.sql;
```
### ansible 批量自动化
## vim :paste 粘贴的时候不进行自动缩进
## SSL 证书 HTTPS 腾讯云 免费版
https://cloud.tencent.com/document/product/400/53528
## nginx context 应用部署路径 publicPath
http://doc.ruoyi.vip/ruoyi-vue/document/qdsc.html#%E5%BA%94%E7%94%A8%E8%B7%AF%E5%BE%84
## ruoyi 标签 动态
```
this.$route.meta.title = '自定义名称'
this.$store.dispatch('tagsView/updateVisitedView', this.$route)
```
## jar包 加密
![[jar包加密文档.docx]]
## NPM 源
> 弃用taobao源
> // sh 'npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/' 弃用
> sh 'npm config set sass_binary_site https://registry.npmmirror.com/-/binary/node-sass'
## 数据传到一半没有 keep-alive
[数据传到一半没有了 - 掘金](https://juejin.cn/post/6844904080679124999)
查看抓包中的http请求是1.1版本理应会是默认开启keep-alive的。原来虽然浏览器发出的时候keep-alive是默认开启的但经过webpack的代理转发keep-alive被关闭了代理将这个值设置为了close。
原来后端服务是部署在jetty下dev环境是部署在tomcat下听后端专家说jetty提供的数据包保存在内存中发送给前端包还没发完就被jetty给关掉了导致抓包中数据丢失而tomcat会保证数据数据全部发送给前端所以dev环境正常所以会出现访问后端本地接口500访问dev环境接口200最终确认是后端jetty配置问题导致。
## get 请求 body 参数
>https://blog.csdn.net/qq_37027534/article/details/119413349
无法实现!!!!!
## 国家标准全文公开
>http://openstd.samr.gov.cn/bzgk/gb/gbMainQuery
### 行政区域
```
http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2021/index.html
```
## 中文 linux 压缩
unzip -O gbk 压缩包路径。windows是gbk在linux上解压需要转换
## python server
https://blog.csdn.net/aiwoya213/article/details/102941788
## JAVA 夏令时问题 HOUR_OF_DAY: 0 -> 1
```java
@ApiModelProperty(value = "生日")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDateTime birthDay;
```
Date -> DateTimeDao层转换
## ios 视频 无法播放问题
> 小院家已经解决由于获取文件是分段获取的
## 资源 评估 视频 网络
> https://support.dahuatech.com/tools/onlineTools/32
## 根据 ancestor 获取 父级元素
```sql
select GROUP_CONCAT(temp.dept_id2 order by temp.dept_id2), GROUP_CONCAT(temp.dept_name2 order by temp.dept_id2) from (
SELECT sd.dept_id,sd.dept_name dept_name,sd.ancestors,sd2.dept_name dept_name2,sd2.dept_id dept_id2,sd2.`type` from sys_dept sd
left join sys_dept sd2 on FIND_IN_SET(sd2.dept_id, sd.ancestors) or sd2.dept_id = sd.dept_id
WHERE sd.`type` = 5
) temp
group by temp.dept_id
;
```
## idea webstorm 激活 工具
![[jihuo-tool.zip]]
## 网络 ip 掩码 计算 网段
>https://www.sojson.com/convert/subnetmask.html
## 网络测速
[网站测速|网站速度测试|网速测试|电信|联通|网通|全国|监控|CDN|PING|DNS 一起测试|17CE.COM](https://www.17ce.com/ )
## 文件 下载 预览 pdf
```java
# minio 设置文件 contentType
PutObjectArgs.Builder argsBuilder = PutObjectArgs.builder()
.bucket(minioConfig.getBucketName())
.object(fileName)
.stream(file.getInputStream(), file.getSize(), -1);
if (!"application/pdf".equals(file.getContentType())) {
argsBuilder.contentType(file.getContentType());
}
PutObjectArgs args = argsBuilder.build();
# 方式二 web server
https://www.zhuziweb.com/jsrz/455.html
`Nginx`可以修改配置文件(宝塔面板可直接在面板伪静态中添加)
location ~ .*.(txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx)$ {
    add_header Content-Disposition attachment;
}
`Apache`可以通过修改`public/.htaccess`配置来实现
<FilesMatch ".(txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx)$">
   ForceType application/octet-stream
   Header set Content-Disposition attachment
</FilesMatch>
```
## 端口被占用 address already in use
```
net stop winnat
net start winnat
```
## 弱密码 亚信 环境 10月 安全扫描
新密码 `Asiainfo@cq.1014`