Subscribe to our newsletter

If you provide url of your website, we send you free design concept of one element (by our choice)

Subscribing to our newsletter, you comply with subscription terms and Privacy Policy

#Unix shell

Resize multiple images proportionally with FFmpeg and a shell function

December 26, 2021 ≈ 2 minutes 5 seconds

You probably already know that FFmpeg can resize images proportionally, and also that it can't overwrite them. So you either save resized files under new names or into a new folder, and it becomes tedious... When you repeat the same pattern multiple times over the week, it's time to search for a way to automate it...

How to schedule a backup of a database on Ubuntu VPS

February 28, 2021 ≈ 43 seconds

Regular backups are important. This tutorial shows how to back up the MySQL database daily and keep only the latest. It requires you to be familiar (a bit) with mysqldump and ...

How to password protect directory in Apache

August 3, 2020 ≈ 22 seconds

Sometimes, you just want to set quick and simple password protection for a folder. That's how it can be done in Apache.

Count all files in a directory and subdirectories (linux)

July 31, 2020 ≈ 21 seconds

First, we need to find needed files, using the 'find' command. The find utility recursively descends the directory tree for each path listed, evaluating an expression in terms of each file in the tree. Next, we need to count lines, using wc (word, line, character, and byte count) command with -l (lines) parameter.