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:

View File

@@ -1,6 +1,8 @@
---
title: "Об авторе"
date: "2023-02-18"
title: Об авторе
category: /
filename: about-author
date: 2023-02-18
---
{{< figure src="/images/kostya.jpg" width="100px" class="floatleft alignleft" >}}
Меня зовут Константин Шуткин, я живу в городе Москва и я DevOps-инженер. С 2016 года я работал на этой должности в таких компаниях, как Северсталь, Сбербанк, Nvidia. Мой основной предмет исследований и работы это Linux, Docker, Kubernetes, программирование на Python и т. д., и я делюсь своими знаниями в этих областях на этом сайте и на ютуб канале.

View File

@@ -1,6 +1,8 @@
---
title: "Linux: Как создать логический том LVM"
date: "2022-05-15"
category: linux-lifehacks
filename: how-to-create-lvm-logical-volume
date: 2022-05-15
---
### Первый шаг: создание физического тома
После того, как вы присоединили диск к физическому серверу или к виртуальной машине, вам нужно набрать

View File

@@ -1,6 +1,8 @@
---
title: "Linux: Как расширить логический том LVM"
date: "2022-05-15"
category: linux-lifehacks
filename: how-to-extend-lvm-volume-on-linux
date: 2022-05-15
---
### Ситуация 1: новый диск
#### Первый шаг: создание физического тома

View File

@@ -1,6 +1,8 @@
---
title: "Linux: как ограничить размер папки /var/log"
date: "2022-06-06"
category: linux-lifehacks
filename: linux-how-to-limit-var-log-size
date: 2022-06-06
---
Иногда папка `/var/log` увеличивается в размере настолько, что становится причиной нехватки места на диске. Как ограничить рост размера этой папки? Выполнив два шага из этой статьи, вы можете поставить размер папки `/var/log` под контроль.<!--more-->

View File

@@ -1,6 +1,8 @@
---
title: "Linux: Как настроить мониторинг с уведомлениями в Telegram"
date: "2023-03-04"
category: linux-lifehacks
filename: linux-monitoring-with-telegram-alerts
date: 2023-03-04
---
В статье описывается, как настроить мониторинг с уведомлениями в Telergram с помощью Grafana, Prometheus, Alertmanager, Node-exporter и Cadvisor.
### Первый шаг: Клонирование репозитория

View File

@@ -1,23 +1,32 @@
---
title: "Nginx: примеры конфигурационных файлов"
date: "2023-03-26"
category: nginx-lifehacks
filename: nginx-configs-examples
date: 2023-03-26
---
Иногда возникает потребность быстро создать конфигурационный файл nginx: для хостинга статического вебсайта,
для создания простого проксирующего сервера и т. п.
В данной статье приведены простые примеры конфигов Nginx для разных целей.
<!--more-->
Чтобы нижеприведенные конфиги заработали, нужно положить их по пути `/etc/nginx/conf.d/<some_name>.conf`, затем проверить
валидность конфига:
```bash
nginx -t
```
Затем выполнить команду для применения конфига:
```bash
sudo service nginx reload
```
## Пример 1: хостинг статического сайта.
```bash
```nginx
server {
listen 80;
server_name example.com www.example.com;
@@ -30,8 +39,10 @@ server {
}
}
```
## Пример 2: проксирующий сервер
```bash
```nginx
server {
listen 80;
server_name example.com www.example.com;
@@ -47,16 +58,21 @@ server {
}
}
```
## Пример 3: кэширующий прокси
В `/etc/nginx/nginx.conf` добавить:
```bash
```nginx
http {
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m
inactive=24h max_size=1g;
}
```
В `/etc/nginx/conf.d` положить такой конфиг:
```bash
```nginx
server {
listen 80;
server_name example.com www.example.com;
@@ -71,5 +87,4 @@ server {
http_500 http_502 http_503 http_504;
}
}
```
```

View File

@@ -1,6 +1,8 @@
---
title: "Python: Как легко написать CLI инструмент для Linux с помощью Fire"
date: "2023-04-09"
category: python-lifehacks
filename: how-to-easily-write-linux-cli-tool
date: 2023-04-09
---
Хочу поделиться самым простым из известных мне способов написать CLI инструмент для администрирования Linux
на Python.

View File

@@ -1,6 +1,8 @@
---
title: "Python: Как параллельно загрузить несколько веб-страниц"
date: "2022-05-15"
category: python-lifehacks
filename: how-to-load-multiple-web-pages-in-parallel-using-python
date: 2022-05-15
---
Сначала нужно установить пакет `aiohttp`. Для установки aiohttp выполните команду:

View File

@@ -1,6 +1,8 @@
---
title: "Ubuntu: Как обновить ядро"
date: "2022-05-14"
category: ubuntu-lifehacks
filename: ubuntu-how-to-upgrade-kernel
date: 2022-05-14
---
### Первый способ
Первый способ очень прост. Нам нужно ввести в терминале всего одну команду: