Generating a new administrator user in WordPress through SQL

If you need access to a website, built on WordPress, but you have SSH access only, you could still cope with the situation with a few line in the command line. Here are the steps you need to follow: Find the database credentials. They are usually in wp-config.php file under the web-root directory of your […]

Renewing (an expired?) Let’s Encrypt SSL certificate with Easy Engine

The routine is expected to be as follows:

Right? Well, yes, if your environment is up-to-date.  Result of the last command should be like: Renewing SSl cert for Reload : nginx [OK] SUCCESS: Certificate was successfully renewed For Your cert will expire within 89 days. Expiration DATE: Tue Sep 12 08:23:00 UTC […]

Recursively replacing or removing a string from text files in a directory

I had a client with 3 WordPress sites hacked, having injected a dirty ad redirect in every possible javascript file of these sites. Around 1500 files were infected with one and the same script, so the best solution for curing them would be to remove that specific line that was causing all the trouble. Following set of […]

Scanning and cleaning a Linux machine (server or desktop) with ClamAV antivirus

A client of mine got some infected emails in their mail server, leading to infected Thunderbird on Windows, crashing the whole operating system. In order to clean up the mess, I had to scan the mail server and remove the emails that were spreading the virus. ClamAV turns out to be a pretty good option for […]

Gifcast – easy GIF screencasting for Linux

I recently needed to record my screen and output it to a .gif file. I know it’s a weird thing to do – compared to webm video for example, gifs are way bigger in size, way lower quality and don’t have sound. So.. why? Well, mostly because in most cases GIFs are treated as images(because […]