Skip to content

Instantly share code, notes, and snippets.

View peter9811's full-sized avatar
🏠
Working from home

Peter peter9811

🏠
Working from home
View GitHub Profile
@peter9811
peter9811 / add_to_steam_wishlist.js
Last active February 28, 2025 14:25
Code to Add (mass and automatic) Games (by gameIDs) to Steam Wishlist
// Your Steam game IDs
var gameIDs = [1549970, 440, 730]; // Replace with your game IDs
// Get the session ID from cookies
var sessionID = document.cookie.match(/sessionid=([^;]+)/)[1];
// Function to add games to the wishlist
async function addToWishlist(gameIDs) {
for (let i = 0; i < gameIDs.length; i++) {
let appID = gameIDs[i];
@peter9811
peter9811 / enable_high_performance_power_plan.bat
Last active February 28, 2025 14:28
Add High Performance power plan Windows 11
@echo off
:: Script to enable High Performance power plan
:: Works on Windows 10 and Windows 11
:: Run as Administrator
:: Set the High Performance power plan
powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
echo.
echo High Performance power plan has been enabled.
@peter9811
peter9811 / fix_organization_settings.bat
Last active February 28, 2025 14:23 — forked from ilovefreesw/reg.bat
A batch script for Windows to Fix "Some settings are managed by your organization". Works on Windows 10 and Windows 11.
@echo off
:: Script to remove "Some settings are managed by your organization" message
:: Works on Windows 10 and Windows 11
:: Run as Administrator
:: Delete registry keys from HKEY_CURRENT_USER
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f