diff --git a/content/posts/generate-django-secret-key.md b/content/posts/generate-django-secret-key.md index 215eb26..11ea4b9 100644 --- a/content/posts/generate-django-secret-key.md +++ b/content/posts/generate-django-secret-key.md @@ -8,7 +8,7 @@ tags = ["tutorial", "Django", "Python", ".emv"] Managing the Django SECRET_KEY variable. - + The Django `SECRET_KEY` variable is very crucial to your Django application. The secret key must be a large random value and it must be kept secret. Leaking this value to unauthorized people could lead to a security breach. The SECRET_KEY is used in Django for cryptographic signing. It is used to generate tokens and hashes, they can be recreated using this variable. If it is not configured Django throws a `django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty` error diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md index 78fc610..34ed0b9 100644 --- a/content/posts/hello-world.md +++ b/content/posts/hello-world.md @@ -8,7 +8,7 @@ tags = ["hugo", "blog", "Go"] How it begins - + In this post-web2.0 age, people seem to blog less and less, and blogs seem to be dying slowly. People are separated in different Apps where the content is not searchable by search engines. @@ -27,7 +27,7 @@ Mostly random stuff and a few tutorials. I'll see where this goes.Although some I use hugo as a static site generator.After trying a couple of blogging platforms and trying to build a few from scratch I decided to throw in the towel and opt in for a ready made solution, no need reinventing the wheel. -Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.Hugo provides a robust theming system that is easy to implement but capable of producing even the most complicated websites.Hugo's Go-based templating provides just the right amount of logic to build anything from the simple to complex. For this site I decided to go with the [even theme](https://github.com/olOwOlo/hugo-theme-even). The commenting system is implemented using [Utterances](https://utteranc.es/) +Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.Hugo provides a robust theming system that is easy to implement but capable of producing even the most complicated websites.Hugo's Go-based templates provide just the right amount of logic to build anything from the simple to complex. For this site I decided to go with the [even theme](https://github.com/olOwOlo/hugo-theme-even). The commenting system is implemented using [Utterances](https://utteranc.es/) # Blog site hosting diff --git a/content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md b/content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md index d917f20..93c1f87 100644 --- a/content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md +++ b/content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md @@ -8,7 +8,7 @@ tags = ["postgresql", "archlinux", "manjaro", "garuda", "linux"] Getting PostgreSQL up and running on Arch Linux-based distros - + # Overview @@ -50,7 +50,7 @@ Now with all that fluff out of the way, let's get to business. The steps have be ## Step 1: Installing the PostgreSQL Package -```shell +```sh $ sudo pacman -Syu postgresql ``` @@ -60,13 +60,13 @@ You can switch to the PostgreSQL user by executing the following command: - If you have sudo and are in sudoers - ```shell + ```sh $ sudo -iu postgres ``` - Otherwise using su: - ```shell + ```sh $ su # su -l postgres ``` @@ -77,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: -```shell +```sh $ postgres --version ─╯ postgres (PostgreSQL) 15.1 ``` ### 2.2 Set applicable entries in **/etc/locale.gen** -```shell +```sh $ echo "en_US.UTF-8 UTF-8" | sudo tee /etc/locale.gen ``` ### 2.3 Then run **\*\*locale-gen\*\*** to generate locale settings -```shell +```sh $ sudo locale-gen Generating locales... en_US.UTF-8... done @@ -101,7 +101,7 @@ Generation complete. You must first log in as the **postgres** user using the following command before you can initialize PostgreSQL’s data directory: -```shell +```sh sudo su - postgres ``` @@ -115,7 +115,7 @@ sudo su - postgres ### 3.1 Check PostgreSQL status with the following command: -```shell +```sh $ systemctl status postgresql ─╯ postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; preset: disabled) @@ -124,19 +124,19 @@ $ systemctl status postgresql ### 3.2 Start the PostgreSQL service by running the following command: -```shell +```sh sudo systemctl start postgresql ``` ### 3.3 Enable the PostgreSQL service to start automatically at boot by running the following command: -```shell +```sh $ sudo systemctl enable postgresql ``` ### 3.4 Verify that PostgreSQL is running by running the following command: -```shell +```sh $ sudo systemctl status postgresql ─╯ ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: disabled) diff --git a/content/posts/integrating-netlify.md b/content/posts/integrating-netlify.md index 08c9d28..e283007 100644 --- a/content/posts/integrating-netlify.md +++ b/content/posts/integrating-netlify.md @@ -8,7 +8,7 @@ tags = ["blog", "hugo", "netlify","netlify-cms","github"] Migrating to a better content management system through Netlify CMS - + # Heavy Lifting diff --git a/content/posts/semantic-version-and-conventional-commits.md b/content/posts/semantic-version-and-conventional-commits.md index 8f4cc7e..c1c2827 100644 --- a/content/posts/semantic-version-and-conventional-commits.md +++ b/content/posts/semantic-version-and-conventional-commits.md @@ -8,7 +8,7 @@ tags= ["git", "semver","workflow", "conventional commits"] Adopting best practices in your git and build workflows. - + # What is Semver? diff --git a/content/posts/subresource-integrity.md b/content/posts/subresource-integrity.md index aad4d9b..7e4582e 100644 --- a/content/posts/subresource-integrity.md +++ b/content/posts/subresource-integrity.md @@ -1,6 +1,6 @@ +++ title= "Subresource Integrity" -description= "Understanding Subresource Integrity" +description = "Understanding Subresource Integrity" date= 2023-04-29 [taxonomies] tags= ["Subresource Integrity", "CSP", "CORS"] @@ -105,7 +105,7 @@ Access-Control-Allow-Origin: * # How browsers handle Subresource Integrity -Web browsers employ several mechanisms to handle Subresource Integrity (SRI). When a