Skip to content

Instantly share code, notes, and snippets.

/*
Copyright (c) 2011, Philip Kluz (Philip.Kluz@zuui.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
@funkadelic
funkadelic / mod_evasive20.c
Created February 6, 2013 08:34
modifications to mod_evasive20.c to get it to mail alerts properly in Ubuntu 12.04 LTS. diff this against mod_evasive_1.10.1.tar.gz to see the changes
/*
mod_evasive for Apache 2
Copyright (c) by Jonathan A. Zdziarski
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
@funkadelic
funkadelic / gist:7030191
Last active December 25, 2015 19:49
postfix 2.3.3 compatible antispam config
smtpd_helo_restrictions =
        reject_non_fqdn_helo_hostname,
        reject_invalid_helo_hostname,
        reject_rhsbl_helo hostkarma.junkemailfilter.com=127.0.0.2,
        reject_rhsbl_helo zen.spamhaus.org
 
smtpd_data_restrictions =
        reject_unauth_pipelining
 
smtpd_client_restrictions =
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
+ (NSString *) platform;
+ (NSString *) platformString;