Skip to content

Instantly share code, notes, and snippets.

@krakazyabra
krakazyabra / create_template.sh
Created July 10, 2024 12:56
Proxmox create VM templates
#!/bin/bash
#Create template
#args:
# vm_id
# vm_name
# file name in the current directory
function template_exists() {
qm list | grep -w $1 &> /dev/null

Proxmox VE Installation on Hetzner Server via Rescue System

Follow these steps to install Proxmox VE on a Hetzner server via the Rescue System. The Rescue System is a Linux-based environment that can be booted into to perform system recovery tasks. We'll be using it to install Proxmox VE.

In order to complete the process, it is indeed necessary to first boot into the Rescue System and then connect to it via SSH. This will allow you to run the commands for installing Proxmox VE. Here are the steps:

Starting the Rescue System

  1. Log into the Hetzner Robot.
  2. Under "Main Functions; Server" select the desired server and then open the tab "Rescue".
{
"__inputs": [
{
"name": "DS_VICTORIAMETRICS-PROD",
"label": "VictoriaMetrics-prod",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@krakazyabra
krakazyabra / nextcloud_s3_cleanup.py
Created February 22, 2022 12:20
Cleanup the s3 bucket used by Nextcloud (Minio + Postgres required)
#!/usr/bin/env/python
import boto3
from botocore.client import Config
import psycopg2
S3_ENDPOINT = ""
S3_ACCESS_KEY = ""
S3_SECRET_KEY = ""
S3_BUCKET = ""
PSQL_HOST = ""
{
"__inputs": [
],
"__requires": [
],
"annotations": {
"list": [
{
"__inputs": [
],
"__requires": [
],
"annotations": {
"list": [
{
"__inputs": [
],
"__requires": [
],
"annotations": {
"list": [
{
"annotations": {
"list": [
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
{
"annotations": {
"list": [
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
{
"__inputs": [
],
"__requires": [
],
"annotations": {
"list": [
{