Skip to content

Instantly share code, notes, and snippets.

View wojtekadams's full-sized avatar
👻

wojtekadams wojtekadams

👻
View GitHub Profile
@wojtekadams
wojtekadams / proxmox_shutdown.sh
Last active July 11, 2025 05:52
Proxmox - script that shuts down VMs and Containers before the hypervisor is shut down
#!/bin/bash
# get list of VMs and LXCs on the node
VMIDs=$(/usr/sbin/qm list | tail -n +2 | awk '/[0-9]/ {print $1}')
LXCs=$(/usr/bin/lxc-ls)
# ask LXCs to stop
for LXC in $LXCs
do
/usr/bin/lxc-stop $LXC
@wojtekadams
wojtekadams / kde-konsole-tab-colours.css
Last active February 13, 2018 11:46 — forked from codemedic/konsole-with-palette-colours.css
CSS for KDE Konsole minimal, lighter, dark tabs
QTabBar,
QTabBar::tab
{
/* font-size: 11px;*/
/* height: 16px; */
padding: 2px;
border: 0px;
border-bottom: 3px solid palette(dark);
background-color: palette(dark);
color: palette(text);