joe 2 năm trước cách đây
mục cha
commit
580e6013fe
2 tập tin đã thay đổi với 68 bổ sung0 xóa
  1. 42 0
      content/middleware/postgresql_in_short.md
  2. 26 0
      content/res/github_projects.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.` 导致启动失败。解决如下

+ 26 - 0
content/res/github_projects.md

@@ -90,6 +90,7 @@ draft: false
 > Build awesome Golang desktop apps and beautiful interfaces with Vue.js, React.js, Framework 7, and more...
 - [casdoor](https://github.com/casdoor/casdoor)
 > An open-source Identity and Access Management (IAM) / Single-Sign-On (SSO) platform powered by Casbin and AI gateway with web UI supporting OAuth 2.0, OIDC, SAML and OpenAI ChatGPT
+<<<<<<< Updated upstream
 - [zitadel](https://github.com/zitadel/zitadel)
 > The best of Auth0 and Keycloak combined. Built for the serverless era.
 - [authelia](https://github.com/authelia/authelia)
@@ -104,15 +105,40 @@ draft: false
 > Scalable real-time messaging server in a language-agnostic way. Set up once and forever.
 - [chromedp](https://github.com/chromedp/chromedp)
 > A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.
+=======
+- [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)
+>>>>>>> Stashed changes
 
 ### Python
 
 - [hummingbot](https://github.com/CoinAlpha/hummingbot)
 - [algo](https://github.com/trailofbits/algo)
 > Set up a personal VPN in the cloud
+<<<<<<< Updated upstream
 - [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)
+>>>>>>> Stashed changes
 
 ### Js/Ts