Skip to content

Instantly share code, notes, and snippets.

View emilwojcik93's full-sized avatar
🎯
Focusing

Emil Wójcik emilwojcik93

🎯
Focusing
View GitHub Profile
@emilwojcik93
emilwojcik93 / winutil-proxmox-profile-utf8.json
Created January 10, 2026 14:23
WinUtil Proxmox Profile - Automated Windows Configuration
{
"WPFTweaks": [
"WPFTweaksTeredo",
"WPFTweaksWifi",
"WPFTweaksRazerBlock",
"WPFTweaksActivity",
"WPFTweaksDebloatAdobe",
"WPFTweaksStorage",
"WPFTweaksHiber",
"WPFTweaksDeBloat",
@emilwojcik93
emilwojcik93 / README.md
Last active December 29, 2025 14:31
Complete Google Chrome Uninstaller for Windows - Auto-elevates and removes all Chrome files, registry keys, and user data. Supports WhatIf mode for safe testing. Usage: irm URL | iex or with parameters: &([ScriptBlock]::Create((irm URL))) -WhatIf -Verbose

Uninstall-GoogleChrome.ps1

Complete Google Chrome removal script for Windows. Automatically elevates to administrator privileges, tries multiple uninstall methods (winget, native setup.exe, registry, WMI) with automatic fallback, then performs comprehensive cleanup of all residual files, registry keys, scheduled tasks, and user data.

Features

  • Multiple Uninstall Methods with automatic fallback chain:
    1. winget (Windows Package Manager) - Modern, recommended
    2. Native Chrome setup.exe - Direct Chrome uninstaller (uses Stack Overflow method)
  1. Registry UninstallString - Alternative approach
@emilwojcik93
emilwojcik93 / QUICK_START.md
Last active December 30, 2025 20:18
VideoCompressor - PowerShell video compression tool optimized for cloud storage

VideoCompressor - Quick Start Guide

GitHub Gist: https://gist.github.com/emilwojcik93/868fbc801667e65e334679fec62b6879

TLDR - Two Simple Commands

Step 1: Download script to profile directory

$profileDir = Split-Path $PROFILE -Parent; if(!(Test-Path $profileDir)){md $profileDir -Force}; iwr 'https://gist.githubusercontent.com/emilwojcik93/868fbc801667e65e334679fec62b6879/raw/VideoCompressor.ps1' -OutFile "$profileDir\VideoCompressor.ps1" -UseBasicParsing
@emilwojcik93
emilwojcik93 / Fix-WSLInterop.ps1
Last active October 13, 2025 23:03
Automatically detects and fixes WSL Interop naming conflict (WSLInterop-late vs WSLInterop) in Ubuntu-family distributions. Version 2.0 with clean console output, wslpath integration, and reliable service installation.
<#
.SYNOPSIS
Automatically detects and fixes WSL Interop naming conflict issue (WSLInterop-late vs WSLInterop) in Ubuntu-family WSL distributions.
.DESCRIPTION
This script identifies the systemd-binfmt vs wslu naming conflict in WSL Ubuntu-family distributions (Ubuntu 24.04+)
and automatically installs a permanent systemd service fix. Only works with Ubuntu/Debian-based distributions that use apt and systemd.
Issue: https://github.com/microsoft/WSL/issues/13449
@emilwojcik93
emilwojcik93 / Find-ExecutableAndSetPath.ps1
Last active July 11, 2025 11:56
Auto-find & add executables to PATH. Prioritizes WinGet locations, falls back to common Windows dirs. Handles duplicates, force override. No admin.
<#
.SYNOPSIS
WinGet Executable PATH Manager - Intelligent executable discovery and PATH configuration for Windows
.DESCRIPTION
This comprehensive PowerShell script provides automated executable discovery and PATH management
with intelligent priority-based searching. It systematically searches through WinGet registry entries,
WinGet filesystem locations, and common Windows installation directories to locate executables,
then manages Windows PATH entries with sophisticated conflict resolution and force override capabilities.
@emilwojcik93
emilwojcik93 / termux_display_resolution.sh
Last active September 1, 2025 18:10
This Termux script automatically detects and sets the optimal resolution for virtual displays based on connected external displays. It handles the entire process including dependency installation, ADB pairing/connection, external display detection, and resolution configuration.
#!/data/data/com.termux/files/usr/bin/env bash
# filepath: /data/data/com.termux/files/home/termux_display_resolution.sh
# Set Termux-specific paths
TERMUX_PREFIX="/data/data/com.termux/files/usr"
TERMUX_HOME="/data/data/com.termux/files/home"
TEMP_DIR="$TERMUX_HOME/.temp"
# Create temp directory if it doesn't exist
mkdir -p "$TEMP_DIR"
@emilwojcik93
emilwojcik93 / new-winutil.ps1
Last active March 1, 2025 23:50
new-winutil
################################################################################################################
### ###
### WARNING: This file is automatically generated DO NOT modify this file directly as it will be overwritten ###
### ###
################################################################################################################
<#
.NOTES
Author : Chris Titus @christitustech
Runspace Author: @DeveloperDurp
GitHub : https://github.com/ChrisTitusTech
@emilwojcik93
emilwojcik93 / admin-script.ps1
Last active March 1, 2025 12:39
admin-script
param (
[Parameter(Mandatory=$false)]
[string]$ExampleParam = "default",
[string[]]$StringArrayParam = @("default1", "default2"),
[int]$IntParam = 42,
[bool]$BoolParam = $true
)
@emilwojcik93
emilwojcik93 / JaKooLit_Ubuntu-Hyprland.sh
Created February 27, 2025 22:14
Script to run JaKooLit_Ubuntu-Hyprland
#!/bin/bash
# Check if the system is Ubuntu
if [[ -f /etc/os-release ]]; then
. /etc/os-release
if [[ "$ID" == "ubuntu" ]]; then
echo "Ubuntu detected: $PRETTY_NAME"
else
echo "This script is only for Ubuntu systems."
exit 1
@emilwojcik93
emilwojcik93 / Auto-Install-CertificatesInWSL.ps1
Last active December 3, 2025 13:02
The script searches for certificates with a specific description pattern. It exports each certificate, installs them in WSL, and checks the response using curl. If the response is not correct, it tries the next certificate from the results. If the list is done and WSL still responds with an incorrect answer, it throws an error.
#Requires -Version 5.1
<#
.SYNOPSIS
Universal Corporate Certificate Installer for WSL and Development Environments
.DESCRIPTION
A comprehensive, generic script for automatically installing corporate certificates
in WSL distributions and configuring development environments. Designed to work
across different corporate environments without containing sensitive data.