Formatting your source code can be a daunting task even modern IDE’s cannot always auto format your code correctly. One special case here is breaking long lines in python. Python is a special case here because indention matters. Using the following macro it is quite easy to format long lines easily.
Virtualization brought all the benefits of over allocation (using more resources than physically available) to us. And sharing resources like CPU makes a lot of sense if you for example have a daily distributed workload like daily traffic and nightly jobs to generate reports and don’t need all resources at a time. This works great most of the time and is acceptable to slow down your system because of lack of resources sometimes but you definitely don’t want to crash you system because of lack of resources. This is why you usually don’t want over allocate memory. The following script allows you to check this for KVM hypervisor hosts.
This article describes how you can migrate you ownCloud installation from MySQL DB to PostgreSQL. My setup is as follows
- ownCloud 9.1.1
- PHP 7.1
- MySQL 5.6
- PostgreSQL 9.6
- Ubuntu 14.04 LTS
Migrating is quite easy thanks to ownCloud builtin db:convert-type command and takes no longer than 30 minutes.