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
#!/bin/bash | |
# Fetch public IP address using dig and OpenDNS resolver | |
ip_address=$(dig +short myip.opendns.com @resolver1.opendns.com) | |
# Print the public IP address | |
echo "Your public IP address is: $ip_address" | |
# Save this script in a file, for example, get_public_ip.sh. Make it executable using the following command: chmod +x get_public_ip.sh |
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/perl | |
######################################################################################## | |
# Just fix the code in this file to checking CSF service edit and update from sysbitnet | |
######################################################################################## | |
# Copyright 2006-2018, Way to the Web Limited | |
# URL: http://www.configserver.com | |
# Email: sales@waytotheweb.com | |
############################################################################### | |
## no critic (ProhibitBarewordFileHandles, ProhibitExplicitReturnUndef, ProhibitMixedBooleanOperators, RequireBriefOpen) | |
# start main |