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 …
read moreCan we clean password from PHP memory?
How to cache Python module in Gitlab CI
By default, pip cache will be in ~/.pip. However, this folder cannot be cached by Gitlab. The trick is to force pip to use a folder located in the build directory with the --cache-dir option. You can then cache this folder.
For instance, you can use .pip as in the …
read morenginx tips
read moreCORS for multiple domains
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ { if ( $http_origin ~* (https?://(.+\.)?(domain1|domain2|domain3)\.(?:me|co|com)$) ) { add_header "Access-Control-Allow-Origin" "$http_origin"; } }
Integrate Rollbar with Aurelia
A sample application with Aurelia UX
This is a follow up to my Small comparison of ionic2 and Aurelia + Framework7 for hybrid mobile applications article where I compared ionic2 and Aurelia with Framework 7 for building an hybrid applications. At the time, Aurelia UX was not yet ready (and we were expecting a different, closed source …
read moreChiffrer des fichiers avec GPG
Voici deux fonctions bash qui permettent de chiffrer et déchiffrer un fichier ou un dossier avec GPG.
Les dossiers sont compressés dans une archive ZIP avant le chiffrement.
Le chiffrement laisse les fichiers d'origine intacts. Le déchiffrement laisse le fichier chiffré intact.
Ces fonctions auront leur place dans votre .bashrc …
read moreExtraire le HTML d'un email au format mbox
Voici un petit script Python pour convertir un mail au format mbox en HTML. Pour que le script fonctionne, il faut soit que le corps du message soit du HTML (recommandé) soit que la première pièce jointe du message contienne le message en HTML.
Par défaut, le script traitera tous …
read moreUse Linux user namespaces to fix permissions in docker volumes
Sommaire
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 …
read moreDocker compose tips
For my tips about docker, go here.
Sommaire
read moreUse docker-compose.override.yml
As describe here, if you create a docker-compose.override.yml next to your docker-compose.yml, you can override or add values to the docker file. This file is loaded by default. To ignore it …