Command Line

Script to Generate Kernel Panic

This is a good tool to use to test what event cascade when a server crashes. WARNING: USE AT YOUR OWN RISK echo c > /proc/sysrq-trigger WARNING: USE AT YOUR OWN RISK Source: https://unix.stackexchange.com/questions/66197/how-to-cause-kernel-panic-with-a-single-command

Watch a site in BASH

Introduction: A quick script to watch a website to see if it remains online. Checks every one second. This is different than doing a simple ping check as it actually takes a look at the site and returns a status code. This is especially useful if you want to make sure a site is up during a critical event. The ‘watch’ command is used to execute scripts or commands at a regular intervals.

Watch a site using Powershell

Introduction: A quick script to watch a website to see if it remains online. Checks every five seconds. This is different than doing a simple ping check as it actually takes a look at the site and returns a status code. This is especially useful if you want to make sure a site is up during a critical event. while ($true -eq $true) {curl DOMAIN_NAME.COM | findstr "RawContent"; sleep 5} Or