Code Maven

Welcome to the Code Maven!

The main topics in abc order

  • Angular JS - some old articles about Angular 1.
  • Ansible - the configuration management system.
  • Flask, the Python microframework.
  • Groovy, the programming language used for Jenkins pipelines.
  • Handlebars the HTML templating system written in JavaScript.
  • Java
  • JavaScript
  • Jenkins, the automation server used for Continuous Integration and Continuous Delivery.
  • Linux
  • NodeJS
  • Perl
  • PHP
  • Python
  • Ruby
  • SVG, Scalable Vector Graphics examples in JavaScript and Python.

Most of the article are written by Gabor Szabo who provides Automation and DevOps related services. (Setting up CI systems, intorducing test automation, moving the company to "the cloud", etc.)

qx or backticks in python - capture the outout of external programs

In the Unix/Linux shell you can use backticks to capture the output of an external command. In Perl you can use both backticks and the qx operator.

In Python it requires a bit more code, but it is easy to wrap it in a function.


qx or backticks in python - capture the outout of external programs


Google Cloud shutdown script

When you shut down a compute intance manual via the console, using gcloud, or when an a preemptible instance is automatically shut down, you can arrange for a script to be executed.

In normal shutdown situation the script has 90 seconds to run, in preemptible automatic shutdown it has 30 seconds to run before the computer is really shut down.


Google Cloud shutdown script