Skip to content

Instantly share code, notes, and snippets.

View aoqia194's full-sized avatar

aoqia194

  • Australia
  • 19:23 (UTC +11:00)
View GitHub Profile
@aoqia194
aoqia194 / pzexeconfig_installer.ps1
Created November 14, 2024 19:51
An installer for my other gist so lazy people can do it automatically!
$installPath = (Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Valve\Steam').InstallPath; $libraryPath = ($libraryFolders = -join (Get-Content "$installPath\config\libraryfolders.vdf")) -match '"(\d+)"\s*\{\s*"path"\s*"(.*?)"[^}]*"apps"\s*\{[^}]*"108600"' | Out-Null; $gamePath = "$($matches[2])/steamapps/common/ProjectZomboid"; Set-Location -Path $gamePath; Invoke-WebRequest -Uri "https://gist.githubusercontent.com/aoqia194/f93a6d9cdfd66388c46ada22d067b058/raw/27deb991f4f1e785b018b73d68f4c687e5270d10/ProjectZomboid64aoqia.json" -OutFile "$gamePath/ProjectZomboid64aoqia.json"
@aoqia194
aoqia194 / ProjectZomboid64aoqia.json
Created November 14, 2024 19:40
Project Zomboid modified launch config to remove memory limit and make it manged by JVM
{
"mainClass": "zombie/gameStates/MainScreenState",
"classpath": [
".",
"commons-compress-1.18.jar",
"istack-commons-runtime.jar",
"jassimp.jar",
"javacord-2.0.17-shaded.jar",
"javax.activation-api.jar",
"jaxb-api.jar",
@aoqia194
aoqia194 / mass-youtube-unsubscriber.js
Last active June 1, 2024 10:55
A really bad mass YouTube channel unsubscriber!
var i = 0;
var intval = setInterval(unsubscribeFromChannel, 1000);
function unsubscribeFromChannel() {
let gridContainer = document.getElementById("grid-container");
let channelShelf = gridContainer.getElementsByClassName("ytd-expanded-shelf-contents-renderer");
if (i < channelShelf.length) {
channelShelf[i].querySelector("[aria-label^='Current setting is ']").click();