Skip to content

Commit

Permalink
chore:10月10日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Oct 10, 2023
1 parent 98bb16c commit 533a630
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
67 changes: 67 additions & 0 deletions docs/daily/2023-10.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
## 10月10日
- 查看数据库的大小
```
SELECT
table_schema AS 'Database',
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'Size (MB)'
FROM
information_schema.tables
GROUP BY
table_schema;
```
- 只查看某个特定的数据库
```
SELECT
table_schema AS 'Database',
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'Size (MB)'
FROM
information_schema.tables
WHERE
table_schema = 'your_database_name'
GROUP BY
table_schema;
```

## 10月9日
- vueuse
- https://vueuse.org/core/useStorage/
## 10月8日
- uni-app-x https://uniapp.dcloud.net.cn/uni-app-x/
- linux通过命令查看自己的公网ip
```
curl ifconfig.me
```
- 定时跳转钉钉
- https://github.com/SmileZXLee/uni-dingTalkHelper

- docker容器中代理接口地址
```
location /so/api/v1 {
proxy_pass http://101.35.211.235:3001/api/v1;
}
```
- 脚本一键停止容器、删除容器、重新创建容器 执行容器
run.sh脚本下的代码
```
#!/bin/bash
container="vue-course"
podman stop $container
echo "停止docker容器:$container"
podman rm $container
echo "删除docker容器:$container"
podman-compose up -d
```

通过sh run.sh运行
执行后报错: Error: no container with name or ID "vue-course\r\r" found: no such container
```
vim run.sh
:set fileformat=unix
:wq
```

## 10月7日
- linux 部署clash
- https://github.com/wanhebin/clash-for-linux
Expand Down
6 changes: 6 additions & 0 deletions docs/javascript/2023-08-25-dotnetcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ dotnet-ef migrations add XXXX
// 同步到数据库
dotnet-ef database update
// 超过一个dbcontext就需要指定
dotnet-ef migrations add XXXX -c SecondContext
dotnet-ef database update -c SecondContext
```


Expand Down
4 changes: 4 additions & 0 deletions docs/javascript/2023-10-09-mysql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 创建数据库
```
CREATE DATABASE `metadataly` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
```

0 comments on commit 533a630

Please sign in to comment.