AKZN Notes

Archives for My Lazy and Forgetful Mind

Archives

How to Make Vite Build Work on Filament Page

How to Make Vite Build Work on Filament Page Context: Filament 3 + Laravel 12 + Vite Difficulty: Beginner Prerequisites: Laravel 12, Filament 3, Vite configured if this article here still cant make vite build used on filament 3. try follow this steps Overview When you want to use custom CSS/JS assets (built with Vite) […]

Repair Git Broken Object / EntryNotFound (WSL / VS Code)

✅ Repair Git Broken Object / EntryNotFound (WSL / VS Code) 1️⃣ Backup working tree tar czf /tmp/repo-backup.tar.gz . 2️⃣ Fetch remote state git fetch origin 3️⃣ Create clean branch from remote git checkout -B recoverBranch origin/main 4️⃣ Restore file content from broken branch git checkout main — . Copies tracked files only. (tar restore […]

Setting Persistent IPv4 DNS for Ubuntu 20.xx

Prefer IPv4 for DNS & Connections on Ubuntu (Keep IPv6 Enabled) On Ubuntu 20.04+, systemd-resolved and the network stack prefer IPv6 when it’s available. Even if you set IPv4 DNS, connections may still use IPv6 (AAAA records). This guide keeps IPv6 enabled, but makes Ubuntu prefer IPv4 for DNS and connections. 🎯 Goal Keep IPv6 […]

Deploying Web App with Docker + Apache Reverse Proxy

Deploying Web App with Docker + Apache Reverse Proxy 1) Apache as Reverse Proxy Use Apache on host to forward traffic to Docker containers. Key points: ProxyPreserveHost On RequestHeader set X-Forwarded-Proto "https" These keep the real domain instead of 127.0.0.1 inside Docker. Example: ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ 2) Enable Required Apache Modules sudo […]

Fixing Expo + npm ERR_INVALID_URL and Permission Issues on WSL

Fixing Expo + npm ERR_INVALID_URL and Permission Issues on WSL Problem Summary When running Expo inside WSL, npm errors appear such as: ERR_INVALID_URL expo: Permission denied Cause: Windows Node/NPM is being used inside WSL, and Windows-mounted paths block Linux permissions. Fix Instructions 1. Use WSL Terminal Open your Linux shell (Ubuntu app) instead of PowerShell/CMD. […]

Filament and vite integration

Integrating Filament 4 with Vite this article maybe incomplete because this information is compiled from my memory debugging my project. But the core information is here. I will add more when i stumbled accross this problem again on next project Filament 4 uses Laravel’s modern frontend tooling, and you can integrate it with Vite for […]

Running Qwen Code in a Sidecar Docker Container

Running Qwen Code in a Sidecar Docker Container 1. Why Sidecar? Instead of installing Qwen Code on your host, you can run it in its own container. Keeps API keys out of your project repo. Only shares your project folder via a bind mount. Works across different projects. 2. Dockerfile Create a Dockerfile for Qwen […]

Camouflaging MikroTik from ISP

Camouflaging MikroTik from ISP Goal Reduce ISP visibility that the connected device is a MikroTik by masking: System identity DHCP client hostname WAN (ether1) MAC address Blocking management ports on WAN Firewall Rule Drop MikroTik management ports from WAN (ether1): /ip firewall filter add chain=input in-interface=ether1 protocol=tcp port=8291,8728,8729 action=drop comment="Block Mikrotik management from ISP side" […]

Batch resize image on windows 11 using powershell

This script below work as resize all image with jpg, jpeg, JPG, JPEG extension inside folder and subfolder save the result into ‘web’ folder at same folder as this script make file with ps1 extension Add-Type -AssemblyName System.Drawing $w = 300 $h = 400 $quality = 70 # JPEG quality 0–100 $root = Get-Location $outDir […]

iPerf3 on Windows 11 with Docker

# iPerf3 on Windows 11 with Docker This guide explains how to install Docker Desktop on Windows 11, run iPerf3 for network performance testing, and use a single .bat script for quick local, remote, and dual-direction tests. — ## 1. Install Docker Desktop 1. Download Docker Desktop: – [https://www.docker.com/products/docker-desktop/](https://www.docker.com/products/docker-desktop/) 2. Install it with **WSL 2 […]