Detect a failing hard-disk on a Linux server

When there is an hard-disk failing issue generally the file system will be read-only. You would get errors like these: rm: cannot remove ‘error.log’: Read-only file system cannot create temp file for here-document: Read-only file system -bash: df: command not foundrm: cannot remove ‘error.log’: Read-only file system cannot create temp file for here-document: Read-only file […]

Certbot.errors.CertStorageError: expected to be a symlink

Example certbot error message: certbot.errors.CertStorageError: expected /etc/letsencrypt/live/www.website.com/cert.pem to be a symlink Renewal configuration file /etc/letsencrypt/renewal/www.website.com.conf is broken. Skipping.certbot.errors.CertStorageError: expected /etc/letsencrypt/live/www.website.com/cert.pem to be a symlink Renewal configuration file /etc/letsencrypt/renewal/www.website.com.conf is broken. Skipping. Solution is to re-create the symlinks for all .pem files: rm -f /etc/letsencrypt/live/www.website.com/*.pem ln -s /etc/letsencrypt/archive/www.website.com/cert1.pem /etc/letsencrypt/live/www.website.com/cert.pem ln -s /etc/letsencrypt/archive/www.website.com/chain1.pem /etc/letsencrypt/live/www.website.com/chain.pem ln -s /etc/letsencrypt/archive/www.website.com/fullchain1.pem […]

Example hard-disk error logs on a Linux server

Here is an example of logs related to a failing hard-disk: root@server:~# cat /var/log/syslog   Dec 3 02:35:54 server kernel: [6703851.044036] sd 0:2:0:0: [sda] tag#18 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK Dec 3 02:35:54 server kernel: [6703851.044065] sd 0:2:0:0: [sda] tag#18 CDB: Write(10) 2a 00 31 20 31 00 00 01 00 00 Dec 3 02:35:54 server […]

Certbot renew error: Account at does not exist.

If you get this certbot error: – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – Processing /etc/letsencrypt/renewal/www.website.com.conf – – – – – – – […]

Compress Word, Excel and PowerPoint Office Documents

Do you have a Microsoft Word file with large images that can’t be sent via email because its file is too big? You can compress Word files with a new online file compression service that is 100% free and very easy to use! It supports compression of Microsft Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint […]

Download OpenVPN 2.4.7 and TAP-Windows

From here you can download latest OpenVPN version: https://openvpn.net/community-downloads/ And from here you can download all latest stable versions: https://build.openvpn.net/downloads/releases/latest/ It includes also TAP-Windows versions.

api-ms-win-crt-runtime-l1-1-0.dll is missing

Can’t run a program because api-ms-win-crt-runtime-l1-1-0.dll is missing? If you are using Windows 7 64-bit, install this update: Windows6.1-KB2999226-x64.msu If you are using Windows 7 32-bit, install this update: Windows6.1-KB2999226-x86.msu Then run again your program, it should work.

jQuery Get File Extension Before Uploading File

A jQuery example of how to get file size before uploading: $(‘input[type=file]’).change(function(e){   var ext = e.target.files[0].name.replace(/^.*\./, ”).toLowerCase();   alert("File Extension: " + ext);   … });$(‘input[type=file]’).change(function(e){ var ext = e.target.files[0].name.replace(/^.*\./, ”).toLowerCase(); alert("File Extension: " + ext); … });

How to Configure OVH Email POP3 with Thunderbird

When adding a new email address (OVH hosted) on Thunderbird: The red-removed part should be your website. Reference (Italian): https://docs.ovh.com/it/emails/email_condivisa_guida_alla_configurazione_di_thundebird/

Simple jQuery File Upload SimpleUpload.js

Today I found this awesome jQuery file upload plugin: http://simpleupload.michaelcbrook.com/ The official simpleUpload.js jQuery plugin page on Github is this: https://github.com/michaelcbrook/simpleUpload.js The plugin is hosted by Content Delivery Network (CDN) JsDelivr: https://www.jsdelivr.com/package/npm/jquery-simple-upload Below there is an example to use the jQuery plugin showing a progress bar. The JavaScript section looks like this: $(document).ready(function(){   $(‘input[type=file]’).change(function(){ […]