Skip to content

Instantly share code, notes, and snippets.

debility debility

Block or report user

Report or block debility

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@debility
debility / rd256_decode
Created Nov 27, 2013
rijndael-256 decode (PL/Perl)
View rd256_decode
CREATE OR REPLACE FUNCTION rd256_decode(text, text, text)
RETURNS text AS
$BODY$
use Mcrypt;
use MIME::Base64;
use utf8;
use Encode qw(encode decode);
my ($encoded, $key, $iv) = @_;
@debility
debility / converter.sh
Last active Aug 29, 2015
apache config converter + secure setting + php secure setting
View converter.sh
#!/bin/sh
CONFIG_FILE="/etc/httpd/conf/httpd.conf"
DATE=`date '+%Y%m%d'`
if [ -f "${CONFIG_FILE}.orig.${DATE}" ]; then
echo '(maybe)apache config file is already converted. :-P'
exit
fi
You can’t perform that action at this time.