Skip to content

Instantly share code, notes, and snippets.

@ewagner12
ewagner12 / eppSetup.sh
Created May 7, 2023 21:31
Small script to set CPU EPP (tested on amd-pstate-epp)
#!/bin/bash
# path to relevant sysfs parameters
eppPath=/sys/devices/system/cpu/cpufreq
# read available EPP profiles from cpu0
if [ -e "$eppPath"/policy0/energy_performance_available_preferences ]; then
availableEPP=$(sed -e 's/ *$//' -e 's/ /|/g' <<<$(cat "$eppPath"/policy0/energy_performance_available_preferences))
else
echo "EPP parameters not found. Check if scaling governor supports EPP and if eppPath in script is correct"
@ewagner12
ewagner12 / Fedora35Hibernation.md
Last active September 1, 2025 03:03 — forked from eloylp/Fedora35Hibernation.md
Fedora 37 Silverblue/Kinoite hibernation with swapfile, only for hibernation and resume

Fedora37 Silverblue/Kinoite hibernation

This guide helps to configure the hibernation on an ostree (Silverble/Kinoite) Fedora37 (also worked fine in previous Fedora34) installation by using a swap file. The Fedora37 installation comes with btrfs as default filesystem. Also, it comes with a zram swap device:

$ swapon
NAME       TYPE      SIZE USED PRIO
/dev/zram0 partition   8G   0B  100
@ewagner12
ewagner12 / nmwg-moz
Created September 17, 2022 19:34
Simple setup script for Mozilla VPN on Linux using mozwire and nmcli
#!/bin/bash
# Run this script with mozwire installed in your PATH
# Change this CONF_NAME to whichever VPN server you want to connect to
CONF_NAME=us10-wireguard
CONF_DIR=~/wireguard
CONF_FILE="$CONF_DIR"/"$CONF_NAME".conf
setup() {
# Create Wireguard config files (using MozWire) in CONF_DIR