Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile

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"
@thimslugga
thimslugga / GitCheatsheet.md
Last active July 1, 2025 15:25
Git Cheatsheet

Git Cheatsheet

Git Setup

Configure Git (Note: This is a one-time setup.):

mkdir -p ~/.config/git
touch ~/.config/git/config
@thimslugga
thimslugga / Containerfile
Created June 18, 2025 10:32
Amazon Linux 2023 Minimal Container Image
# syntax=docker/dockerfile:1
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 as build
RUN \
set -ex ; \
sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf ; \
dnf --releasever=$(rpm -q system-release --qf '%{VERSION}') \
-y \
--allowerasing \
--setopt=install_weak_deps=False \
@thimslugga
thimslugga / pyproject.toml
Created June 3, 2025 12:30 — forked from cfbevan/pyproject.toml
Full Ruff settings for pyproject
[project]
name = "tool_testing"
version = "0.1.0"
description = "Ruff Tested Project"
authors = [{ name = "", email = "" }]
dependencies = []
requires-python = "==3.11.*"
readme = "README.md"
license = { text = "MIT" }
@thimslugga
thimslugga / mkosi.conf
Created May 19, 2025 05:17 — forked from jfroy/mkosi.conf
rescue-os
[Distribution]
Distribution=arch
[Content]
Autologin=true
Bootloader=none
KernelCommandLine=rw
Keymap=us
Locale=en_US.UTF-8
MakeInitrd=no
@thimslugga
thimslugga / get_docker_run.sh
Last active May 8, 2025 20:31
Get docker run for a container name or ID
#!/bin/bash
set -euo pipefail
# ./get_docker_run.sh c56975e847b4
# docker run -d -e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -v /root:/data public.ecr.aws/docker/library/amazonlinux:2023 /bin/bash
if [[ "$#" -ne 1 ]]; then
echo "Usage: $0 <container_name_or_id>"
exit 1
fi