Skip to content

Instantly share code, notes, and snippets.

View mfnalex's full-sized avatar
🌈

mfnalex mfnalex

🌈
View GitHub Profile
@mfnalex
mfnalex / create-chunks.sh
Last active May 28, 2025 16:16
Proxmox Backup Server: Create Chunkstore on filesystems not supporting over 65k hard links per directory
#!/bin/bash
# Gist: https://gist.github.com/mfnalex/41f6eab4baf032206228035d784ab624
# Creates the directory layout for a Proxmox Backup Server Datastore
# split up into two directories for people who have to use filesystems
# not allowing more than 65k directory entries.
# Steps:
# 1. Create new Datastore in Proxmox Backup Server GUI
@mfnalex
mfnalex / terminal-prompt-git-branch-zsh.md
Created January 25, 2024 14:05 — forked from reinvanoyen/terminal-prompt-git-branch-zsh.md
Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Updated for MacOS Big Sur | Monterey | Ventura

screenshot

Install

Open ~/.zshrc in your favorite editor and add the following content to the bottom.

function parse_git_branch() {
@mfnalex
mfnalex / CancellationDetector.java
Created July 13, 2020 21:30 — forked from aadnk/CancellationDetector.java
A class that allows you to detect which plugin cancelled a given event.
package com.comphenix.example;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.Iterator;
import java.util.List;
import org.bukkit.event.Cancellable;