Skip to content

Instantly share code, notes, and snippets.

View vix597's full-sized avatar
🎮

Sean LaPlante vix597

🎮
View GitHub Profile
@vix597
vix597 / godot_win_updater.py
Last active May 24, 2023 18:26
Automate updating Godot on Windows. Drag and drop onto python script. Does not require admin. Installs in user paths. Requires `pywin32`
"""
Script to automate the things I do literally every time a new version of Godot comes out
1. Extracts godot from the provided zip
2. Removes the old version in the install directory and puts the new one there
3. Removes the old start menu shortcut and adds a new one
"""
import os
import sys
import time
@vix597
vix597 / powercfg-lidaction.ps1
Last active July 8, 2022 12:26
Change laptop lid close action to "Do Nothing" when HDMI is connected
#
# Change a laptop's lid close action to "Do Nothing" for both AC and DC for the currently active power plan
# if an external display is connected via HDMI. If no HDMI is connected, set the close action to "Sleep" (default)
#
# Usage:
#
# ./powercfg-lidaction.ps1
#
# ./powercfg-lidaction.ps1 -Query
#