Friday, December 16, 2011

Perl Convert Human Date to Unix Timestamp

#!/usr/bin/perl -w

use strict;
use warnings;

use Date::Parse;

my $date = "16 Dec 2011 10:30 pm";

my $time = str2time($date);

print "$time\n";

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...