Skip to content

Instantly share code, notes, and snippets.

@Tailerusin
Tailerusin / vmware.md
Created March 7, 2025 09:45 — forked from ayebrian/vmware.md
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
@Tailerusin
Tailerusin / lvm-cache-debian.md
Created February 20, 2025 08:59 — forked from ntn888/lvm-cache-debian.md
Instructions to create an LVM cache for root in Debian

LVM cache in Debian

From the man-pages: "The cache logical volume type uses a small and fast LV to improve the performance of a large and slow LV. It does this by storing the frequently used blocks on the faster LV. LVM refers to the small fast LV as a cache pool LV. The large slow LV is called the origin LV. Due to requirements from dm-cache (the kernel driver), LVM further splits the cache pool LV into two devices - the cache data LV and cache metadata LV. The cache data LV is where copies of data blocks are kept from the origin LV to increase speed. The cache metadata LV holds the accounting information that specifies where data blocks are stored (e.g. on the origin LV or on the cache data LV). Users should be familiar with these LVs if they wish to create the best and most robust cached logical volumes. All of these associated LVs must be in the same VG."

Assuming LVM is already setup in HDD (e.g. from anaconda) and SSD is untouched.

Create a physical

@Tailerusin
Tailerusin / mikotik-youtube.MD
Created February 8, 2025 13:18 — forked from degritsenko/mikotik-youtube.MD
Route youtube traffic via VPN with Mikrotik / Форвард youtube трафика в vpn туннель на mirotik

Этап 0. Аренуем VPS, настраиваем туннель с роутером. Проще всего wireguard, но можно и l2tp и даже ipip

Этап 1. Создаем таблицу маршрутизации

/routing table add disabled=no fib name=xoxo

Этап 2. Создание листа со списком сетей к которым нужно отправлять трафик. Адреса сервисов можно получить с помощью проекта DomainMapper

@Tailerusin
Tailerusin / parse.py
Created December 13, 2024 08:19 — forked from classmember/parse.py
Parse fail2ban log for IP addresses
#!/usr/bin/env python
'''
Parse fail2ban log for IP addresses
Usage: $ ./parse.py log
'''
import re
import sys
import subprocess
import collections

Более удобной и актуальной версией является эта статья с использованием traefik

https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52


Certbot и nginx, как обратный прокси в Docker (пример с 2 react проектами)

В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам

@Tailerusin
Tailerusin / traefik.md
Created November 29, 2024 08:53 — forked from dancheskus/traefik.md
Traefik, как обратный прокси в Docker (пример с 2 react проектами)

Traefik, как обратный прокси в Docker (пример с 2 react проектами)

В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам

Цели

  • Запустить traefik в одном контейнере
  • Запустить другие проекты в других контейнерах
  • Соединить все контейнеры в одну docker cеть
  • Настроить контейнеры с проектами так, что-бы они объясняли traefik'у, какие url ведут на конкретный проект
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Professional Enterprise
Professional Workstation
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4