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
// Eric Draken, 2022, ericdraken.com | |
// Quick Web App script to auto-number paragraphs in a patent application in Google Docs. | |
// This will re-number paragraphs in order when run again. | |
// | |
// Before: | |
// HEADER | |
// Some fany words | |
// HEADER | |
// More fancy words | |
// Even more fany words |
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
<?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(); |