This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
reboot_index=$(($(</var/run/reboot_index))) | |
reset-index(){ | |
echo 0 > /var/run/reboot_index | |
echo "$(date +'%Y-%m-%dT%H:%M:%S%z'): $1" >> /var/log/reboot_if_offline.log | |
} | |
if [ "$(find /var/run/reboot_index -mmin +1)" != "" ] && [ $reboot_index != 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
declare -A domains | |
domains['DOMAIN']='key' | |
domains['DOMAIN']='key' | |
domains['DOMAIN']='key' | |
domains['DOMAIN']='key' | |
rm /var/log/fancy_namecheap.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script allows you to run tasks with `dev.sh TASKNAME`. | |
# Create a function and assign the function to a desired argument. | |
# For example the function `run` can be executed with: | |
# `dev.sh run` or `dev.sh start` | |
# If no argument is provided it will show the available options and their | |
# description. | |
declare -A tasks |