diff --git a/README.md b/README.md index ffe77f2..c746ab1 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,4 @@ Follow guide: [Mac Setup Gitbook](https://xmlking.gitbook.io/macos-setup/) - [Sourabhbajaj's macOS Setup Guide](https://sourabhbajaj.com/mac-setup/index.html) - - [Te BEST Mac Terminal Setup for 2022](https://bdarfler.medium.com/the-best-mac-terminal-setup-for-2022-44bf6e3c1a6e) +- [Everduin94 dotfiles](https://github.com/Everduin94/dotfiles) diff --git a/docs/apps/postgres.md b/docs/apps/postgres.md new file mode 100644 index 0000000..e73ac92 --- /dev/null +++ b/docs/apps/postgres.md @@ -0,0 +1,58 @@ +# PostgreSQL + +Install local PostgreSQL database for your projects and PoCs. +We will be using [TimescaleDB](https://www.timescale.com/) as **PostgreSQL** which add extentions `pgvectorscale` and `pgai` to support [AI](https://www.timescale.com/ai) + +## Setup + +1. At the command prompt, add the TimescaleDB Homebrew tap: + +```shell +brew tap timescale/tap +``` + +2. Install TimescaleDB and psql: + +```shell +Install TimescaleDB and psql: +``` + +3. Update your path to include psql. + +```shell +brew link --force libpq +``` + +4. Run the timescaledb-tune script to configure your database: + +```shell +timescaledb-tune --quiet --yes +``` + +5. Change to the directory where the setup script is located. It is typically, located at + +`/opt/homebrew/Cellar/timescaledb//bin/`, where ``is the version of `timescaledb` that you installed: + +```shell +cd /opt/homebrew/Cellar/timescaledb//bin/ +``` + +6. Run the setup script to complete installation. + +```shell +./timescaledb_move.sh +``` + +7. Login to PostgreSQL as postgres + +```shell +sudo -u postgres psql +``` + +8. Set the password for postgres (optional) + +```shell +\password postgres +``` + +When you have set the password, type `\q` to exit psql. diff --git a/docs/devops/cloud/gcloud.md b/docs/devops/cloud/gcloud.md index 2bd2003..ac5e07e 100644 --- a/docs/devops/cloud/gcloud.md +++ b/docs/devops/cloud/gcloud.md @@ -8,7 +8,7 @@ Examples include: “gcloud”, “gsutil”, and “bq” among others. Install Google cloud SDK using your favourite method, e.g. `Brew` or download `macOS 64-bit(arm64, Apple M1 silicon)` directly from [google](https://cloud.google.com/sdk/docs/install) ```shell -rew install --cask google-cloud-sdk +brew install --cask google-cloud-sdk # Note: if you see failures (e.g., 503) during the google-cloud-sdk installation, you may need to set your python proxy and re-run the command. e.g., # export HTTP_PROXY="http://user:password@hostname:port" # export HTTPS_PROXY="http://user:password@hostname:port"