Skip to content

Instantly share code, notes, and snippets.

View spafrost's full-sized avatar

Simon Frost spafrost

View GitHub Profile
# Compare-IntunePolicyCSV.ps1
# Compares two "All_Intune_Policies_Combined.csv" files and generates a detailed difference report
# Version: 1.0
param(
[Parameter(Mandatory = $true, HelpMessage = "Path to the first (baseline) CSV file")]
[ValidateScript({Test-Path $_ -PathType Leaf})]
[string]$BaselineFile,
[Parameter(Mandatory = $true, HelpMessage = "Path to the second (comparison) CSV file")]
@spafrost
spafrost / ConvertIntune-ToCsv.ps1
Created September 30, 2025 16:40
A script that converts Intune Policies into CSV
# Convert-IntunePolicyToCSV.ps1
# Converts Intune exported policy JSON files to CSV format with all settings and attributes
# Version: 2.0 - No hardcoded paths, InputPath and OutputPath are now required parameters
param(
[Parameter(Mandatory = $true, HelpMessage = "Path to the directory containing Intune policy JSON files")]
[ValidateScript({Test-Path $_ -PathType Container})]
[string]$InputPath,
[Parameter(Mandatory = $true, HelpMessage = "Path to the directory where CSV files will be created")]
@spafrost
spafrost / adguard-newssites-2024.txt
Created November 6, 2024 12:02
AdBlock list for news site blocking
!
! Title: News Website Blocking List for AdGuard
! Description: As bigger list of news sites as I can find for when you want to tune out
! Version: 0.0.0.1
! Homepage:
! Last modified: 2024-11-06T12:00:02.446Z
!
! Initial List Sourced from: https://github.com/ercexpo/us-news-domains/blob/main/us-news-domains-v2.0.0.csv
!
!
@spafrost
spafrost / partial-printer.cfg
Created April 11, 2023 10:56
Original Ender 12864 LCD Screen w/ BTT E3 RRF Running Klipper
[display] # RET6 12864 LCD
lcd_type: st7920
cs_pin: PB1
sclk_pin: PE10
sid_pin: PE11
encoder_pins: ^PB2, ^PE7
click_pin: ^!PE9