Skip to content

Instantly share code, notes, and snippets.

View andrebrait's full-sized avatar

Andre Brait andrebrait

View GitHub Profile
@andrebrait
andrebrait / powertop.service
Created March 17, 2025 12:48 — forked from kikislater/powertop.service
powertop.service
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
@andrebrait
andrebrait / powertop_systemd_service.md
Last active July 17, 2025 04:54 — forked from abelardojarab/powertop_systemd_service.md
Create powertop systemd service
cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune

[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
@andrebrait
andrebrait / disable-nic-offload-e1000e.service
Last active May 13, 2025 17:08
Disable e1000e offloading for Proxmox VE and unRAID
# This prevents the freeze with the message 'e1000e eno1: Detected Hardware Unit Hang'
# >> Skip this file for unRAID, since it does not use systemd <<
# Put this file in /etc/systemd/system/disable-nic-offload-e1000e.service
# Then manually run it, 'systemctl start disable-nic-offload-e1000e'
# Check the output with 'systemctl status disable-nic-offload-e1000e'
# Then enable it with 'systemctl enable disable-nic-offload-e1000e'
@andrebrait
andrebrait / power.service
Last active October 23, 2025 02:42
Enable Power-saving features for Intel-based servers running Linux
# This enabled the power settings present in the script
# >> Skip this file for unRAID, since it does not use systemd <<
# Put this file in /etc/systemd/system/power.service
# Then manually run it, 'systemctl start power'
# Check the output with 'systemctl status power'
# Then enable it with 'systemctl enable power'
[Unit]