Skip to content

Instantly share code, notes, and snippets.

View shgysk8zer0's full-sized avatar
💭
I may be slow to respond.

Chris Zuber shgysk8zer0

💭
I may be slow to respond.
View GitHub Profile
@shgysk8zer0
shgysk8zer0 / email.class.php
Last active May 16, 2018 04:54
PHP Email Class
<?php
/**
* Simple PHP mail class using mail()
*
* Strips, converts, etc. Automatically sets required headers. Takes most
* of the work out of the coding side of writing emails.
*
* You should verify that you have an email service installed.
* On Ubuntu, I use ssmtp (see link for manpage)
*
@shgysk8zer0
shgysk8zer0 / github.json
Last active August 29, 2015 14:10
PHP class and usage for GitHub Webooks
{
"secret": "Secret set when creating Web Hook"
}
@shgysk8zer0
shgysk8zer0 / pdo_connect.php
Created September 3, 2014 07:09
Extend PDO to connect via an object, array, or ini file. Adds methods to backup/restore database
<?php
/**
* Wrapper for standard PDO class.
*
* This class is meant only to be extended and
* not used directly. It offers only a protected
* __construct method and a public escape.
*
* @author Chris Zuber <[email protected]>
* @copyright 2014, Chris Zuber