Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile
@thimslugga
thimslugga / get-al2023-rpm.sh
Created October 30, 2025 21:19
Download individual RPM package files from AL2023 repositories
#!/bin/bash
set -e
# Script to download individual RPM files from Amazon Linux 2023 repositories
#
# sudo yum install -y sqlite
#
# Usage: ./download-al2023-rpm.sh <package-name>
# Globals
@thimslugga
thimslugga / wikimd.html
Last active October 30, 2025 21:18
Simple wiki that renders markdown notes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WikiMD</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js"></script>
<style>
* {
@thimslugga
thimslugga / cloud-cfg.yml
Created October 29, 2025 17:38
Cloud Config i.e. Userdata that runs every single boot
#cloud-config-archive
# vim:syntax=yaml
- type: "text/cloud-config"
content: |
cloud_final_modules:
- [scripts-user, always]
- type: "text/x-shellscript"
content: |
#!/bin/bash
exec > >(tee /var/log/user-data.log | logger -t user-data -s 2>/dev/console) 2>&1
@thimslugga
thimslugga / readme.md
Created October 27, 2025 13:00 — forked from blackjack4494/readme.md
Add SSL Certificate to Unifi Controller using Acme.sh and DNS verification
@thimslugga
thimslugga / unifi-ssl.sh
Created October 27, 2025 12:57
Create Self-Signed SSL Certificate for UniFi
#!/bin/bash
# Define variables for the certificate
COUNTRY="US"
STATE="NY"
CITY="New York"
ORGANIZATION="" # If there is no organization, just keep this empty
COMMON_NAME="192.168.1.1" # Common Name - usually the IP or domain name
IP_ADDRESS="192.168.1.1" # Used in subjectAltName
@thimslugga
thimslugga / proxmox_pushover_webhook.md
Created October 22, 2025 13:37 — forked from x-magic/proxmox_pushover_webhook.md
Setup Pushover notification for Proxmox via webhook

To setup Pushover.net notification in Proxmox VE, go to:
Datacenter -> Notifications -> Notification Targets -> Add -> Webhook

Set up the following fields:

  • Endpoint Name: pushover (or whatever you want, note the character limitation)
  • Method/URL: POST, https://api.pushover.net/1/messages.json
  • Headers: Add one set of key-value pairs:
    • Content-Type -> application/json
  • Body:: See pushover_proxmox-notification-webhook.json file below
  • Secrets: Add two sets of key-value pairs:
@thimslugga
thimslugga / yum_update_report.sh
Created October 20, 2025 14:04 — forked from karnauskas/yum_update_report.sh
Yum update checker with severities RHEL/CentOS/Fedora
#!/bin/bash
#####
## Author: [email protected]
## Dept: Consulting/Infrastructure
## Detail: Script to check updates and their severity
## Example: yum_update_report.sh -s Moderate
#####
function validations ()
{
@thimslugga
thimslugga / kdumpconfig.sh
Last active October 29, 2025 23:49
kdumpconfig.sh
#!/bin/bash
# ===============================================================
# The primary goal of this script is to set the right crashkernel
# parameter as per the "system RAM and arch", in the BLS
# configuration file and setup kdump.conf (as per user selection
# while generating this script) in _ONE-GO_.
# Extra debugging options too will be enabled as per
# user's choice.
#

Proxmox VE tips

Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.
Please note that unless you see a shebang (#!/...) these code blocks are meant to be copy & pasted.
Some of the steps will not work if you run part of them in a script and copy paste other ones.

Table of contents