Skip to content

Content Tagged "if"

Page 1 of 1

Compose a variable from a combination in Ansible

April 6, 2022Categories: it, tutorial
The other day I was confronted with a bit of a problem in Ansible: I have a role with a docker_container where I use two variables, one defining the user ( role_user ) and one defining the group ( role_group ). When both the user and group are defined, they specify the UID and GID respectively…

C Optimisation - 2005 style

October 10, 2014Category: Software
TL;DR : This post is about an experience I had in 2004 and it’s part of my consolidating technical posts I wrote in time. It may or may not be relevant to today’s technologies. I was trying to optimize a bit of code and found out that 2 if() statements are quicker than a case with true/false. and an…

All tags