DevOps journey

Virtual Machine Crashed

https://matteoguadrini.github.io/posts/virtual-machine-crashed/ 2021-11-07
Virtual machine out of control Does not turn off! On a typical day in a DevOps it is very likely that it will have to create or manage virtual machines, sometimes very important because production processes are running on them. Very often, it happens that maintenance, you have to restart or shut down these machines to move them to site or host. One of the most used virtual machine managers is ESxi from vmware.

Python Stubs

https://matteoguadrini.github.io/posts/python-stubs/ 2021-10-16
What is a stub file? It is a file with the .pyi extension, which describes the Python type information, both input and return for functions and omits the logical part. Using a stub file has the following advantages (see PEP 484). Example sample.py def stringify(what): return str(what) Example sample.pyi from typing import Union def stringify(what: Union[int, list, dict]) -> str: ... Advantages Type information can be added by adding a separate stub file to a third-party library that does not have type annotations.

After Centos

https://matteoguadrini.github.io/posts/after-centos/ 2021-09-04
Is CentOS…dead? CentOS is a Linux distribution that provides a free and open-source community-supported computing platform, functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL). In December 2020, Red Hat unilaterally terminated CentOS development. In response, CentOS founder, Gregory Kurtzer, created the Rocky Linux project as a successor to the original mission of CentOS. Rocky Linux Rocky Linux is a Linux distribution that is intended to be a downstream, complete binary-compatible release using the Red Hat Enterprise Linux (RHEL) operating system source code.

Either Data Type

https://matteoguadrini.github.io/posts/either-data-type/ 2021-08-01
A new data type Before talking about the Either data type, we need to know what a data type is. A data type is an abstraction that encapsulates one reusable coding pattern. In our case, the Either data type encapsulates two other objects: Left and Right. These two objects represent Error and Success respectively. This is a common pattern for Functional Programming. Left and Right Left and Right, are classes wich represent the error and success data.