Skip to content

Instantly share code, notes, and snippets.

@helloavo
helloavo / PIAGatewaySetup.md
Last active May 6, 2026 18:37
Setup Linux server to act as a PIA VPN Gateway

Install Debian 11 and update

apt update && apt dist-upgrade -y && apt install libglib2.0-0 curl ufw -y

If the only account is root, create a new account

adduser pia-gateway
usermod -aG sudo pia-gateway
su pia-gateway
@helloavo
helloavo / snmpd.conf
Created June 7, 2023 17:34
Simple snmpd deployment on Debian
# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string
com2sec readonly default public
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
#Distro Detection
extend distro /usr/bin/distro
#Hardware Detection (uncomment to enable)
@helloavo
helloavo / BYPASSNRO.md
Last active June 28, 2023 15:40
bypass internet connection requirment to setup windows

Hit shift + f10 to open CMD window during the Windows setup, enter OOBE\BYPASSNRO and hit enter, system will restart. I don't have internet will appear. image

@helloavo
helloavo / gist:545c171cb094ea15878c4b4024b4775a
Created September 20, 2023 21:52
MBA 5,2 Wifi Fedora 38
sudo dnf update
sudo dnf install broadcom-wl kmod-wl akmods akmod-wl kmod-wl akmods akmod-wl
@helloavo
helloavo / gist:30d8eef9200726aea15e63c1d72b730b
Created September 25, 2023 12:54
Enable extra mice buttons in Virt-Manager Windows VM
Inside of Windows guest:
Launch Device Manager
Open the Mice and other pointing devices section
Right-click on PS/2 Compatible Mouse and select Update Driver
Select Browse my computer for driver software
Select the Let me pick from a list of available drivers on my computer option
Untick the Show compatible hardware checkbox
Select Microsoft (default) in the left pane, and then scroll until you find Microsoft PS/2 in the right pane
@helloavo
helloavo / gist:68f2b2ea36fe60c3af49b117df254627
Created December 22, 2023 12:40
Linux watch USB ejection
watch grep -e Dirty: -e Writeback: /proc/meminfo
@helloavo
helloavo / gist:2d4ac9ca5569c246ca790e3a250249b9
Created December 22, 2023 22:26
framework 13 amd 7840u kvm egpu passthrough gaming xml
<domain type="kvm">
<name>win11</name>
<uuid>72dd34e3-7751-4a81-bde4-152c988867c0</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/11"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">33554432</memory>
<currentMemory unit="KiB">33554432</currentMemory>
@helloavo
helloavo / CheckBIOS.ps1
Last active August 26, 2025 21:11
Powershell script to check the current BIOS version with a string version, returns "Match", works for SCCM
If ('TargetVer' -eq (Get-WmiObject -Class Win32_BIOS).SMBIOSBIOSVersion) {Write-Host("Match")}