Skip to content

Instantly share code, notes, and snippets.

@Drallas
Drallas / High Available Pi-hole failover cluster using Keepalived and Orbital Sync.md
Last active November 14, 2024 10:53
High Available Pi-hole failover cluster using Keepalived and Orbital Sync

Hyper-converged High Available Homelab with Proxmox

This is me documenting my journey moving my Homelab from a Qnap NAS and a Single host Proxmox server to a Hyper-converged multi-node Proxmox Cluster.

The reason to document it here is twofold:

  1. Information often it scattered 'all over the place', but never 100% applicable to the setup I have.
  2. To remember 'what the fuck' did I do some months ago.
  3. Writing it for 'a public' forces me to think it all through again and make sure it's correct.

It's written 'first to scratch my own itch' but hopefully it benefits others too, or even better, that others improve upon my implementations. Feel free to comment or share improvements and insights!

@TW1920
TW1920 / proxmox-debian-install-MegaCli.md
Last active October 23, 2024 19:47
Install MegaCli on Proxmox or Debian

Install MegaCli on Proxmox or Debian

  1. Install necessary tools apt-get install unzip apt-get install alien
  2. Install necessary lib apt install libncurses5
  3. Download wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
  4. Unzip
@cnrd
cnrd / rclone-backup.sh
Last active October 8, 2024 10:59
Backup script that uses rclone and ZFS snapshots to create incremental backups
#!/usr/bin/env bash
## Configs ##
ZFSSNAPSHOTNAME="rclone"
RCLONECONFIGPATH="/root/.config/rclone/rclone.conf"
BWLIMIT="10M"
TRANSFERS=10
mountSnapshots () {
@ahmetozlu
ahmetozlu / face_recognizer.py
Last active June 11, 2023 14:03
Detect, Recognize, Crop Faces from Video and Save Them as Images
#----------------------------------------------
#--- Author : Ahmet Ozlu
#--- Mail : [email protected]
#--- Date : 21st September 2017
#----------------------------------------------
import face_recognition
import cv2
import os
import create_csv
@direvus
direvus / Station-status.cs
Created June 20, 2017 08:15
Space Engineers station status script
static string panel1_name = "Text panel office 1";
static string panel2_name = "Text panel office 2";
static string panel3_name = "Text panel office 3";
static string panel4_name = "Text panel office 4";
static string reactors_name = "Reactors";
static string batteries_name = "Batteries";
static string ingot_type = "VRage.Game.MyObjectBuilder_Ingot";
static string ore_type = "VRage.Game.MyObjectBuilder_Ore";
public struct ItemType {
@zulhfreelancer
zulhfreelancer / events.md
Last active January 16, 2023 03:55
How to trigger something ie container start/stop using docker events command?
#! /bin/bash
#! events.sh

docker events --filter 'event=start' --filter 'event=stop' | while read
do
    echo "YO!"
done
#!/usr/bin/env python
from __future__ import print_function
import rospy
from concurrent.futures import ThreadPoolExecutor
class AsyncServiceProxy(object):
"""Asynchronous ROS service proxy
@twksos
twksos / CiscoVPNConnection.scpt
Last active July 31, 2023 20:50
Cisco VPN connection auto connect AppleScript
-- Please set your vpn connection name and password here
set VPNName to "VPN name"
set VPNpassword to "VPN password"
tell application "System Events"
tell current location of network preferences
set VPNService to service VPNName
end tell
set isConnected to connected of current configuration of VPNService
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update