If you want to provide authentication for your App Service without writing a single line of code, you can turn on the Authentication in App Service configuration. When you turn on this option, Azure will verify the users before sending the traffic to the application. There is a challenge when it comes to monitoring, if our monitoring tool can’t pass this authentication, we’ll not be able to monitor this application. There are many case the application is not working, but Azure still ask the user to login before seeing the errors. Here is a simple script that can authenticate using a principal account.Read More →

The Oil Pressure Switch is designed to detect any issues with your car’s oil system. Many online videos and posts only show one type of switch—the normally closed (NC) type—but in reality, there are two types: Normally Open (NO) Switch: Closes the circuit when oil pressure is low, turning on the warning light. Normally Closed (NC) Switch: Opens the circuit when oil pressure is low. The challenge is that you might not know which type is installed in your car. That’s why it’s important to test both scenarios: a normal test and a test using an air blow. If you see the switch status changeRead More →

#!/bin/bash# URL of Apache server-statusSTATUS_URL=”http://localhost/server-status?auto”# Get current number of busy workersHTML_STATUS_FILE=”/tmp/cron_html_status.html”curl -s “$STATUS_URL” > “$HTML_STATUS_FILE”BUSY_WORKERS=$(cat “$HTML_STATUS_FILE” | grep “BusyWorkers” | awk ‘{print $2}’)# Restart Apache if busy workers exceed thresholdTHRESHOLD=200if [ “$BUSY_WORKERS” -gt “$THRESHOLD” ]; then MESSAGE=”$(date): Restarting Apache – BusyWorkers = $BUSY_WORKERS” echo “$MESSAGE” >> /var/log/apache_monitor.log cp “$HTML_STATUS_FILE” “/var/log/apache_monitor_html_$(date).log” curl -s “http://localhost/server-status” > “$HTML_STATUS_FILE”.”$(date ‘+%Y-%m-%d-%H-%M-%S’).html” logger -t apache_monitor “$MESSAGE” systemctl restart apache2fiRead More →

Initializing n8n process n8n webserver failed, exiting The fix is to add this line -e N8N_LISTEN_ADDRESS=0.0.0.0 In my case, the problem was that IPv6 was disabled in my kernel. Since at least version 1.107.4, the default listen address is ::. sudo docker run -it –rm \ –name n8n \ -e GENERIC_TIMEZONE=”America/New_York” \ -e TZ=”America/New_York” \ -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \ -e N8N_RUNNERS_ENABLED=true \ -e N28N_SECURE_COOKIE=false \ -e N8N_METRICS=true \ -e N8N_LISTEN_ADDRESS=0.0.0.0 \ -e QUEUE_HEALTH_CHECK_ACTIVE=true \ -v ./n8n_data:/home/node/.n8n \ docker.n8n.io/n8nio/n8nRead More →

I recently bought a Honda H3001 riding mower, it was sold for parts. I have tried to fix everything, but the most challenges for me is the deck belt. I bought 2 deck belt and i could not install it in the first place because none of them fit perfectly. They are all 5/8in x 72, after many tries, days, this is what i figured out.Read More →

I recently picked up an older HP 880 gaming desktop and noticed something odd: it came with a 32GB NVMe drive pre-installed, and no other storage device was present. Naturally, I tried installing Windows directly onto the 32GB NVMe, but the installer couldn’t detect it at all. That was my first clue something was off. To proceed, I installed a standard hard drive and successfully installed Windows there. Interestingly, during the installation process, the system still didn’t show the 32GB NVMe as a usable drive. So what’s that mysterious 32GB module actually doing? That’s when I noticed something impressive—this system boots incredibly fast. I’m aRead More →