Skip to content

Commit 757e3ce

Browse files
committed
update nextcloud versions, edms, python, jsonschema
1 parent 60ea754 commit 757e3ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1790
-418
lines changed

notes/culture/game/minecraft.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Minecraft
3+
---
4+
5+
# Minecraft
6+
7+
- Minecraft:Java
8+
- 支持 Windows、Mac、Linux
9+
- Minecraft:Bedrock
10+
- 只支持 Windows
11+
- 产品
12+
- 标准版
13+
- ¥89.00
14+
- 豪华版
15+
- ¥119.00
16+
- iOS https://apps.apple.com/us/app/minecraft-play-with-friends/id479516143
17+
- $6.99
18+
19+
## Awesome
20+
21+
- [bs-community/awesome-minecraft](https://github.com/bs-community/awesome-minecraft)
22+
23+
## Download
24+
25+
- https://www.minecraft.net/en-us/download
26+
27+
## Server
28+
29+
- https://www.minecraft.net/en-us/download/server
30+
- https://findmcserver.com/
31+
- https://aka.ms/verifiedservers
32+
- -> findmcserver.com
33+
- https://aternos.org/
34+
35+
```bash
36+
java -Xmx1024M -Xms1024M -jar minecraft_server.1.21.3.jar nogui
37+
```

notes/culture/game/minetest.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,37 @@ title: minetest
55
# minetest
66

77
- [minetest](https://github.com/minetest/minetest)
8+
- minetest -> Luanti
9+
- 由于 (L)GPL License 原因,没有 iOS/iPad 版本
10+
- https://github.com/minetest/minetest/issues/12176
11+
- 参考
12+
- [MultiCraft/MultiCraft](https://github.com/MultiCraft/MultiCraft)
813

914
---
1015

1116
- user/minetest.conf
1217

18+
```bash
19+
mkdir data conf
20+
chown -R 30000 data conf
21+
# https://github.com/minetest/minetest/blob/master/doc/docker_server.md
22+
# https://github.com/minetest/minetest/pkgs/container/minetest
23+
docker run -d \
24+
-p 30000:30000/udp \
25+
-v $PWD/minetest/data:/var/lib/minetest \
26+
-v $PWD/minetest/conf:/etc/minetest \
27+
--name minetest ghcr.io/minetest/minetest
28+
```
1329

30+
- https://github.com/minetest/minetest/blob/master/minetest.conf.example
31+
- https://wiki.minetest.net/minetest.conf
1432

15-
```
33+
## Games
34+
35+
```bash
36+
minetestserver --gameid list
1637
```
1738

18-
- https://github.com/minetest/minetest/blob/master/minetest.conf.example
39+
- STATIC_SHAREDIR="/usr/local/share/minetest"
40+
- https://content.minetest.net/
41+
- https://wiki.minetest.net/Games

notes/culture/game/roblox.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: roblox
3+
---
4+
5+
# roblox
6+
7+
- roblox.com
8+
- https://bgp.tools/as/22697
9+
- AS22697

notes/db/relational/mssql/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ nmap -p 1433,1434 HOST
2626
```
2727
Windows NTbackup archive NT, with file catalog, soft size 1*512, software (0x1200): Microsoft SQL Server
2828
```
29+
30+
## 导出
31+
32+
```bash
33+
bcp "SELECT * FROM database.schema.table" queryout "output.csv" -c -t, -S servername -U username -P password
34+
35+
Invoke-Sqlcmd -Query "SELECT * FROM database.schema.table" -ServerInstance "servername" | Export-Csv -Path "output.csv" -NoTypeInformation
36+
```
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
tags:
3+
- Cookbook
4+
---
5+
6+
# MySQL Cookbook
7+
8+
## table_size
9+
10+
```sql
11+
CREATE VIEW table_size AS
12+
SELECT
13+
table_schema AS table_schema,
14+
table_name AS table_name,
15+
table_rows AS row_estimate,
16+
data_length + index_length AS total_bytes,
17+
data_length AS table_bytes,
18+
index_length AS index_bytes,
19+
data_free AS free_space,
20+
CONCAT(ROUND((data_length + index_length) / 1024 / 1024, 2), ' MB') AS total_pretty,
21+
CONCAT(ROUND(data_length / 1024 / 1024, 2), ' MB') AS table_pretty,
22+
CONCAT(ROUND(index_length / 1024 / 1024, 2), ' MB') AS index_pretty
23+
FROM
24+
information_schema.tables
25+
WHERE
26+
table_type = 'BASE TABLE'
27+
ORDER BY
28+
total_bytes DESC;
29+
```

notes/db/relational/mysql/mysql-faq.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ SHOW MASTER STATUS; -- 查看主库状态
3939
- mysql
4040

4141
```sql
42+
-- is not allowed to connect to this MySQL server
43+
-- /c/Program\ Files/MySQL/MySQL\ Server\ 8.0/bin/mysql -u root -p123456 app -h 127.0.0.1
4244
-- 允许 root 远程登录
4345
UPDATE mysql.user SET host='%' WHERE user='root' AND host='localhost';
4446
FLUSH PRIVILEGES; -- 重载权限

notes/db/relational/postgresql/postgresql-version.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tags:
1414

1515
| PostgreSQL | Release Date |
1616
| --------------- | ------------ |
17+
| [PostgreSQL 17] | 2024-09-26 |
1718
| [PostgreSQL 16] | 2023-09-14 |
1819
| [PostgreSQL 15] | 2022-10-13 |
1920
| [PostgreSQL 14] | 2021-09-30 |
@@ -33,11 +34,30 @@ tags:
3334
[postgresql 12]: #postgresql-12
3435
[postgresql 11]: #postgresql-11
3536

37+
## PostgreSQL 17
38+
39+
- libpq 支持 TLS `?sslnegotiation=direct`
40+
- https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION
41+
- alpn postgresql
42+
- 旧版本 应用层实现的 SSL - 无法利用现有基础设施
43+
- https://www.postgresql.org/docs/17/protocol-flow.html#PROTOCOL-FLOW-SSL
44+
- PGJDBC v42.7.4
45+
- https://github.com/pgjdbc/pgjdbc/pull/3252
46+
- https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/PGProperty.java#L696
47+
- nodejs pg https://github.com/brianc/node-postgres/issues/3346
48+
- `?sslnegotiation=direct&sslmode=require`
49+
- `JSON_TABLE()`
50+
- `pg_createsubscriber`
51+
- `pg_basebackup` 支持增量
52+
- `COPY ON_ERROR ignore`
53+
- 参考
54+
- https://www.postgresql.org/docs/current/release-17.html
55+
3656
## PostgreSQL 16
3757

3858
- Logical Replication 优化
3959
- Parallel Execution 优化
40-
- JSON/JSONB 支持更多操作 - 更完善的 SQL/JSON 支持
60+
- JSON/JSONB 支持更多操作 - 更完善的 SQL/JSON 支持
4161
- Concurrent Bulk Loading
4262
- psql
4363
- `\bind` -> `SELECT $1::int + $2::int \bind 1 2 \g)`
@@ -49,6 +69,7 @@ tags:
4969
- libpq
5070
- 参考
5171
- https://www.postgresql.org/about/news/postgresql-16-released-2715/
72+
5273
## PostgreSQL 15
5374

5475
- 新增 MERGE 语句 - 用于合并两个 ****

notes/db/relational/sqlite/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,22 @@ tags:
8585

8686
:::
8787

88+
:::tip Why use SQLite
89+
90+
- 零配置
91+
- 轻量级高效
92+
- 读为主
93+
- 需要传输大量小数据 - 把 SQLite 作为容器,传输整个文件
94+
- 不希望有外部服务依赖
95+
- 大多服务能 Embed
96+
- 大多环境直接提供 NodeJS, Bun
97+
- 希望在 KV 之上有 SQL - 有很多 KV 的文件存储方案
98+
- 支持 ACID
99+
- 跨平台兼容
100+
- 完善的社区和生态系统
101+
102+
:::
103+
88104
```bash
89105
# macOS 安装
90106
brew install sqlite3

notes/dev/dev-error.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
---
2+
tags:
3+
- Topic
4+
- Error
5+
---
6+
7+
# error
8+
9+
## Postgres
10+
11+
- https://github.com/jackc/pgerrcode/blob/master/errcode.go
12+
- https://www.postgresql.org/docs/current/errcodes-appendix.html
13+
- https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt
14+
15+
## libc
16+
17+
```bash
18+
apk add moreutils
19+
errno -l
20+
```
21+
22+
| Error | NO | Description |
23+
| --------------- | --- | ------------------------------------------- |
24+
| EPERM | 1 | Operation not permitted |
25+
| ENOENT | 2 | No such file or directory |
26+
| ESRCH | 3 | No such process |
27+
| EINTR | 4 | Interrupted system call |
28+
| EIO | 5 | I/O error |
29+
| ENXIO | 6 | No such device or address |
30+
| E2BIG | 7 | Argument list too long |
31+
| ENOEXEC | 8 | Exec format error |
32+
| EBADF | 9 | Bad file descriptor |
33+
| ECHILD | 10 | No child process |
34+
| EAGAIN | 11 | Resource temporarily unavailable |
35+
| EWOULDBLOCK | 11 | Resource temporarily unavailable |
36+
| ENOMEM | 12 | Out of memory |
37+
| EACCES | 13 | Permission denied |
38+
| EFAULT | 14 | Bad address |
39+
| ENOTBLK | 15 | Block device required |
40+
| EBUSY | 16 | Resource busy |
41+
| EEXIST | 17 | File exists |
42+
| EXDEV | 18 | Cross-device link |
43+
| ENODEV | 19 | No such device |
44+
| ENOTDIR | 20 | Not a directory |
45+
| EISDIR | 21 | Is a directory |
46+
| EINVAL | 22 | Invalid argument |
47+
| ENFILE | 23 | Too many open files in system |
48+
| EMFILE | 24 | No file descriptors available |
49+
| ENOTTY | 25 | Not a tty |
50+
| ETXTBSY | 26 | Text file busy |
51+
| EFBIG | 27 | File too large |
52+
| ENOSPC | 28 | No space left on device |
53+
| ESPIPE | 29 | Invalid seek |
54+
| EROFS | 30 | Read-only file system |
55+
| EMLINK | 31 | Too many links |
56+
| EPIPE | 32 | Broken pipe |
57+
| EDOM | 33 | Domain error |
58+
| ERANGE | 34 | Result not representable |
59+
| EDEADLK | 35 | Resource deadlock would occur |
60+
| EDEADLOCK | 35 | Resource deadlock would occur |
61+
| ENAMETOOLONG | 36 | File name too long |
62+
| ENOLCK | 37 | No locks available |
63+
| ENOSYS | 38 | Function not implemented |
64+
| ENOTEMPTY | 39 | Directory not empty |
65+
| ELOOP | 40 | Too many symbolic links |
66+
| ENOMSG | 42 | No message of desired type |
67+
| EIDRM | 43 | Identifier removed |
68+
| ECHRNG | 44 | Channel number out of range |
69+
| EL2NSYNC | 45 | Level 2 not synchronized |
70+
| EL3HLT | 46 | Level 3 halted |
71+
| EL3RST | 47 | Level 3 reset |
72+
| ELNRNG | 48 | Link number out of range |
73+
| EUNATCH | 49 | Protocol driver not attached |
74+
| ENOCSI | 50 | No CSI structure available |
75+
| EL2HLT | 51 | Level 2 halted |
76+
| EBADE | 52 | Invalid exchange |
77+
| EBADR | 53 | Invalid request descriptor |
78+
| EXFULL | 54 | Exchange full |
79+
| ENOANO | 55 | No anode |
80+
| EBADRQC | 56 | Invalid request code |
81+
| EBADSLT | 57 | Invalid slot |
82+
| EBFONT | 59 | Bad font file format |
83+
| ENOSTR | 60 | Device not a stream |
84+
| ENODATA | 61 | No data available |
85+
| ETIME | 62 | Timer expired |
86+
| ENOSR | 63 | Out of streams resources |
87+
| ENONET | 64 | Machine is not on the network |
88+
| ENOPKG | 65 | Package not installed |
89+
| EREMOTE | 66 | Object is remote |
90+
| ENOLINK | 67 | Link has been severed |
91+
| EADV | 68 | Advertise error |
92+
| ESRMNT | 69 | Srmount error |
93+
| ECOMM | 70 | Communication error on send |
94+
| EPROTO | 71 | Protocol error |
95+
| EMULTIHOP | 72 | Multihop attempted |
96+
| EDOTDOT | 73 | RFS specific error |
97+
| EBADMSG | 74 | Not a data message |
98+
| EOVERFLOW | 75 | Value too large |
99+
| ENOTUNIQ | 76 | Name not unique on network |
100+
| EBADFD | 77 | File descriptor in bad state |
101+
| EREMCHG | 78 | Remote address changed |
102+
| ELIBACC | 79 | Can not access a needed shared library |
103+
| ELIBBAD | 80 | Accessing a corrupted shared library |
104+
| ELIBSCN | 81 | .lib section in a.out corrupted |
105+
| ELIBMAX | 82 | Too many shared libraries |
106+
| ELIBEXEC | 83 | Cannot exec a shared library directly |
107+
| EILSEQ | 84 | Illegal byte sequence |
108+
| ERESTART | 85 | Interrupted system call should be restarted |
109+
| ESTRPIPE | 86 | Streams pipe error |
110+
| EUSERS | 87 | Too many users |
111+
| ENOTSOCK | 88 | Socket operation on non-socket |
112+
| EDESTADDRREQ | 89 | Destination address required |
113+
| EMSGSIZE | 90 | Message too long |
114+
| EPROTOTYPE | 91 | Protocol wrong type for socket |
115+
| ENOPROTOOPT | 92 | Protocol not available |
116+
| EPROTONOSUPPORT | 93 | Protocol not supported |
117+
| ESOCKTNOSUPPORT | 94 | Socket type not supported |
118+
| EOPNOTSUPP | 95 | Operation not supported |
119+
| ENOTSUP | 95 | Operation not supported |
120+
| EPFNOSUPPORT | 96 | Protocol family not supported |
121+
| EAFNOSUPPORT | 97 | Address family not supported |
122+
| EADDRINUSE | 98 | Address already in use |
123+
| EADDRNOTAVAIL | 99 | Cannot assign requested address |
124+
| ENETDOWN | 100 | Network is down |
125+
| ENETUNREACH | 101 | Network is unreachable |
126+
| ENETRESET | 102 | Network dropped connection |
127+
| ECONNABORTED | 103 | Software caused connection abort |
128+
| ECONNRESET | 104 | Connection reset by peer |
129+
| ENOBUFS | 105 | No buffer space available |
130+
| EISCONN | 106 | Transport endpoint is connected |
131+
| ENOTCONN | 107 | Transport endpoint not connected |
132+
| ESHUTDOWN | 108 | Cannot send after shutdown |
133+
| ETOOMANYREFS | 109 | Too many references |
134+
| ETIMEDOUT | 110 | Connection timed out |
135+
| ECONNREFUSED | 111 | Connection refused |
136+
| EHOSTDOWN | 112 | Host is down |
137+
| EHOSTUNREACH | 113 | No route to host |
138+
| EALREADY | 114 | Operation already in progress |
139+
| EINPROGRESS | 115 | Operation now in progress |
140+
| ESTALE | 116 | Stale file handle |
141+
| EUCLEAN | 117 | Structure needs cleaning |
142+
| ENOTNAM | 118 | Not a XENIX named type file |
143+
| ENAVAIL | 119 | No XENIX semaphores available |
144+
| EISNAM | 120 | Is a named type file |
145+
| EREMOTEIO | 121 | Remote I/O error |
146+
| EDQUOT | 122 | Quota exceeded |
147+
| ENOMEDIUM | 123 | No medium found |
148+
| EMEDIUMTYPE | 124 | Wrong medium type |
149+
| ECANCELED | 125 | Operation canceled |
150+
| ENOKEY | 126 | Required key not available |
151+
| EKEYEXPIRED | 127 | Key has expired |
152+
| EKEYREVOKED | 128 | Key has been revoked |
153+
| EKEYREJECTED | 129 | Key was rejected by service |
154+
| EOWNERDEAD | 130 | Owner died |
155+
| ENOTRECOVERABLE | 131 | State not recoverable |
156+
| ERFKILL | 132 | Operation not possible due to RF-kill |
157+
| EHWPOISON | 133 | Memory page has hardware error |
158+
159+
- ERRNO
160+
- https://github.com/bminor/musl/blob/master/arch/generic/bits/errno.h
161+
- https://man7.org/linux/man-pages/man3/errno.3.html

0 commit comments

Comments
 (0)