Cloud-oriented Life

Cloud Native Technology Improves Lives

Falco Behavioral activity monitor ansible role

This ansible role to setup Falco https://falco.org/ Falco Open-Source Cloud-Native Security Project | Sysdig - https://sysdig.com/opensource/falco/ falcosecurity/falco: Cloud Native Runtime Security - https://github.com/falcosecurity/falco

Falco, the cloud-native runtime security project, is the de facto Kubernetes threat detection engine

Falco was created by Sysdig in 2016 and is the first runtime security project to join CNCF as an incubation-level project. Falco detects unexpected application behavior and alerts on threats at runtime.

Read more »

f-Strings: A New and Improved Way to String Interpolation in Python

Also called “formatted string literals,” f-strings are string literals that have an f at the beginning and curly braces containing expressions that will be replaced with their values. The expressions are evaluated at runtime and then formatted using the __format__ protocol. As always, the Python docs are your friend when you want to learn more.

Here are some of the ways f-strings can make your life easier.

Read more »

grog.package

A role for managing packages on different operating systems.

This role currently supports apt, yum, dnf, brew, zypper, pacman and portage. Feel free to send a pull or feature request to add your favorite package manager!


Attention:

This role handles name differences between package managers but not between distributions using the same package manager.
Test coverage is rather small so please do report bugs!


Read more »

Reload Python module within Jupyter Notebook

All the code in a Jupyter Notebook is the code that runs in the same runtime. When you import the same module multiple times by import, Python’s package management mechanism will automatically ignore the subsequent imports, and always only use the first import.

There are three ways to reload module:

  • (Recommended) Use %autoreload magic;

  • Use importlib, But this has to import the that module again in each Cell;

  • Restart the entire Notebook. But this will cause all the variables in the current runtime to be lost.

Read more »
0%