How to get SSL certificate expiration date from command line

cd ~/.acme.sh/medio.click/ openssl x509 -noout -enddate -in medio.click.cer notAfter=May 16 23:05:19 2021 GMT For the rest of the certificate information: openssl x509 -help Usage: x509 [options] Valid options are: … -subject Print subject DN -issuer...

Reviewing the console command history in Chrome’s DevTools

You can use up-arrow or type the start of a previous command to search your command history in DevTools, but if you don’t recall the command and it’s far away in your history, you can use this method to see all your console history: While in DevTools,...

Renaming multiple files with Perl’s Regex power

(you can read this publication in spanish here) Useful one-liner to rename multiple files using regular expressions:perl -we ‘$regex = shift(@ARGV); $rep = shift(@ARGV); $rep =~ s/”/\”/g; $rep = qq(“$rep”); foreach (@ARGV) { if (/$regex/)...

Renaming multiple files with Perl's ExReg power

Practical command to rename files using regular expressions:perl -we ‘$regex = shift(@ARGV); $rep = shift(@ARGV); $rep =~ s/”/\”/g; $rep = qq(“$rep”); foreach (@ARGV) { if (/$regex/) { $ren = s/$regex/$rep/geer;  print...

Install or update WordPress plugins without FTP

To be able to install plugins automatically, WordPress requires the web server user to be the owner of the wp-admin and wp-content directories, located where you have it installed. a little strange, Well, he is not satisfied with having permissions....