Skip to content

Instantly share code, notes, and snippets.

View voxsar's full-sized avatar
🎯
Focusing

Miyuru Sangith Dharmage voxsar

🎯
Focusing
View GitHub Profile
@voxsar
voxsar / add-mdns-host.sh
Last active June 6, 2025 05:52
A set of code for a raspberry pi that will provision a laravel or wp site (using wp cli). It will also connect to github create a repo, it will create a laravel with spatie backups and laravel filament preinstalled
#!/bin/bash
HOSTS_FILE="/etc/avahi/mdns-hosts.txt"
if [ $# -ne 2 ]; then
echo "Usage: $0 <hostname-without-local> <ip>"
exit 1
fi
hostname=$1