Skip to content

Instantly share code, notes, and snippets.

@mdarse
mdarse / junkmail.php
Created August 22, 2012 02:51 — forked from maximevalette/junkmail.php
Détecter les adresses junkmail
<?php
function junkMail($mail) {
$domains = array('pjjkp.com', 'ephemail.com', 'ephemail.org', 'ephemail.net', 'jetable.org', 'jetable.net', 'jetable.com', 'yopmail.com', 'haltospam.com', 'tempinbox.com', 'brefemail.com', '0-mail.com', 'link2mail.net', 'mailexpire.com', 'kasmail.com', 'spambox.info', 'mytrashmail.com', 'mailinator.com', 'dontreg.com', 'maileater.com', 'brefemail.com', 'yopmail.com', '0-mail.com', 'brefemail.com', 'ephemail.net', 'guerrillamail.com', 'guerrillamail.info', 'haltospam.com', 'iximail.com', 'jetable.net', 'jetable.org', 'kasmail.com', 'klassmaster.com', 'kleemail.com', 'link2mail.net', 'mailin8r.com', 'mailinator.com', 'mailinator.net', 'mailinator2.com', 'myamail.com', 'mytrashmail.com', 'nyms.net', 'shortmail.net', 'sogetthis.com', 'spambox.us', 'spamday.com', 'Spamfr.com', 'spamgourmet.com', 'spammotel.com', 'tempinbox.com', 'yopmail.com', 'yopmail.fr', 'guerrillamail.org', 'temporaryinbox.com', 'spamcorptastic.com', 'filzmail.com', 'lifebyfood.com', 'tempemail.net', 'spamfr
@jacobsimeon
jacobsimeon / password_complexity.rb
Created August 21, 2012 21:38
Password Complexity
# Regular expression to require the following
# Thanks to Scott Chamberlain on Stack Overflow
# http://stackoverflow.com/questions/3721843
# All ASCII printing characters
# At least 8 characters in length
# At least 1 lowercase letter
# At least 1 uppercase letter
# At least 1 special character
# No white-space characters
# At least 1 number
@waynegraham
waynegraham / gist:3418336
Created August 21, 2012 18:56
Remove .svn files
find . -name ".svn" -exec rm -rf {} \;
@timyates
timyates / C compile Linux
Created June 29, 2012 10:07
JNA and Groovy
gcc -o libgreet.so -shared greet.c
@timyates
timyates / base64Example.groovy
Created February 23, 2012 11:23
What's new in Groovy 1.8.6 -- byte[].encodeHex
String input = 'Groovy Base64 Encode'
String encoded = input.bytes.encodeBase64()
assert encoded == 'R3Jvb3Z5IEJhc2U2NCBFbmNvZGU='
byte[] decoded = encoded.decodeBase64()
assert input == new String( decoded )
@vasilisvg
vasilisvg / HTML-presentation-tools.md
Created January 14, 2012 13:53
HTML presentation tools

#HTML presentation tools

There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.

##CSSS

CSS-based SlideShow System

@jesperfj
jesperfj / compile
Created October 5, 2011 23:00
gradle LP
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
# parse args
BUILD_DIR=$1
CACHE_DIR=$2