joe 2 éve
szülő
commit
5488c85779
3 módosított fájl, 88 hozzáadás és 24 törlés
  1. 26 24
      README.md
  2. 42 0
      content/middleware/postgresql_in_short.md
  3. 20 0
      content/res/github_projects.md

+ 26 - 24
README.md

@@ -2,28 +2,46 @@
 
 本站所有原创、翻译、引用都会随着时间进行更新
 
+## blockchain
+
+
 ## languages/c
 
 
-## languages/python
+## languages/go
+
+- [由 go module 的一个问题说起](http://git.wenlabs.org/joe/blog/src/master/content/languages/go/go-mod-issue.md)
+- [go wonderful packages](http://git.wenlabs.org/joe/blog/src/master/content/languages/go/go-wonderful-packages.md)
+- [go tricks 0:build](http://git.wenlabs.org/joe/blog/src/master/content/languages/go/go-tricks-0.md)
+
+## languages/js
+
+- [best libraries or framework](http://git.wenlabs.org/joe/blog/src/master/content/languages/js/best-libraries-or-framework.md)
+
+## languages/rust
 
 
 ## languages/v
 
 - [vlang documentation 中文版](http://git.wenlabs.org/joe/blog/src/master/content/languages/v/docs_cn.md)
 
-## languages/rust
+## languages/python
 
 
-## languages/go
+## middleware
 
-- [由 go module 的一个问题说起](http://git.wenlabs.org/joe/blog/src/master/content/languages/go/go-mod-issue.md)
-- [go wonderful packages](http://git.wenlabs.org/joe/blog/src/master/content/languages/go/go-wonderful-packages.md)
-- [go tricks 0:build](http://git.wenlabs.org/joe/blog/src/master/content/languages/go/go-tricks-0.md)
+- [nats](http://git.wenlabs.org/joe/blog/src/master/content/middleware/nats.md)
+- [meilisearch](http://git.wenlabs.org/joe/blog/src/master/content/middleware/meilisearch.md)
+- [利用 trojan 搭建网络跳转服务](http://git.wenlabs.org/joe/blog/src/master/content/middleware/trojan.md)
+- [beanstalkd 任务队列](http://git.wenlabs.org/joe/blog/src/master/content/middleware/beanstalkd.md)
 
-## languages/js
+## posts
 
-- [best libraries or framework](http://git.wenlabs.org/joe/blog/src/master/content/languages/js/best-libraries-or-framework.md)
+- [certbot nginx ssl 证书管理](http://git.wenlabs.org/joe/blog/src/master/content/posts/certbot.md)
+- [mustache 模板引擎中文文档](http://git.wenlabs.org/joe/blog/src/master/content/posts/mustache.md)
+- [mysql commands](http://git.wenlabs.org/joe/blog/src/master/content/posts/daily-mysql.md)
+- [环境变量配置](http://git.wenlabs.org/joe/blog/src/master/content/posts/env.md)
+- [git in real world](http://git.wenlabs.org/joe/blog/src/master/content/posts/git-in-real-world.md)
 
 ## res
 
@@ -40,19 +58,3 @@
 
 - [alarm_server](http://git.wenlabs.org/joe/blog/src/master/content/specs/alarm_server.md)
 
-## posts
-
-- [certbot nginx ssl 证书管理](http://git.wenlabs.org/joe/blog/src/master/content/posts/certbot.md)
-- [mustache 模板引擎中文文档](http://git.wenlabs.org/joe/blog/src/master/content/posts/mustache.md)
-- [mysql commands](http://git.wenlabs.org/joe/blog/src/master/content/posts/daily-mysql.md)
-- [git in real world](http://git.wenlabs.org/joe/blog/src/master/content/posts/git-in-real-world.md)
-- [环境变量配置](http://git.wenlabs.org/joe/blog/src/master/content/posts/env.md)
-
-## blockchain
-
-
-## middleware
-
-- [利用 trojan 搭建网络跳转服务](http://git.wenlabs.org/joe/blog/src/master/content/middleware/trojan.md)
-- [beanstalkd 任务队列](http://git.wenlabs.org/joe/blog/src/master/content/middleware/beanstalkd.md)
-

+ 42 - 0
content/middleware/postgresql_in_short.md

@@ -15,10 +15,52 @@ https://github.com/postgres-cn/pgdoc-cn
 
 ## 安装
 
+1. arch linux 安裝
 ```shell
+pacman -Syu
 pacman -S postgresql
 ```
 
+2. 運行
+```shell
+sudo su - postgres
+initdb --locale en_US.UTF-8 -D /var/lib/postgres/data
+exit # quit postgres user shell
+
+sudo su - postgres
+createdb <database>
+createuser <username>
+dropdb <database>
+dropuser <username>
+## 以上命令或者 `sudo -u postgres createdb`
+```
+
+```shell
+sudo -u postgres psql # enter psql
+alter user <username> with encrypted password 'password';
+grant all privileges on database <database> to <username>;
+```
+
+```shell
+sudo su - postgres
+create user <username> with password 'password';
+create database <database> owner <username>;
+grant all privileges on database <database> to <username>;
+\q
+```
+
+3. 命令
+```shell
+1. \h SQL help
+2. \? psql help
+3. \l show all databases;
+4. \c <database> <username> connect to <database>
+5. \d list all tables;
+6. \du list all users
+7. \e open editor
+8. \conninfo: list database and connection info
+```
+### 
 #### 升级问题
 
 滚动更新后会更新 Postgresql 到新版本,再次启动 `systemctl restart postgresql` 后可能会报错 `An old version of the database format was found.` 导致启动失败。解决如下

+ 20 - 0
content/res/github_projects.md

@@ -118,6 +118,21 @@ draft: false
 > Golang implementation of the Raft consensus protocol
 - [pebble](https://github.com/cockroachdb/pebble)
 > RocksDB/LevelDB inspired key-value database in Go
+- [LocalAI](https://github.com/go-skynet/LocalAI)
+> Self-hosted, community-driven, local OpenAI-compatible API. Drop-in replacement for OpenAI running LLMs on consumer-grade hardware. Free Open Source OpenAI alternative. No GPU required. LocalAI is an API to run ggml compatible models: llama, gpt4all, rwkv, whisper, vicuna, koala, gpt4all-j, cerebras, falcon, dolly, starcoder, and many other
+- [convoy](https://github.com/frain-dev/convoy)
+> Open Source Webhooks Gateway; For both incoming & outgoing events.
+- [polygon-edge](https://github.com/0xPolygon/polygon-edge)
+> A Framework for Building Ethereum-compatible Blockchain Networks
+- [mods](https://github.com/charmbracelet/mods)
+> AI on the command line
+- [gatus](https://github.com/TwiN/gatus)
+> Automated developer-oriented status page
+- [dashy](https://github.com/Lissy93/dashy)
+> A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
+- [notify]https://github.com/nikoksr/notify
+> A dead simple Go library for sending notifications to various messaging services.
+- [nginx-ui](https://github.com/0xJacky/nginx-ui)
 
 ### Python
 
@@ -127,6 +142,11 @@ draft: false
 - [roxy-wi](https://github.com/hap-wi/roxy-wi)
 > Web interface for managing Haproxy, Nginx, Apache and Keepalived servers
 - [synapse: Matrix homeserver](https://github.com/matrix-org/synapse)
+- [glances](https://github.com/nicolargo/glances)
+> Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems. 
+- [healthchecks](https://github.com/healthchecks/healthchecks)
+> Open-source cron job and background task monitoring service, written in Python & Django
+- [nginx-ui](https://github.com/schenkd/nginx-ui)
 
 ### Js/Ts