If you wish to know how much space uses some dir in Linux, you can use du -hs /some-folder. But what if you have a lot of mixed mounts in that folder and you want to know how much exactly this folder consumes at root disk storage?
It is very simple:
for i in */ .*/ ; do
echo -n $i": " ;
(find "$i" -type f | wc -l) ;
done
PHP 7.4 preloading feature for Magento
PHP 7.4 introduces the opcache preloading function. Its meaning is to load all the necessary scripts into memory at the stage of starting the PHP daemon. Let’s see if this feature is worth using in Magento?
Reload Varnish VCL using varnishadm
You can reload Varnish config without losing your cache. To do this, you should use the standard varnishadm CLI utility.
WordPress slow 404 at Apache
After installing WordPress, you should definitely do a basic performance check. You should at least watch the logs and run Htop (or just Top). When you look at the access_log, you can find many 404 errors that need to be fixed.
You may have noticed that after the update, Teams stopped showing the number of unread messages in the icon in the Dock. Also, Teams is not present in the notification center. It is absent there, so it cannot be configured in any way.
For those who don’t know, OVH is such a large and well-known French cloud provider. If you need to transfer a domain from one OVH client to another, then you do not need to go through the standard transfer procedure. OVH does this by changing the contact for the service.
Amazon Simple Email Service has a mechanism to prevent sending emails to addresses that bounced or complained. Sometimes the emails are bouncing because of the short time server failures. And if the email is added to the suppression list, this address will never receive an email from you.
When you are using Docker at Mac for development, you may be noticed, that the speed of the attached volume is horrifically slow. To cut a long story short, it is due to the way a Docker virtual machine works on a Mac.
You can generate a random number in bash using this snippet:
RAND=$(shuf -i 7000-7999 -n 1)