Skip to content

Instantly share code, notes, and snippets.

View Crindigo's full-sized avatar

Steven Crindigo

  • Indiven LLC
  • Michigan
View GitHub Profile
@Crindigo
Crindigo / local.cf
Last active August 29, 2015 14:19
my spamassassin rules
score HTML_FONT_LOW_CONTRAST 2.0
uri LOCAL_STUPID_TLD /\.(ninja|science|cricket|space|work)(\/|\?|$)/
score LOCAL_STUPID_TLD 2.0
body LOCAL_STUPID_TLD2 /\.(ninja|science|cricket|space|work)(\/|\?|\b)/
score LOCAL_STUPID_TLD2 7.0
body LOCAL_RANDOM_HEX /[A-Za-z]\.\s*[0-9a-f]{32}/
score LOCAL_RANDOM_HEX 3.0
@Crindigo
Crindigo / bccalc.php
Created June 19, 2011 01:09
Arbitrary-precision expression calculation w/ PHP & BCMath
<?php
/**
* bccalc
*
* @author Steven Harris
* @license MIT
*/
/**
<?php
/**
* Old ass image class. Originally written in July/August 2006, may or may not work.
*
* 6/7/2010
* Started converting old weird comment style to PHPDoc, discovered it took too long, quit.
* Replaced Omega Engine error handling with simple throw new Exception().
*
* @author Steven Harris