From 38e2bd26aa42fb2beca0191a73d5a4ceaea73676 Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Wed, 20 Nov 2024 16:42:57 +0300 Subject: [PATCH] yolo --- _posts/2022-11-04-hello-world.md | 1 - .../2022-11-11-generate-django-secret-key.md | 1 - _posts/2022-11-24-integrating-netlify.md | 1 - ...mantic-version-and-conventional-commits.md | 1 - ...tgresql-15-on-arch-manjaro-garuda-linux.md | 26 +++++++++++-------- _posts/2023-04-29-subresource-integrity.md | 1 - _posts/2023-08-24-a-fresh-coat-of-paint.md | 1 - _posts/2023-08-24-utterances-comments.md | 1 - _posts/2023-10-01-obsidian-sync.md | 1 - ...2024-01-17-javascript-exporting-modules.md | 1 - 10 files changed, 15 insertions(+), 20 deletions(-) diff --git a/_posts/2022-11-04-hello-world.md b/_posts/2022-11-04-hello-world.md index 763357a..f8a2bdc 100644 --- a/_posts/2022-11-04-hello-world.md +++ b/_posts/2022-11-04-hello-world.md @@ -2,7 +2,6 @@ title : Hello World description : Hello world date : 2022-11-04 -author : Ian Andwati tags : [hugo, blog, go] --- diff --git a/_posts/2022-11-11-generate-django-secret-key.md b/_posts/2022-11-11-generate-django-secret-key.md index 237c4fb..26dccb4 100644 --- a/_posts/2022-11-11-generate-django-secret-key.md +++ b/_posts/2022-11-11-generate-django-secret-key.md @@ -1,7 +1,6 @@ --- title : Django Secret Key Tutorial description : Managing secrets -author : Ian Andwati date : 2022-11-11 tags : [tutorial, django, python, .env] --- diff --git a/_posts/2022-11-24-integrating-netlify.md b/_posts/2022-11-24-integrating-netlify.md index 592087b..03d4c20 100644 --- a/_posts/2022-11-24-integrating-netlify.md +++ b/_posts/2022-11-24-integrating-netlify.md @@ -2,7 +2,6 @@ title : Integrating Netlify CMS description : Integrating netlify cms date : 2022-11-24 -author : Ian Andwati tags : [blog, hugo, netlify,netlify-cms,github] --- diff --git a/_posts/2023-01-24-semantic-version-and-conventional-commits.md b/_posts/2023-01-24-semantic-version-and-conventional-commits.md index 2e7d74e..3b6dadd 100644 --- a/_posts/2023-01-24-semantic-version-and-conventional-commits.md +++ b/_posts/2023-01-24-semantic-version-and-conventional-commits.md @@ -2,7 +2,6 @@ title: Semantic Versioning(SemVer) and Conventional Commits description : Adopting best practices in your git and build workflows. date: 2023-01-24 -author : Ian Andwati tags: [git, semver,workflow, conventional commits] --- diff --git a/_posts/2023-02-16-install-postgresql-15-on-arch-manjaro-garuda-linux.md b/_posts/2023-02-16-install-postgresql-15-on-arch-manjaro-garuda-linux.md index fe5e653..8bdd562 100644 --- a/_posts/2023-02-16-install-postgresql-15-on-arch-manjaro-garuda-linux.md +++ b/_posts/2023-02-16-install-postgresql-15-on-arch-manjaro-garuda-linux.md @@ -2,7 +2,6 @@ title : Install PostgreSQL 15 on Arch | Manjaro | Garuda Linux description : Installing postgresql date : 2023-02-16 -author : Ian Andwati tags : [postgresql, archlinux, manjaro, garuda, linux] --- @@ -46,12 +45,12 @@ Postgres offers a lot of advantages that make it an excellent choice for highly Now with all that fluff out of the way, let's get to business. The steps have been tested on Arch Linux with the KDE desktop. -> **Note:** Commands that should be run as the *postgres* user are prefixed by `[postgres]$` in this article. +> **Note:** Commands that should be run as the *postgres* user are prefixed by `[postgres]` in this article. ## Step 1: Installing the PostgreSQL Package ```sh -$ sudo pacman -Syu postgresql + sudo pacman -Syu postgresql ``` This command will update the package database and update all packages on the system then install the PostgreSQL package from your distribution mirrors. Never install a package without updating the system first. On a rolling release, this can lead to an unbootable system. Installing the package will also create a system user called *postgres*. You can now switch to the *postgres* user using a privilege elevation program. @@ -61,13 +60,13 @@ You can switch to the PostgreSQL user by executing the following command: - If you have sudo and are in sudoers ```sh - $ sudo -iu postgres + sudo -iu postgres ``` - Otherwise using su: ```sh - $ su + su # su -l postgres ``` @@ -78,20 +77,20 @@ Before PostgreSQL can function correctly, the database cluster must be initializ ### 2.1 We can confirm the installed PostgreSQL version by running: ```sh -$ postgres --version ─╯ + postgres --version ─╯ postgres (PostgreSQL) 15.1 ``` ### 2.2 Set applicable entries in **/etc/locale.gen** ```sh -$ echo "en_US.UTF-8 UTF-8" | sudo tee /etc/locale.gen + echo "en_US.UTF-8 UTF-8" | sudo tee /etc/locale.gen ``` ### 2.3 Then run **\*\*locale-gen\*\*** to generate locale settings ```sh -$ sudo locale-gen + sudo locale-gen Generating locales... en_US.UTF-8... done Generation complete. @@ -116,7 +115,7 @@ sudo su - postgres ### 3.1 Check PostgreSQL status with the following command: ```sh -$ systemctl status postgresql ─╯ + systemctl status postgresql ─╯ postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; preset: disabled) Active: inactive (dead) @@ -131,13 +130,13 @@ sudo systemctl start postgresql ### 3.3 Enable the PostgreSQL service to start automatically at boot by running the following command: ```sh -$ sudo systemctl enable postgresql + sudo systemctl enable postgresql ``` ### 3.4 Verify that PostgreSQL is running by running the following command: ```sh -$ sudo systemctl status postgresql ─╯ + sudo systemctl status postgresql ─╯ ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: disabled) Active: active (running) since Thu 2023-02-16 22:52:43 EAT; 20s ago @@ -154,6 +153,11 @@ $ sudo systemctl status postgresql └─26112 "postgres: logical replication launcher " ``` +# Change postgres User Password +```sh +sudo -u postgres psql -c "ALTER USER postgres PASSWORD '$PGPASSWORD';" +``` + # Resources - [Arch Linux Wiki](https://wiki.archlinux.org/title/PostgreSQL) diff --git a/_posts/2023-04-29-subresource-integrity.md b/_posts/2023-04-29-subresource-integrity.md index 61e34fb..8baa25c 100644 --- a/_posts/2023-04-29-subresource-integrity.md +++ b/_posts/2023-04-29-subresource-integrity.md @@ -2,7 +2,6 @@ title: Subresource Integrity description : Understanding Subresource Integrity date: 2023-04-29 -author : Ian Andwati tags: [subresource integrity, csp, cors] --- diff --git a/_posts/2023-08-24-a-fresh-coat-of-paint.md b/_posts/2023-08-24-a-fresh-coat-of-paint.md index 88f2050..622b7e9 100644 --- a/_posts/2023-08-24-a-fresh-coat-of-paint.md +++ b/_posts/2023-08-24-a-fresh-coat-of-paint.md @@ -1,7 +1,6 @@ --- title : A Fresh Coat Of Paint description : Migrating to Zola -author : Ian Andwati date : 2023-08-24 tags : [zola, blog, tera, rust] --- diff --git a/_posts/2023-08-24-utterances-comments.md b/_posts/2023-08-24-utterances-comments.md index 66a62fb..ce3e82f 100644 --- a/_posts/2023-08-24-utterances-comments.md +++ b/_posts/2023-08-24-utterances-comments.md @@ -1,7 +1,6 @@ --- title : What say you? description : Adding a comment system by utterances -author : Ian Andwati date : 2023-08-24 tags : [blog, utterances] --- diff --git a/_posts/2023-10-01-obsidian-sync.md b/_posts/2023-10-01-obsidian-sync.md index b54b565..8f67b2d 100644 --- a/_posts/2023-10-01-obsidian-sync.md +++ b/_posts/2023-10-01-obsidian-sync.md @@ -1,7 +1,6 @@ --- title : Setting up Obsidian sync in Windows description : Syncing Obsidian in Windows with Windows Task Scheduler with git -author : Ian Andwati date : 2023-10-01 tags : [obsidian, git,sync, windows, cron, task scheduler, powershell] --- diff --git a/_posts/2024-01-17-javascript-exporting-modules.md b/_posts/2024-01-17-javascript-exporting-modules.md index 0a7fec3..80e2516 100644 --- a/_posts/2024-01-17-javascript-exporting-modules.md +++ b/_posts/2024-01-17-javascript-exporting-modules.md @@ -1,6 +1,5 @@ --- title : Export default and module.exports in Javascript -author : Ian Andwati date : 2024-01-17 tags : [javascript, node] ---