Skip to content

Instantly share code, notes, and snippets.

View mrEckendonk's full-sized avatar
🎯
if (drinkCoffee){code();}

Mike van Eckendonk mrEckendonk

🎯
if (drinkCoffee){code();}
View GitHub Profile
@mrEckendonk
mrEckendonk / gist:59e7172b2dba1362aac7455a5829c44c
Created June 26, 2025 12:30
Local Development Create Apache Site - WordPress - Remove - Fedora tested. (tailscale not yet completed)
#!/bin/bash
# Configuration
RECORD_FILE="/root/.site_manager_records"
DB_ROOT_USER="root"
DB_ROOT_PASS="" # Leave empty if no password
TAILSCALE_TAILNET="banded-arctic.ts.net"
SERVE_RECORD="/root/.tailscale_serve_status"
# Check for root privileges
@mrEckendonk
mrEckendonk / gist:7792f6441d9e9d60128ffb72ee74cf8b
Created April 4, 2025 12:33
Bitninja Add Ssl Termination OLS
#!/bin/bash
# Configuration
SSL_DIR="/var/local/enhance/website_ssl"
BITNINJA_CMD="bitninjacli --module=SslTerminating --add-cert"
# Find and process domains
find "${SSL_DIR}" -maxdepth 1 -type f -name "*.cert" | while read -r cert_file; do
# Extract domain name from certificate filename
domain=$(basename "${cert_file}" .cert)