Skip to content

Commit

Permalink
update nextcloud versions, edms, python, jsonschema
Browse files Browse the repository at this point in the history
  • Loading branch information
wenerme committed Nov 25, 2024
1 parent 60ea754 commit 757e3ce
Show file tree
Hide file tree
Showing 60 changed files with 1,790 additions and 418 deletions.
37 changes: 37 additions & 0 deletions notes/culture/game/minecraft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Minecraft
---

# Minecraft

- Minecraft:Java
- 支持 Windows、Mac、Linux
- Minecraft:Bedrock
- 只支持 Windows
- 产品
- 标准版
- ¥89.00
- 豪华版
- ¥119.00
- iOS https://apps.apple.com/us/app/minecraft-play-with-friends/id479516143
- $6.99

## Awesome

- [bs-community/awesome-minecraft](https://github.com/bs-community/awesome-minecraft)

## Download

- https://www.minecraft.net/en-us/download

## Server

- https://www.minecraft.net/en-us/download/server
- https://findmcserver.com/
- https://aka.ms/verifiedservers
- -> findmcserver.com
- https://aternos.org/

```bash
java -Xmx1024M -Xms1024M -jar minecraft_server.1.21.3.jar nogui
```
27 changes: 25 additions & 2 deletions notes/culture/game/minetest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,37 @@ title: minetest
# minetest

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

---

- user/minetest.conf

```bash
mkdir data conf
chown -R 30000 data conf
# https://github.com/minetest/minetest/blob/master/doc/docker_server.md
# https://github.com/minetest/minetest/pkgs/container/minetest
docker run -d \
-p 30000:30000/udp \
-v $PWD/minetest/data:/var/lib/minetest \
-v $PWD/minetest/conf:/etc/minetest \
--name minetest ghcr.io/minetest/minetest
```

- https://github.com/minetest/minetest/blob/master/minetest.conf.example
- https://wiki.minetest.net/minetest.conf

```
## Games

```bash
minetestserver --gameid list
```

- https://github.com/minetest/minetest/blob/master/minetest.conf.example
- STATIC_SHAREDIR="/usr/local/share/minetest"
- https://content.minetest.net/
- https://wiki.minetest.net/Games
9 changes: 9 additions & 0 deletions notes/culture/game/roblox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: roblox
---

# roblox

- roblox.com
- https://bgp.tools/as/22697
- AS22697
8 changes: 8 additions & 0 deletions notes/db/relational/mssql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ nmap -p 1433,1434 HOST
```
Windows NTbackup archive NT, with file catalog, soft size 1*512, software (0x1200): Microsoft SQL Server
```

## 导出

```bash
bcp "SELECT * FROM database.schema.table" queryout "output.csv" -c -t, -S servername -U username -P password

Invoke-Sqlcmd -Query "SELECT * FROM database.schema.table" -ServerInstance "servername" | Export-Csv -Path "output.csv" -NoTypeInformation
```
29 changes: 29 additions & 0 deletions notes/db/relational/mysql/mysql-cookbook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
tags:
- Cookbook
---

# MySQL Cookbook

## table_size

```sql
CREATE VIEW table_size AS
SELECT
table_schema AS table_schema,
table_name AS table_name,
table_rows AS row_estimate,
data_length + index_length AS total_bytes,
data_length AS table_bytes,
index_length AS index_bytes,
data_free AS free_space,
CONCAT(ROUND((data_length + index_length) / 1024 / 1024, 2), ' MB') AS total_pretty,
CONCAT(ROUND(data_length / 1024 / 1024, 2), ' MB') AS table_pretty,
CONCAT(ROUND(index_length / 1024 / 1024, 2), ' MB') AS index_pretty
FROM
information_schema.tables
WHERE
table_type = 'BASE TABLE'
ORDER BY
total_bytes DESC;
```
2 changes: 2 additions & 0 deletions notes/db/relational/mysql/mysql-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ SHOW MASTER STATUS; -- 查看主库状态
- mysql

```sql
-- is not allowed to connect to this MySQL server
-- /c/Program\ Files/MySQL/MySQL\ Server\ 8.0/bin/mysql -u root -p123456 app -h 127.0.0.1
-- 允许 root 远程登录
UPDATE mysql.user SET host='%' WHERE user='root' AND host='localhost';
FLUSH PRIVILEGES; -- 重载权限
Expand Down
23 changes: 22 additions & 1 deletion notes/db/relational/postgresql/postgresql-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:

| PostgreSQL | Release Date |
| --------------- | ------------ |
| [PostgreSQL 17] | 2024-09-26 |
| [PostgreSQL 16] | 2023-09-14 |
| [PostgreSQL 15] | 2022-10-13 |
| [PostgreSQL 14] | 2021-09-30 |
Expand All @@ -33,11 +34,30 @@ tags:
[postgresql 12]: #postgresql-12
[postgresql 11]: #postgresql-11

## PostgreSQL 17

- libpq 支持 TLS `?sslnegotiation=direct`
- https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION
- alpn postgresql
- 旧版本 应用层实现的 SSL - 无法利用现有基础设施
- https://www.postgresql.org/docs/17/protocol-flow.html#PROTOCOL-FLOW-SSL
- PGJDBC v42.7.4
- https://github.com/pgjdbc/pgjdbc/pull/3252
- https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/PGProperty.java#L696
- nodejs pg https://github.com/brianc/node-postgres/issues/3346
- `?sslnegotiation=direct&sslmode=require`
- `JSON_TABLE()`
- `pg_createsubscriber`
- `pg_basebackup` 支持增量
- `COPY ON_ERROR ignore`
- 参考
- https://www.postgresql.org/docs/current/release-17.html

## PostgreSQL 16

- Logical Replication 优化
- Parallel Execution 优化
- JSON/JSONB 支持更多操作 - 更完善的 SQL/JSON 支持
- JSON/JSONB 支持更多操作 - 更完善的 SQL/JSON 支持
- Concurrent Bulk Loading
- psql
- `\bind` -> `SELECT $1::int + $2::int \bind 1 2 \g)`
Expand All @@ -49,6 +69,7 @@ tags:
- libpq
- 参考
- https://www.postgresql.org/about/news/postgresql-16-released-2715/

## PostgreSQL 15

- 新增 MERGE 语句 - 用于合并两个 ****
Expand Down
16 changes: 16 additions & 0 deletions notes/db/relational/sqlite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@ tags:

:::

:::tip Why use SQLite

- 零配置
- 轻量级高效
- 读为主
- 需要传输大量小数据 - 把 SQLite 作为容器,传输整个文件
- 不希望有外部服务依赖
- 大多服务能 Embed
- 大多环境直接提供 NodeJS, Bun
- 希望在 KV 之上有 SQL - 有很多 KV 的文件存储方案
- 支持 ACID
- 跨平台兼容
- 完善的社区和生态系统

:::

```bash
# macOS 安装
brew install sqlite3
Expand Down
161 changes: 161 additions & 0 deletions notes/dev/dev-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
---
tags:
- Topic
- Error
---

# error

## Postgres

- https://github.com/jackc/pgerrcode/blob/master/errcode.go
- https://www.postgresql.org/docs/current/errcodes-appendix.html
- https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt

## libc

```bash
apk add moreutils
errno -l
```

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

- ERRNO
- https://github.com/bminor/musl/blob/master/arch/generic/bits/errno.h
- https://man7.org/linux/man-pages/man3/errno.3.html
Loading

0 comments on commit 757e3ce

Please sign in to comment.