[macOS] Use mas CLI to install Mac App for scripting and automation
mas
mas is a simple command line interface for the Mac App Store - https://www.apple.com/app-store/. Designed for scripting and automation.
mas is a simple command line interface for the Mac App Store - https://www.apple.com/app-store/. Designed for scripting and automation.
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.
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.
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!
Clean your Mongoid databases with Database Cleaner.
See https://github.com/DatabaseCleaner/database_cleaner for more information.
As of Python 3.6, f-strings are a great new way to format strings. Not only are they more readable, more concise, and less prone to error than other ways of formatting, but they are also faster!
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.
An Ansible Role to manage the Packet Filter (pf) Firewall of macOS.
Paramiko is a pure-Python (2.7, 3.4+) implementation of the SSHv2 protocol, providing both client and server functionality. It provides the foundation for the high-level SSH library Fabric, which is what we recommend you use for common client use-cases such as running remote shell commands or transferring files.
Direct use of Paramiko itself is only intended for users who need advanced/low-level primitives or want to run an in-Python sshd.
Ansible works against multiple managed nodes or “hosts” in your infrastructure at the same time, using a list or group of lists known as inventory. Once your inventory is defined, you use patterns to select the hosts or groups you want Ansible to run against.