Deploy to your test server with git hooks

Posted on 2018-09-09 in Programmation • Tagged with git, devops

You probably already wanted to have your own test environment to allow others in the company to tests what you did. Perhaps you have a common one, but as your team is growing, it is probable that the common environment is a bottleneck and you wish each developer could have …


Continue reading

Run multiple docker daemons on the same host

Posted on 2018-02-25 in Programmation • Tagged with Docker, Linux

Today I am going to explain how you can run multiple docker daemons on the same host. This can be useful if you want several users to use docker and want each of them to be isolated from one another (ie don't see images, containers, … of other users). The solution …


Continue reading

Can we clean password from PHP memory?

Posted on 2017-11-26 in Programmation • Tagged with php, Docker, security

At work in a PHP application, we rely on libsodium to erase a password from $_POST. It may sound like a good idea: once the password is not in memory any more, it can't leak. But the question is: is it really erased from memory? That's the question will answer …


Continue reading

Use Linux user namespaces to fix permissions in docker volumes

Posted on 2017-07-02 in Programmation • Tagged with Docker, Unix

Not long ago, I publish an article about using Unix sockets with docker. These sockets where in docker volumes so they could be shared between various containers. The key idea was to change the …


Continue reading

Use Unix sockets with Docker

Posted on 2017-02-15 in Programmation • Tagged with Docker, Unix

By default, you are supposed to use TCP sockets to communicate with your applications running in Docker. But what if you want to use Unix sockets instead? The answer is you can: you make the application create the socket file in a volume and set the proper permissions to it …


Continue reading

Utiliser des métaclasses pour créer simplement des enums en Python 3

Posted on 2016-08-01 in Programmation • Tagged with Python

Depuis la version 3.4, Python dispose d'une classe Enum qui permet de créer des enums avec quelques propriétés intéressantes (itération, nombre d'éléments, accès aux éléments de l'enum comme ceux d'un objet ou d'un dictionnaire). Je vous laisse lire la documentation pour les détails.

Cependant, dans mon cas, je les …


Continue reading

Utiliser istanbul pour voir le code coverage de tests lancés avec protractor

Posted on 2015-09-25 in Programmation • Tagged with istanbul, javascript, protractor, AngularJS, code coverage

Récemment j'ai eu besoin d'avoir du code coverage (assuré par istanbul) pour des tests d'intégration d'une application AngularJS. Ces tests sont lancés avec protractor et ce n'est pas aussi simple qu'il n'y parait. L'idée de base est :

  • D'associer une fonction à la clé onPrepare dans la configuration de protractor. Dans …

Continue reading

A light branching strategy with mercurial and bookmarks

Posted on 2015-07-22 in Programmation • Tagged with git, mercurial

I am a contributor to nbpython the netbeans plugin for python. Since the DCVS used is mercurial and I have almost exclusively used git before I add to adapt my workflow to work properly.

What I want to do:

  • create a branch from …

Continue reading

Use docker to deploy a Glassfish application

Posted on 2015-05-24 in Programmation • Tagged with Java, Glassfish, Docker

Recently I had to deploy an application on Glassfish. Since Glassfish is not packaged on the distribution I have on my server (Fedora Server) and I wanted to avoid to pollute my system I decided to use Docker.

In order to deploy my application correctly, I based my Dockerfile on …


Continue reading

AngularJS tips

Posted on 2015-04-26 in Programmation • Tagged with JavaScript, AngularJS

This page lists all the angularjs tips I have collected.

Disable HTTP request caching

This is mostly useful on Internet Explorer: every HTTP requests made with the $http service …


Continue reading