Enabling HTTP/2

aptitude or apt-get aptitude install php-fpma2enmod proxy_fcgi setenvifa2enconf php7.3-fpm #Lets enable mpm_event a2dismod php7.3a2dismod mpm_preforka2enmod mpm_event /etc/init.d/apache2 restart a2enmod http2 Few Errors that came up. The order above fixes the issues. a2enmod mpm_event Considering conflict mpm_worker for mpm_event: Considering conflict mpm_prefork for mpm_event: ERROR: Module mpm_prefork is enabled – cannot proceed due to conflicts. It […]

Mysql/MariaDB Upgrade from Debian 9 to 10

I read the release notes for Debian: https://www.debian.org/releases/stable/amd64/release-notes/ Did the standard upgrade from Debian 9(stretch) to Debian 10 (buster) In this blog we will cover the proper way to upgrade mysql as to not to get this problem. While I’m not saying this covers all steps mysql/mariadb upgrade, its a good lesson on what to […]

Moving / (root partition) to NVME while keeping /home on HDD

I need to move my running Linux Debian machine to my new m.2 nvme Samsung drive to gain 10x IO speed improvement. It’s crazy fast! The procedure is very similar as below http://lucasmanual.com/blog/move-root-partition-to-home-partition/ Prerequisites: You already installed NVME and partitioned it You have gpt2 with grub partition similar to : /dev/nvme0n1p1 [ 2.00 MiB] /dev/nvme0n1p2 […]

Cookiecutter – Modify context in post_gen_project.py

Cookiecutter is a template where you can setup skeleton of a project, and based on parameters from cookiecutter.json it will prefill all files with the supplied values. Advance Cookiecutter Question: How can I add new context based on what was submitted from cookiecutter.json, then come up with my own variations, and pass them back to […]

Quick Intro to Cassandra vs MongoDB with python

Cassandra Conclusion: “One way that Cassandra deviates from Mongo is that it offers much more control on how it’s data is laid out. Consider a scenario where we are interested in laying out large quantities of data that are related, like a friend’s list. Storing this in MongoDB can be a bit tricky – it’s […]