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
Check Links | |
wget --spider -r -nd -nv -H -l 1 -w 2 -o run1.log http://someserver.com | |
Parse logfile for 404s | |
grep -B1 'broken link!' run1.log | |
Need to see where 404 referrers are? | |
grep Wget /var/log/apache2/access.log | grep "HEAD /badlink1" |
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 | |
/** | |
* File Name: CourseOrgCriteria.php / lms-laravel | |
* By: Lucas Choate (twitter: @lchoate) | |
* Date: 10/18/16 | |
* Time: 1:41 PM | |
*/ | |
namespace Modules\Course\Criteria; |
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 | |
$worked = false; | |
$GLOBALS['from'] = "My devices <devices@myhouse.com>"; | |
$GLOBALS['toEmail'] = "me <me@address.com>"; | |
$GLOBALS['subject'] = "Home Automation Message"; | |
$validDeviceIPs = ['192.168.0.110','192.168.1.109']; | |
/** | |
* @param $device |