Skip to content

Instantly share code, notes, and snippets.

# Script to automatically remove "appleprecisiontrackpadbluetooth.inf" and "appleprecisiontrackpadusb.inf".
# Get installed drivers with pnputil and include previous line (the published name)
$drivers = (pnputil /enum-drivers | Select-String -Pattern "appleprecisiontrackpadbluetooth.inf|appleprecisiontrackpadusb.inf" -Context 1,0)
# Sanity check the results
switch ($drivers.Count) {
0 {Write-Host "No drivers found, exiting"; pause; exit}
1 {Write-Host "Only one driver found, are you sure you want to continue?"; Read-Host "Press any key to continue, or Ctrl+C to abort"; Write-Host "Continuing"}
2 {Write-Host "Two drivers found, continuing"}
@WinkelCode
WinkelCode / example.conf
Created December 2, 2021 05:53
My Example WireGuard Config
[Interface]
Address = 10.0.0.1/24
PrivateKey =
ListenPort =
PreUp = iptables -w -P FORWARD DROP; iptables -w -A FORWARD -i %i -o %i -j ACCEPT; echo 1 > /proc/sys/net/ipv4/ip_forward
PostDown = echo 0 > /proc/sys/net/ipv4/ip_forward; iptables -w -D FORWARD -i %i -o %i -j ACCEPT; iptables -w -P FORWARD ACCEPT
[Peer]
PublicKey =
PresharedKey =