From 74717e43c6bf016156b193df327e35f23fefa6c7 Mon Sep 17 00:00:00 2001 From: andwati <56686898+andwati@users.noreply.github.com> Date: Thu, 8 May 2025 15:07:50 +0300 Subject: [PATCH] completed post polishing --- _config.yml | 2 +- ...mantic-version-and-conventional-commits.md | 10 ++----- ...tgresql-15-on-arch-manjaro-garuda-linux.md | 29 +------------------ _posts/2023-10-01-obsidian-sync.md | 12 ++++---- 4 files changed, 11 insertions(+), 42 deletions(-) diff --git a/_config.yml b/_config.yml index 73d96bb..3636d13 100644 --- a/_config.yml +++ b/_config.yml @@ -105,7 +105,7 @@ avatar: social_preview_image: # string, local or CORS resources # boolean type, the global switch for TOC in posts. -toc: true +toc: false comments: # Global switch for the post-comment system. Keeping it empty means disabled. 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 e355ae5..04a1415 100644 --- a/_posts/2023-01-24-semantic-version-and-conventional-commits.md +++ b/_posts/2023-01-24-semantic-version-and-conventional-commits.md @@ -9,7 +9,7 @@ Adopting best practices in your git and build workflows. -# What is Semver? +# What is Semver? Semantic versioning or just SemVer is a dependency naming guidline that aims to bring some sanity into naming libraries and packages in software development. It is a standard versioning system created by **Tom Preston Werner** (co-founder of Github) that’s used to communicate what changes are in a release. @@ -31,8 +31,6 @@ Semantic versioning is based on three numbers that indicate the versions of the #### React(v18.2.0) -![react](/images/uploads/react.png "React versioning") - - **Major -> 18** - **Minor -> 2** - **Patch -> 0** @@ -41,8 +39,6 @@ Semantic versioning is based on three numbers that indicate the versions of the #### Pipx(v1.1.0) -![](/images/uploads/pipx.png) - - **Major -> 1** - **Minor -> 1** - **Patch -> 0** @@ -83,5 +79,5 @@ The commit contains the following structural elements, to communicate intent to # Resources -https://semver.org/ -https://www.conventionalcommits.org/en/v1.0.0/ +[https://semver.org/](https://semver.org/) +[https://www.conventionalcommits.org/en/v1.0.0/](https://www.conventionalcommits.org/en/v1.0.0/) 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 1b7ab3f..831c839 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 @@ -9,33 +9,12 @@ tags : ["postgresql", "archlinux", "manjaro", "garuda", "linux"] **PostgreSQL** is a powerful open-source relational database management system (RDBMS) that allows you to store and manage large amounts of data. It was first released in 1996 and has become one of the most popular RDBMSs in the world. -PostgreSQL is designed to handle high levels of **concurrency**, providing features such as **MVCC (multi-version concurrency control)** that allow multiple users to access the same data simultaneously without conflicts. It is also **highly extensible**, with a large number of third-party extensions and libraries available that can be used to add functionality to the core database. - -Some of the key features of PostgreSQL include support for **complex SQL queries**, **advanced indexing** and **query optimization**, **transactional integrity**, and support for a **wide range of programming languages** and development frameworks.PostgreSQL is used by a wide range of organizations, from small businesses to large enterprises, and is particularly popular in industries such as finance, healthcare, and e-commerce, where high levels of data security and reliability are critical. In this tutorial, we’ll look at how to install PostgreSQL on Arch Linux, Manjaro, Garuda Linux, or any other Arch-based distro out there. -# PostgreSQL use cases - -- **E-commerce websites:** PostgreSQL is a popular choice for e-commerce websites because it can handle large amounts of data and supports complex queries. It is used for product catalogs, order management, customer data, and more. -- **Financial institutions:** PostgreSQL is used in financial institutions to store and manage transactional data, such as stock trades, bank transfers, and credit card transactions. It is highly secure and provides features such as transactional integrity and data encryption. -- **Healthcare industry:** PostgreSQL is used in the healthcare industry to store patient data, such as medical records and diagnostic test results. It is also used for research purposes, where large amounts of data need to be stored and analyzed. -- **Government agencies:** PostgreSQL is used by government agencies for a variety of purposes, including managing large datasets, storing and analyzing census data, and managing public health information. -- **Mobile and web applications:** PostgreSQL is often used as a back-end database for mobile and web applications. It provides reliable data storage and retrieval and supports a wide range of programming languages and development frameworks. -- **Geospatial applications:** PostgreSQL has built-in support for geospatial data and is often used for applications that require location-based data, such as mapping and GPS tracking. - # Why PostgreSQL? -Postgres offers a lot of advantages that make it an excellent choice for highly transactional environments regardless of application size and data volume. Its rich feature set and flexibility make it a popular choice for a wide range of applications and industries. Some of the top features are: - -- **ACID Compliance:** PostgreSQL is ACID (Atomicity, Consistency, Isolation, Durability) compliant, which means it provides high reliability, consistency, and data integrity, even in the presence of hardware failures, power outages, and other system errors. -- **Extensibility:** PostgreSQL is highly extensible, allowing developers to add new data types, operators, and functions using its extension framework. This makes it easy to customize PostgreSQL to meet the specific needs of your application. -- **Concurrency:** PostgreSQL provides a high level of concurrency, allowing multiple users to access the same data at the same time without conflicts. It uses a Multi-Version Concurrency Control (MVCC) model that enables fast and reliable access to data, even under heavy load. -- **Full-text search:** PostgreSQL provides a powerful full-text search engine that supports advanced search capabilities, such as stemming, ranking, and relevance matching. -- **Advanced indexing:** PostgreSQL provides a wide range of indexing options, including B-tree, Hash, GiST, SP-GiST, GIN, and BRIN. These indexing options allow developers to optimize database performance for their specific use cases. -- **JSON support:** PostgreSQL provides native support for storing and querying JSON data, making it easy to work with modern web and mobile applications that rely on JSON for data exchange. -- **Security:** PostgreSQL provides a high level of security, with features such as SSL support, client authentication, and role-based access control. It also provides encryption for both data at rest and data in transit. -- **Scalability:** PostgreSQL is designed to scale horizontally and vertically, allowing you to add more nodes to a cluster or increase the resources of a single node to handle more load. +Postgres offers a lot of advantages that make it an excellent choice for highly transactional environments regardless of application size and data volume. Its rich feature set and flexibility make it a popular choice for a wide range of applications and industries. # Install PostgreSQL on Arch | Manjaro | Garuda Linux @@ -162,9 +141,3 @@ sudo -u postgres psql -c "ALTER USER postgres PASSWORD '$PGPASSWORD';" - [Arch Linux Wiki](https://wiki.archlinux.org/title/PostgreSQL) - [Wikipedia](https://en.wikipedia.org/wiki/PostgreSQL) - [PostgreSQL Documentation](https://www.postgresql.org/docs/) - -# Conclusion - -Installing PostgreSQL on Arch Linux-based distribution is a straightforward process that can be completed in just a few steps. By following the steps outlined above, you can install, configure, and start the PostgreSQL database server on your Arch Linux system. Once installed, you can use PostgreSQL to store, manage, and query data for a wide range of applications and use cases. With its advanced features and high level of extensibility, PostgreSQL is a popular choice for developers and businesses seeking a robust and reliable database management system. - -You can connect to the PostgreSQL server using the psql command-line client or a graphical tool such as pgAdmin. diff --git a/_posts/2023-10-01-obsidian-sync.md b/_posts/2023-10-01-obsidian-sync.md index 588d6c9..48a3013 100644 --- a/_posts/2023-10-01-obsidian-sync.md +++ b/_posts/2023-10-01-obsidian-sync.md @@ -29,7 +29,7 @@ Before we dive into setting up the synchronization task, ensure you have the fol The provided PowerShell script, sync.ps1, is the heart of our synchronization task. It automates the process of committing changes in your Obsidian vault's Git repository and pushing them to your remote repository (e.g., GitHub or GitLab). Here's a brief overview of the script: -```ps1 +```powershell # Define the folder path $FolderPath = "C:\path\to\obsidian-vault" @@ -69,7 +69,7 @@ Now that we have our PowerShell script ready, let's set up a scheduled task usin 1. **Define Task Variables:** Execute the following commands to define variables for your task: - ```ps1 + ```powershell $ScriptPath = "C:\path\to\obsidian-vault\sync.ps1" $TaskName = "obsidian-sync" $UserAccount = "$env:USERDOMAIN\$env:USERNAME" @@ -79,7 +79,7 @@ Now that we have our PowerShell script ready, let's set up a scheduled task usin 1. **Configure Task Trigger:** Set up a trigger for your task. In this example, we'll schedule the task to run daily at 9:00 PM: - ```ps1 + ```powershell $Trigger = New-ScheduledTaskTrigger -Daily -At '9:00 PM' ``` @@ -87,7 +87,7 @@ Now that we have our PowerShell script ready, let's set up a scheduled task usin 1. Define Task Principal and Settings: Configure the task's principal (the user account under which the task will run) and settings: - ```ps1 + ```powershell $Principal = New-ScheduledTaskPrincipal -UserId $UserAccount -RunLevel Highest $Settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -RunOnlyIfNetworkAvailable -WakeToRun ``` @@ -96,7 +96,7 @@ Now that we have our PowerShell script ready, let's set up a scheduled task usin 1. **Define Task Action:** Specify the action that the task will perform, which is running the PowerShell script: - ```ps1 + ```powershell $Action = New-ScheduledTaskAction -Execute 'PowerShell.exe' -Argument "-ExecutionPolicy Bypass -WindowStyle Hidden -File `"$ScriptPath`"" ``` @@ -104,7 +104,7 @@ Now that we have our PowerShell script ready, let's set up a scheduled task usin 1. **Create the Scheduled Task:** Finally, create the scheduled task and register it with Windows Task Scheduler: - ```ps1 + ```powershell $Task = New-ScheduledTask -Action $Action -Trigger $Trigger -Principal $Principal -Settings $Settings Register-ScheduledTask -TaskName $TaskName -InputObject $Task ```