Andreas' Technical Tidbits

A collection of mostly software related bits and pieces out of my world (UNIX, scripting, OpenOffice.org, etc.)

Wednesday, July 8, 2020

Ansible - convert yaml file to json

›
Using the Ansible filters from_yaml and to_json it is easy to construct a task to convert a yaml file to JSON . Here is the Ansible playb...
3 comments:
Friday, March 20, 2020

Different 'exit' behaviour between bash and Korn shell in command pipelines

›
When running command pipelines it is sometimes convenient to break out of a sub process and exit a shell script. There are differences tho...
Tuesday, February 4, 2020

Circular shift of lists in python

›
Scenario Assume I have a list in python a = [ -2, -1, 0, 1, 2 ] (an admittedly simple list here with integer numbers). I want to shift ...
Thursday, January 30, 2020

Modulo operation in programming languages - differently implemented

›
Many programming languages support an operation which they call modulo operator and which is often designated by the symbol % Often it is ...
Wednesday, November 20, 2019

Ansible - dictionaries vs. lists

›
When working with more complex variables in Ansible (often based on yaml input files) you always have to be aware whether the variable is a...
12 comments:
›
Home
View web version

About Me

Andreas
View my complete profile
Powered by Blogger.