Skip to content

Instantly share code, notes, and snippets.

View hl2guide's full-sized avatar
🫒
stuck in a for loop

Dean hl2guide

🫒
stuck in a for loop
  • Australia
View GitHub Profile
@hl2guide
hl2guide / clear_temp_files.ps1
Created May 6, 2026 16:26
Clears temp files in Windows 11. Close all running apps before running it.
# Clears the Windows temp folder (current)
$TempFolder = "$env:TEMP"
Remove-Item -Path "$TempFolder\*" -Recurse -Force `
-ErrorAction SilentlyContinue
Write-Host
Write-Host "Cleared temp folders in: $env:TEMP" -ForegroundColor Cyan
Write-Host
@hl2guide
hl2guide / Remove-Lame-Windows11-Apps.ps1
Created May 6, 2026 16:24
Removes lame apps in a fresh new install of Windows 11. Run in PowerShell 7.
Get-AppxPackage *Clipchamp* | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage
Get-AppxPackage MSTeams | Remove-AppxPackage
Get-AppxPackage Microsoft.Todos | Remove-AppxPackage
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage Microsoft.OutlookForWindows | Remove-AppxPackage
Get-AppxPackage Microsoft.YourPhone | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
Get-AppxPackage *Microsoft.GamingApp* | Remove-AppxPackage
@hl2guide
hl2guide / mpv.conf
Last active November 23, 2025 10:54
MPV config file for Windows 11 in 2025 (https://mpv.io/)
# MPV v3 Config - version 1.5
# Date: 2025-05-08 16:14:44 +1000
# REF: https://github.com/Argon-/mpv-config/blob/master/mpv.conf
# REF: https://github.com/Zabooby/mpv-config
# REF: https://gist.github.com/igv
# ===== SEEKING =====
@hl2guide
hl2guide / whitelist.txt
Last active December 21, 2024 10:37
whitelist for AdGuard
! Title: DirectWhiteList (testing) ✅
! Description: Testing adblock rules for 2025.
! Expires: 1 hour
! Version: 0.1
@@||twitch.tv
@@||assets.twitch.tv
@@||myip.wtf
@hl2guide
hl2guide / blocklist.txt
Last active December 22, 2024 01:08
Testing an adblock list (tested in uBlock Origin).
! Title: DirectBlockList (testing) 🤚
! Description: Testing adblock rules for 2025.
! Expires: 1 hour
! Version: 0.1
! Homepage: https://gist.github.com/hl2guide/439e342257cdf5ac7d8295d2a858a63d
! Blocks unusual TLDs
||AAA^$document
||AARP^$document
||ABB^$document
@hl2guide
hl2guide / docker-compose.yml
Created October 3, 2024 15:50
Example Docker Compose file for AdGuard Home (official: https://hub.docker.com/r/adguard/adguardhome).
# Docker AdGuard Home
services:
adguardhome:
container_name: adguardhome
image: adguard/adguardhome:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "68:68/udp"
@hl2guide
hl2guide / autoinstall.yaml
Last active September 26, 2024 05:20
Ubuntu AutoInstall Example
#cloud-config
autoinstall:
version: 1
source:
id: ubuntu-desktop-minimal
locale: en_AU.UTF-8
keyboard:
layout: us
timezone: Australia/Sydney
@hl2guide
hl2guide / ublock_origin_custom_filters.txt
Last active September 18, 2024 03:38
Custom Adblock List for private items (github). Use in Adblock Origin.
[Adblock Plus 2.0]
! Title: 😍 Deanoman's Custom Adblock List
! Description: A custom adblock list for use in Adblock Origin and similar.
! Last Modified: 2024-09-18 13:38:06 +1000
! Version: 1.0.0.0
! Expires: 2 days (update frequency)
! Licence: MIT
! Source: https://gist.github.com/hl2guide/d0b7b57e1c150a28a93f0aa451264146
! Source RAW: https://gist.githubusercontent.com/hl2guide/d0b7b57e1c150a28a93f0aa451264146/raw/78bd68eefec1b00e299fa2ab75c5cfccde0842ae/ublock_origin_custom_filters.txt
@hl2guide
hl2guide / pc_game_crash_fix.md
Last active February 14, 2024 09:13
A fix for PC game crashes where no error message shows, for Windows 11.

Game crashes with no Error Reporting or Error Code Message on Windows 11

If you have a modern PC with Windows 11 installed these steps may help.

GPU and CPU Heat

First check that neither your GPU or CPU is overheating at the time of crashing.

Secondly check that no process is running in the background hogging the CPU or GPU resources.

@hl2guide
hl2guide / remove_ms_store_apps.ps1
Created January 19, 2024 06:24
Removes Microsoft Store apps that are not needed or are security risks for most people. Must be run as Admin in PowerShell 7 or later.
# Removes Microsoft Store apps that are not needed or are security risks for most people.
# Must be run as Admin in PowerShell 7 or later.
$packageName = ''
function Remove-MSStoreApp()
{
Param($Name)
$packageName = Get-AppxPackage -Name $Name | `