Skip to content

Instantly share code, notes, and snippets.

@heartshare
heartshare / docker-compose.yml
Created June 3, 2026 02:16 — forked from siddolo/docker-compose.yml
Proxmox Backup Server (PBS) proxy to S3
# https://github.com/tizbac/pmoxs3backuproxy
name: pmoxs3backuproxy
services:
pmoxs3backuproxy:
image: ghcr.io/tizbac/pmoxs3backuproxy:latest
command: -bind 0.0.0.0:8007 -endpoint s3.us-west-001.backblazeb2.com -usessl --debug
container_name: pmoxs3backuproxy
hostname: pmoxs3backuproxy
restart: unless-stopped
@heartshare
heartshare / .pbc-config.sh
Created May 20, 2026 05:52 — forked from sdellysse/.pbc-config.sh
Proxmox Backup Client setup
export PBS_HOST="10.69.4.20"
export PBS_PORT="8007"
export PBS_USERNAME="root@pam"
export PBS_PASSWORD="totallymyrealpassword"
export PBS_DATASTORE="tank"
export PBS_NAMESPACE="backups"
export PBS_FINGERPRINT="fi:ng:er:pr:in:ts:ar:en:ts:ec:re:tb:ut:im:ch:an:gi:ng:it:an:yw:ay"
export PBS_REPOSITORY="${PBS_USERNAME}@${PBS_HOST}:${PBS_PORT}:${PBS_DATASTORE}"
@heartshare
heartshare / tdd-dev.md
Created April 25, 2026 10:34 — forked from xqliu/tdd-dev.md
Claude Code TDD Development Skill - Red/Green/Refactor workflow for AI-assisted coding

TDD Development Command

Overview

Test-Driven Development workflow for implementing features with confidence.

Philosophy: Use unit tests to express requirements, then implement to satisfy them.

TDD Cycle (Red-Green-Refactor)

Create a modern, responsive to-do list web application with the following specifications:
1. Core Functionality:
- Add, edit, delete, and mark tasks as complete
- Categorize tasks with customizable labels, Color and emoji
- Set due dates and priority levels
- Filter and sort tasks by status, date, and category
- Data persistence using local storage
- Show statistics
@heartshare
heartshare / rke2-ha.md
Created January 28, 2025 18:25 — forked from MarWeUMR/rke2-ha.md
Install RKE2-HA Kubernetes Cluster
@heartshare
heartshare / tailscale-cert-renew.sh
Created January 25, 2025 05:04 — forked from willjasen/tailscale-cert-renew.sh
renews tailscale certificate in proxmox
#!/bin/bash
# taken from https://tailscale.com/kb/1133/proxmox
NAME="$(tailscale status --json | jq '.Self.DNSName | .[:-1]' -r)"
tailscale cert "${NAME}"
pvenode cert set "${NAME}.crt" "${NAME}.key" --force --restart
@heartshare
heartshare / proxmox-cluster-over-tailscale.md
Created January 25, 2025 05:03 — forked from willjasen/proxmox-cluster-over-tailscale.md
Create a Proxmox cluster that communicates over Tailscale

‼️ DANGER ‼️

In the interest of complete transparency, if you follow this guide, there’s a very minuscule but non-zero chance that you may violate the Bekenstein bound, at which the resulting black hole may swallow the earth whole. You have been warned!


⚠️ WARNING ⚠️

  • This guide is for development, testing, and research purposes only. This guide comes with no guarantee or warranty that these steps will work within your environment. Should you attempt within a production environment, any negative outcomes are not the fault of this guide or its author.
  • This guide was tested on Proxmox 8 / Debian 12.
@heartshare
heartshare / proxmox_nvidia.md
Created November 28, 2024 04:08 — forked from egg82/proxmox_nvidia.md
NVidia Proxmox + LXC

Proxmox

Find the proper driver at the NVidia website.

Note: Make sure to select "Linux 64-bit" as your OS

Hit the "Search" button.

@heartshare
heartshare / seaweedfs_owncloud.md
Created November 28, 2024 04:07 — forked from egg82/seaweedfs_owncloud.md
SeaweedFS + OwnCloud

A quick write-up on SeaweedFS + OwnCloud

This guide aims to take a look at a distributed, scalable SeaweedFS as a backend storage for an OwnCloud server. Why not NextCloud? Because NextCloud's S3 connector is outdated and not maintained, and won't work with SeaweedFS. Both OwnCloud and NextCloud have the same support and the same plugins. The only concern anyone has is some weird split that happened between the two years ago. It's fine.

This was a giant pain in the ass, but eventually I got it working. This is how.

Filesystem/Hardware

All servers start from fresh, clean installs of Ubuntu 18.04.3

This guide will use three seperate boxes (one master/OwnCloud and two slaves). I'm assuming there's spare, unformatted disks attached to the slaves. If not, ignore or change the section on mounting to fit your needs.

@heartshare
heartshare / exit_the_cloud.md
Created November 25, 2024 19:27 — forked from rameerez/exit_the_cloud.md
☁️ How I got off the cloud and migrated everything from AWS to a VPS in Hetzner

☁️ How I got off the cloud and migrated everything from AWS to a VPS in Hetzner

This is an opinionated handbook on how I migrated all my Rails apps off the cloud and into VPS.

This is how I manage real production loads for my Rails apps. It assumes:

  • Rails 7+
  • Ruby 3+
  • PostgreSQL
  • Ubuntu Server 24.04
  • Capistrano, Puma, Nginx