Skip to content

Instantly share code, notes, and snippets.

View MahdadGhasemian's full-sized avatar

Mahdad Ghasemian MahdadGhasemian

View GitHub Profile
@MahdadGhasemian
MahdadGhasemian / behind_proxy.md
Last active September 29, 2024 13:59
Bash, APT, Docker, K3S, Gitlab Runner Behind Proxy ?

1. bash behind proxy:

Edit .profile file (with vi or nano)

nano .profile

And add following lines:

export http_proxy=http://127.0.0.1:8888/
export https_proxy=http://127.0.0.1:8888/
@MahdadGhasemian
MahdadGhasemian / minio_backup_restore_guide.md
Last active January 8, 2026 21:43
Steps to backup and restore Minio Buckets

Restore Backup with Minio (Minio <----> Local)

Instructions for restoring buckets using Minio mirror features.

Install Minio Client

Install Link install link

@MahdadGhasemian
MahdadGhasemian / longhorn_restore_guide.md
Last active January 22, 2026 14:21
Steps to restore backed-up data using Longhorn, with a PostgreSQL example.

Restore Backup with Longhorn

Instructions for restoring data using Longhorn backup and restore features.

Restore Backup

Example: Restoring PostgreSQL Data

  1. Scale Down the PostgreSQL StatefulSet:
@MahdadGhasemian
MahdadGhasemian / DetermineAvailableDiskSpaceOnHetznerVolume.md
Last active January 15, 2025 22:05
Determine Available Disk Space on Hetzner Volume (K3S)

This guide will help you determine the available disk space on a Hetzner volume assigned to a K3S node.

1- Find Volume ID

  • Using hcloud CLI:

Run the following command to list your volumes:

hcloud volume list