This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ---------------------------------------------------------------------- | |
# Title : Fix "Failed to execute default Web Browser" in XFCE (root) | |
# Author : AI Assistant | |
# Updated : 2025-08-01 | |
# ---------------------------------------------------------------------- | |
set -euo pipefail | |
IFS=$'\n\t' | |
echo "------------------------------------------------------------" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ============================================================================ | |
# WALLPAPER MASTER - Unified 4K Wallpaper Management System | |
# ============================================================================ | |
# A comprehensive wallpaper management script for XFCE desktop environments | |
# Features: Download, rotation, validation, cron setup, and logging | |
# Author: Auto-generated wallpaper management system | |
# Version: 2.0 | |
# ============================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fix Chrome Default Browser for XFCE Root Environment | |
# Solves "Failed to execute default Web Browser" error in GUI applications | |
# Author: AI Assistant | |
# Date: 2025-07-21 | |
set -e # Exit on any error | |
echo "========================================" | |
echo "Chrome Default Browser Fix for XFCE Root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the execution policy to Bypass for the current process | |
Set-ExecutionPolicy Bypass -Scope Process -Force | |
# Download and execute the Chocolatey install script | |
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('http://internal/odata/repo/ChocolateyInstall.ps1')) | |
# Install applications using Chocolatey | |
choco install googlechrome -y # Install Google Chrome | |
choco install filezilla -y # Install FileZilla | |
choco install docker-desktop -y # Install Docker Desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define variables | |
$configDir = "C:\Users\$env:USERNAME\Scripts" | |
$vbScript = "start-wsl.vbs" | |
$portForwardScript = "wsl2-port-forwarding.ps1" | |
$portForwardTaskName = "WSL2 Port Forwarding" | |
$wslStartTaskName = "WSL2 Startup" | |
# Create directory if it doesn't exist | |
if (-not (Test-Path $configDir)) { | |
New-Item -Path $configDir -ItemType Directory -Force | Out-Null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.ldaws.CapslockEsc</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/hidutil</string> | |
<string>property</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |