This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\WINDOWS\System32\schtasks.exe /CREATE /RU "NT AUTHORITY\LOCAL SERVICE" /SC ONEVENT /EC "Microsoft-Windows-NetworkProfile/Operational" /MO "*[System[Provider[@Name='Microsoft-Windows-NetworkProfile'] and EventID=10000]]" /TN "Update Time When Connected to Internet" /TR "C:\WINDOWS\System32\w32tm.exe /resync /force" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Goto https://simpledns.com/private-ipv6 | |
2. Use the 'Combined/CID' for the WireGuard settings (everything before the '/64' starting with 'fd' and ending with '::') | |
3. Example WireGuard 'server' settings (replace all sections that begin with '<' and end with '>') | |
[Interface] | |
ListenPort = 51820 | |
PrivateKey = <SERVER_PRIVATE_KEY> | |
Address = 192.168.99.1/24, <IPV6_CID>1/64 | |
[Peer] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /sys/fs/cgroup -depth -name ${OBJECT}* -type d -print -exec bash -c "cd {}/.. ; mkdir -p {}/bar ; find $(basename {}) -depth -type d -exec rmdir \{\} \;" \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable Commercial Repo | |
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list | |
apt-get update | |
# Add PVE Community Repo | |
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list | |
apt-get update | |
# Remove nag | |
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/vbash | |
# Update the network groups for Google | |
PROGNAME=$(basename $0) | |
HOST=$(which host) | |
DNS_RECORD="_spf.google.com" | |
DNS_RESOLVER="8.8.8.8" | |
SED=$(which sed) | |
SED_SCRIPT_HOSTS='$!d;s/[^"]*"v=spf1 \([^"]*\)~all".*/\1/' | |
SED_SCRIPT_LOOKUPS="${SED_SCRIPT_HOSTS};s/[^ ]*include:\([^ ]\+\)[$]*/\1/g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$MCNewDisplayName = Read-Host -Prompt 'Enter the displayName you want to use with Minecraft' | |
$MCLauncherPath = "${env:APPDATA}\.minecraft\launcher_profiles.json" | |
function Out-MCLauncherProfiles ([string]$displayName) | |
{ | |
$MCProfiles.authenticationDatabase.$MCUser.displayName = $displayName | |
$MCProfiles | ConvertTo-Json | Out-File $MCLauncherPath -Encoding ascii | |
} | |
function Start-MCLauncher | |
{ | |
Start-Process ${env:ProgramFiles(x86)}\Minecraft\MinecraftLauncher.exe -Wait True |