Skip to content

Instantly share code, notes, and snippets.

@BladeWDR
BladeWDR / Disable-BrowserNotifications.ps1
Last active August 26, 2025 18:24
Disable-BrowserNotifications.ps1
<#
.SYNOPSIS
Disables desktop notifications for major browsers
.DESCRIPTION
This script creates registry entries to disable desktop notifications for Chrome and Edge.
Works on both domain and non-domain Windows machines
.NOTES
Run as Administrator for HKLM registry modifications
#>
@BladeWDR
BladeWDR / HP-Debloater.ps1
Created August 15, 2025 20:23
HP Bloatware remover
<#
.DESCRIPTION Removes HP bloatware.
#>
# Get list of HP applications from both registry locations
$Apps = @()
$Apps += Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object { $_.DisplayName -like "*HP*" } # 32 Bit
$Apps += Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object { $_.DisplayName -like "*HP*" } # 64 Bit
# Filter out null DisplayName entries, duplicates, and drivers
@BladeWDR
BladeWDR / Update-Winrar.ps1
Created August 15, 2025 14:48
winrar upgrade script
<#
.DESCRIPTION Detects if WinRar is installed and upgrades to 7.13 if needed. Written to address CVE-2025-8088.
#>
function Update-Winrar
{
if (-not (Test-Path -Path "$TempDir"))
{
New-Item -Path "$TempDir" -PathType Directory
}
@BladeWDR
BladeWDR / Disable-Recall.ps1
Created July 31, 2025 15:38
Powershell script to disable Windows Recall
# Registry values to set to prevent Recall from renabling itself.
$RecallRegistryValues = @(
[pscustomobject]@{
Path="HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI"
Name="DisableAIDataAnalysis"
Type="DWord"
Value="1"
}
[pscustomobject]@{
Path="HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI"
@BladeWDR
BladeWDR / docker-compose.yml
Created January 7, 2025 02:04
SearXNG docker stack
networks:
proxy:
external: true
# description: Self-hosted metasearch engine
# https://github.com/searxng/searxng-docker
# Copy the settings template in etc/searxng and save it as settings.yml in the same directory.
# Make sure you change the secret key.
services:
@BladeWDR
BladeWDR / fedora-setup.sh
Created December 8, 2024 21:36
Fedora setup script for SwayWM
#!/usr/bin/env bash
# Fedora installation helper script.
# I tend to build these from the server installer for a cleaner system
# So there's quite a few packages missing.
set -eou pipefail
# vars
# Various packages
@BladeWDR
BladeWDR / ansible-edit-sources.yml
Created December 7, 2024 01:53
An Ansible version of Apalrd's rewrite.sh :)
---
- name: Edit the sources files on Debian and Ubuntu hosts to use our local caching webserver.
hosts: all
vars:
internal_cache_server_name: http://deb.test.xyz
# Original repo name we need to match on the left, the path in your nginx webserver on the right.
original_repo_targets:
http://archive.ubuntu.com/ubuntu: ubuntu
@BladeWDR
BladeWDR / Disable-Recall.ps1
Created October 21, 2024 18:55
Disable Recall Powershell script
$TempDir = 'C:\Temp'
if(-not (Test-Path -Path "$TempDir" -PathType Container)){
New-Item -Path "$TempDir" -ItemType Directory
}
Start-Transcript -Path "$TempDir\Disable-Recall-Scheduled-Task.log" -Force
$WindowsDisplayVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DisplayVersion
@BladeWDR
BladeWDR / install-lazygit.yml
Created June 8, 2024 14:21
Ansible Playbook to install lazygit on localhost.
---
- name: Install Lazygit
hosts: localhost
connection: local
become: true
tasks:
- name: Get the latest Lazygit version
ansible.builtin.uri:
url: https://api.github.com/repos/jesseduffield/lazygit/releases/latest