Skip to content

Instantly share code, notes, and snippets.

View 0x00000024's full-sized avatar
🏠
Working from home

Ethan Yu 0x00000024

🏠
Working from home
View GitHub Profile
@0x00000024
0x00000024 / fix-chrome-default-browser-xfce-root.sh
Created August 1, 2025 05:43
Fix Chrome Default Browser for XFCE Root Environment - Solves Failed to execute default Web Browser error
#!/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 "------------------------------------------------------------"
@0x00000024
0x00000024 / wallpaper_master.sh
Created July 24, 2025 04:33
WALLPAPER MASTER - Unified 4K Wallpaper Management System for XFCE
#!/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
# ============================================================================
@0x00000024
0x00000024 / fix-chrome-default-browser-xfce-root.sh
Created July 21, 2025 05:37
Fix Chrome Default Browser for XFCE Root Environment - Solves "Failed to execute default Web Browser" error
#!/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"
@0x00000024
0x00000024 / InstallApps.ps1
Created November 4, 2024 04:41
InstallApps.ps1
# 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
# 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
@0x00000024
0x00000024 / com.ldaws.CapslockEsc.plist
Last active March 12, 2022 11:47 — forked from liamdawson/com.ldaws.CapslockEsc.plist
Caps Lock -> Esc on macos
<?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>
@0x00000024
0x00000024 / clean.sh
Created February 22, 2022 13:01 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/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