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...

Instalar o actualizar complementos de WordPress sin FTP

Para poder instalar complementos automáticamente, WordPress requiere que el usuario del servidor web sea el propietario de los directorios wp-admin y wp-content, localizados donde lo tengas instalado. Un poco raro, pues no se conforma con tener permisos de...