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

Docker for the long-time Vagrant user (Laravel, Nginx, PHP with Xdebug, MySQL, Redis)

November 15, 2022 ≈ 5 minutes 14 seconds

Why did I decide to try Docker after being totally happy with Vagrant for such a long time? Well, I switched to the new dev machine, based on an M1 processor, which is unsupported by VirtualBox. Also for the speed, less disc consumption, ease of networking between containers and other benefits of containerized approach, such as when I'm working on...

Resize multiple images proportionally with FFmpeg and a shell function

December 26, 2021 ≈ 2 minutes 6 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 ≈ 46 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 ≈ 24 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.