Remove prism

This commit is contained in:
Digital Studium
2023-04-23 17:56:27 +03:00
parent 0682ac8961
commit d90ff60a80
23 changed files with 181 additions and 35 deletions

View File

@@ -1,8 +1,9 @@
---
title: "About author"
date: "2023-02-18"
title: About author
category: /
filename: about-author
date: 2023-02-18
---
{{< figure src="/images/kostya.jpg" width="100px" class="floatleft alignleft" >}}
My name is Konstantin Shutkin, I am from Moscow, Russia and I am a DevOps engineer. Since 2016, I have worked in this position in companies such as Severstal, Sberbank, Nvidia. My main subject of research and work is Linux, Docker, Kubernetes, Python programming and more. I share my knowledge on this blog.

View File

@@ -1,6 +1,8 @@
---
title: "Linux: How to create LVM logical volume"
date: "2022-05-15"
category: linux-lifehacks
filename: how-to-create-lvm-logical-volume
date: 2022-05-15
---
### First step: creating a physical volume
After you have attached the disk to a physical server or virtual machine, you need to type

View File

@@ -1,6 +1,8 @@
---
title: "Linux: How to extend LVM volume"
date: "2022-05-15"
category: linux-lifehacks
filename: how-to-extend-lvm-volume-on-linux
date: 2022-05-15
---
### Situation 1: new disk
#### First step: creating a physical volume

View File

@@ -1,6 +1,8 @@
---
title: "Linux: how to limit /var/log folder size"
date: "2022-06-16"
category: linux-lifehacks
filename: linux-how-to-limit-var-log-size
date: 2022-06-16
---
Sometimes the `/var/log` folder grows so large that it causes a shortage of disk space. How to limit the size of this folder? By following the two steps in this article, you can control the size of the `/var/log` folder.<!--more-->

View File

@@ -1,6 +1,8 @@
---
title: "Linux: How to set up monitoring with alerts to Telegram"
date: "2023-03-04"
category: linux-lifehacks
filename: linux-monitoring-with-telegram-alerts
date: 2023-03-04
---
This article describes how to set up monitoring with alerts to Telegram using Grafana, Prometheus, Alertmanager, Node-exporter and Cadvisor.
### First step: Cloning the repository

View File

@@ -1,6 +1,8 @@
---
title: "Nginx: Sample Configuration Files"
date: "2023-03-26"
category: nginx-lifehacks
filename: nginx-configs-examples
date: 2023-03-26
---
Sometimes there is a need to quickly create an nginx configuration file: for hosting a static website,
to create a simple proxy server, etc.
@@ -17,7 +19,7 @@ Then run the command to apply the config:
sudo service nginx reload
```
## Example 1: hosting a static site.
```bash
```nginx
server {
listen 80;
server_name example.com www.example.com;
@@ -31,7 +33,7 @@ server {
}
```
## Example 2: proxy server
```bash
```nginx
server {
listen 80;
server_name example.com www.example.com;
@@ -49,14 +51,14 @@ server {
```
## Example 3: caching proxy
In `/etc/nginx/nginx.conf` add:
```bash
```nginx
http {
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m
inactive=24h max_size=1g;
}
```
In `/etc/nginx/conf.d` put the following config:
```bash
```nginx
server {
listen 80;
server_name example.com www.example.com;

View File

@@ -1,6 +1,8 @@
---
title: "Python: How to easily write a CLI tool for Linux using Fire"
date: "2023-04-09"
category: python-lifehacks
filename: how-to-easily-write-linux-cli-tool
date: 2023-04-09
---
I want to share the easiest way I know to write a CLI tool for Linux administration
using python and Fire.

View File

@@ -1,6 +1,8 @@
---
title: "Python: How to load multiple web pages in parallel"
date: "2022-05-15"
category: python-lifehacks
filename: how-to-load-multiple-web-pages-in-parallel-using-python
date: 2022-05-15
---
First you need to install an aiohttp package. To install aiohttp run the command:
```bash

View File

@@ -1,6 +1,8 @@
---
title: "Ubuntu: How to upgrade kernel"
date: "2022-05-14"
category: ubuntu-lifehacks
filename: ubuntu-how-to-upgrade-kernel
date: 2022-05-14
---
### First method
The first method is very simple. We need to enter only one command in the terminal: