This file contains 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 | |
. .env | |
# Used from .env | |
# PASSWD: The postgres password | |
# Set up Guacd | |
echo Creating guacd container... | |
docker run -d \ |
This file contains 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
<?php | |
// Grab the IP address | |
// This is the fastest method I've found so far | |
$ip = system('dig +short myip.opendns.com @resolver1.opendns.com'); | |
// For cron logs | |
print "New IP is: " . $ip; | |
$ch = curl_init(); |