Apache SSL Certificate Without Passphrase
Remove Passphrase
openssl rsa -in server.key -out server.key.nopass
File::path - removing all files and directories keeping the root directory in place
keep_root => $bool
When set to a true value, will cause all files and subdirectories to
be removed, except the initially specified directories. This comes in
handy when cleaning out an application's scratch directory.
remove_tree( '/tmp', {keep_root => 1} );
removing duplicate files in a array
use List::MoreUtils qw(uniq);
my @dup_list = qw(1 1 1 2 3 4 4);
my @uniq_list = uniq(@dups);
check if database exist
#SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE
SCHEMA_NAME = 'DBName'
SCHEMA_NAME = 'DBName'
Subscribe to:
Posts (Atom)