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 / 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
Created October 17, 2025 17:48
kdumpconfig.sh
#!/bin/sh
# ===============================================================
# 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.
#
# Though this script checks most of the things and warns about

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

@thimslugga
thimslugga / docker-compose.yaml
Created August 31, 2025 13:41 — forked from BoredHackerBlog/docker-compose.yaml
grafana loki docker-compose file and vector settings
version: "3"
networks:
loki:
services:
loki:
image: grafana/loki:2.4.0
volumes:
- ./loki:/etc/loki
@thimslugga
thimslugga / hostAgentStuff.sh
Created August 15, 2025 13:20 — forked from wuftymerguftyguff/hostAgentStuff.sh
Useful SAP HostAgent commands
#GET A LIST OF INSTANCES
#/usr/sap/hostctrl/exe/saphostctrl -function Listinstances -format Script
#GET A LIST of databases
saphostctrl -nr 99 -function Listdatabases
# manage a db with the host agent
# /usr/sap/hostctrl/exe/saphostctrl -nr 99 -function StopDatabase -dbname NPL -dbtype ada -user sapadm passwd
#query a db with the host agent
@thimslugga
thimslugga / init.sh
Created August 13, 2025 14:55 — forked from chaichontat/init.sh
Mac Startup
#!/bin/zsh
# exit when any command fails
set -e
# keep track of the last executed command
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
# echo an error message before exiting
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
@thimslugga
thimslugga / macos.md
Created August 13, 2025 14:46 — forked from sickcodes/macos.md
MacOS Defaults
# Forked from https://gist.github.com/gguerini
# Syntax edits by Sick Codes (GPLv3+)

# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"