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 / alpine-from-scratch.md
Last active November 16, 2025 14:41 — forked from seia-soto/howto.md
How to compile lxc/incus on AlpineLinux

Download the miniroot tarball from the Alpine website and then add it to a Docker image:

FROM scratch

ENV ALPINE_ARCH x86_64
ENV ALPINE_VERSION 3.9.1

ADD alpine-minirootfs-${ALPINE_VERSION}-${ALPINE_ARCH}.tar.gz /
CMD ["/bin/sh"]
@thimslugga
thimslugga / IAM Permissions List.md
Created November 15, 2025 00:33 — forked from itshella-dom/IAM Permissions List.md
A list of IAM permissions you can use in policy documents. Collected from the myriad of places Amazon hides them. (incomplete)

List of IAM Permissions

  • aws:CurrentTime —To check for date/time conditions.
  • aws:EpochTime —To check for date/time conditions using a date in epoch or UNIX time.
  • aws:TokenIssueTime This is the date and time that temporary security credentials were issued and can be used with date/time conditions. (Note: This key is only available in requests that are signed using temporary security credentials. For more information about temporary security credentials, see Temporary Security Credentials.)
  • aws:principaltype —To check the type of principal (user, account, federated user, - etc.) for the current request.
  • aws:SecureTransport —To check whether the request was sent using SSL. For services - that use only SSL, such as Amazon RDS and Amazon Route 53, the aws:SecureTransport - key has no meaning.
  • aws:SourceArn —To check the source of the request, using the Am
@thimslugga
thimslugga / kcpasswordEncode.sh
Created November 10, 2025 15:43 — forked from brunerd/kcpasswordEncode.sh
Encode a string for use in macOS /etc/kcpassword using shell, printf, sed, awk and xxd
#!/bin/bash
#kcpasswordEncode (20220610) Copyright (c) 2021 Joel Bruner (https://github.com/brunerd)
#Licensed under the MIT License
#given a string creates data for /etc/kcpassword
function kcpasswordEncode () (
#ascii string
thisString="${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 / 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 ()
{

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