Skip to content

Instantly share code, notes, and snippets.

Reiikz / indexify
Created August 14, 2023 22:44
copies a file in its current dierectory to all subdirectories
# This script copies an index file to all of your site
# copy this file to the root of your website and pass it your index file you want prenset on all of your subdirectories
# IE:
# cp ~/indexify /srv/http/default
# cd /srv/http/default
# chmod +x ./indexify
# ./indexify ./index.php
# in this example you should see the output of -cp -v copying your /srv/http/default/index.php to all subdirectories
Reiikz / check
Last active December 10, 2023 21:48 — forked from a-c-t-i-n-i-u-m/
Dynamic DNS support shell script for
UPDATE_SCRIPT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/update
LOGGER_SCRIPT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/log
source $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/config
HOST_RESULT="$(host $freenom_domain_name"
DNS_IP=$(echo $HOST_RESULT | cut -d' ' -f 12)
CURR_IP="$(curl -s $GET_IP_URL)"