I was recently requested to transform a slideset (originally generated with LibreOffice, but shared as PDF), into a set of images.
This is very simple, using Imagemagick program : convert
The question is : how ? Continue reading “How to extract pages from a PDF as a set of images ?” »
OwnCloud is really a terrific program.
I use it for many purposes, among which, of course, storing files that I can access from anywhere.
I faced a simple, but not trivial issue : I had a lot of files to move to my Cloud repository, already available on my server, and I didn’t want to go through the web interface or the webdav access (unnecessary bandwidth usage). I simply wanted to “move” them from directories, using Unix command line interface.
This is not straight forward, but not difficult either. Here is how I proceeded:
Continue reading “OwnCloud: how to copy files “directly” on your server” »
I recently installed Let’s Encrypt mechanism on some of my sites.
Currently, the upgrade is not automatic (beta version + I personally need to be convinced )
So, I need to monitor the validity dates of the certificates.
Here is a one-liner that do the job:
echo | openssl s_client -connect <site>:<port> 2>/dev/null | openssl x509 -noout -enddate
Note that I added the initial “echo”, as the openssl is waiting for an input…
$ echo | openssl s_client -connect raistlin.alphamaths.fr:443 2>/dev/null | openssl x509 -noout -enddate
notAfter=Mar 5 16:30:49 2017 GMT
You can imagine any kind of monitoring / notification on top of that !