Skip to content

Instantly share code, notes, and snippets.

View lchoate's full-sized avatar

Lucas Choate lchoate

View GitHub Profile
@lchoate
lchoate / check_links.gist
Last active June 2, 2022 00:48
Use wget to find bad links, 404's in html
@lchoate
lchoate / CourseOrgCriteria.php
Created December 7, 2017 00:24
Filter your records based on a users organization.
<?php
/**
* File Name: CourseOrgCriteria.php / lms-laravel
* By: Lucas Choate (twitter: @lchoate)
* Date: 10/18/16
* Time: 1:41 PM
*/
namespace Modules\Course\Criteria;
@lchoate
lchoate / automate_something.php
Created January 9, 2017 21:31
Trying to automate something and understand globals
<?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