Category Archives: programming

C++ time operations

It’s not that I’m programming now, but I’m somehow reviewing old techniques that I don’t use since my PhD. You can play with them. To create a delay of 20 seconds: // time delay #include <time.h>     time_t    … Continue reading

Posted in bits, C++, programming, Uncategorized | Leave a comment

C++ data acquisition

These are snippets that I created some time ago, and since they are small, they don’t have their own space. To store on data.txt //store datach0 in a file #include <iostream> #include <fstream> ofstream *fout = new ofstream(“data.txt”,ios::app); fout->precision(14); *fout<<“datach0: … Continue reading

Posted in C++, programming, Uncategorized | Leave a comment

Add a puppet node to a foreman docker

There should be no difference between adding a node on a foreman server and on a foreman docker. But the world is not ideal, and things don’t work out of the box, therefore, here’s my HOWTO. The original source is … Continue reading

Posted in bits, centos, cobbler, containers, docker, foreman, hardware, linux, mac, programming, puppet, Uncategorized | 2 Comments

A docker cobbler server on CentOS 7

Yes I know, I’m a little bit dense on the last days about the docker thing. But what can I say: this blog is also my notebook/slash/lab book and I want to write here about how I did this or … Continue reading

Posted in bits, centos, cobbler, containers, docker, hardware, osx, programming, software | 1 Comment

A docker munin server on CentOS 7

The plan is to get rid of the old pizza box servers (around 20 Kg, 1U flat, with two power supplies) that are used, at this moment, only for services, like to run munin. I will build a munin docker … Continue reading

Posted in bits, centos, containers, docker, hardware, linux, munin, programming | Leave a comment

A docker leginon on OSX

As a proof of concept, I installed a leginon docker on my MacBook Pro. The docker installation on a mac is kind of cute (see pic above). Once installed, I copy my Docker folder from my docker server to my mac … Continue reading

Posted in bash, docker, osx, programming, Uncategorized | Leave a comment

A docker macvlan on CentOS 7

I want to dockerize my services (not only leginon) so I need to find out an effective way to integrate them onto our intranet. That is proven to be a little bit complex, since I have partial control of our … Continue reading

Posted in bash, bits, centos, containers, docker, hardware, leginon, mysql, programming | Leave a comment