Skip to content

Instantly share code, notes, and snippets.

@si458
si458 / doc.md
Created September 22, 2024 16:46 — forked from willglynn/doc.md
Change SMBIOS UUID on AMI firmware PCs

PCs have SMBIOS data containing small amount of identifying information. One piece of information in this SMBIOS data is the universally unique identifier. Some PC and motherboard manufacturers fail to set this, often leaving the UUID set to 03000200-0400-0500-0006-000700080009.

If your system uses an AMI firmware (sometimes called AMIBIOS), you may be able to use AMI utilities to reset the UUID. Obtain AMIDEEFIx86.efi and an EFI shell executable, such as from inside m1ujt73usa.zip for the Lenovo ThinkStation P330 Tiny download center.

Once you have those two files, create USB drive with the FAT32 filesystem and the following structure:

\
  \AMIDEEFIx86.efi
  \efi
@si458
si458 / passwords.php
Created May 26, 2025 08:57
Get Plesk Passwords From Database
<?php
// Configuration
$config = [
'server' => 'localhost',
'username' => 'admin',
'password' => trim(file_get_contents("/etc/psa/.psa.shadow")),
'key' => file_get_contents("/etc/psa/private/secret_key"),
'database' => 'psa'
];
@si458
si458 / netbird_install_jetkvm.sh
Last active July 18, 2026 16:51
Netbird Install on JetKVM
#!/bin/sh
set -eu
main() {
# Fetch latest version using wget instead of curl
NETBIRD_LATEST=$(wget -qO- https://api.github.com/repos/netbirdio/netbird/releases/latest | sed -n 's/.*"tag_name": "v\([^"]*\)".*/\1/p' | head -n1)
REQUESTED_VERSION=""
SETUP_KEY=""
AUTO_YES=false
CLEAN_INSTALL=false
@si458
si458 / fixsmartctl
Created September 12, 2026 09:00
Fix smartctl for HP Raid Controllers and Proxmox
#!/bin/bash
echo "=== Step 1: Moving original smartctl ==="
mv /usr/sbin/smartctl /usr/sbin/smartctl.orig
echo "Done."
echo ""
echo "=== Step 2: Creating wrapper script ==="
cat > /usr/sbin/smartctl << 'EOF'
#!/bin/bash