If you manage multiple docker images on docker hub, you want to make the support the easiest possible. But most of the time you start creating tags because your application follow the version of another application or you just want to try using the new debian image. To create tag, docker hub provides you the Build settings page where you can declare tags, giving you 2 options: * use branch (Docker hub does it automatically, but you can do more specific stuff with it) * use different Dockerfile files Both are not perfect because branches need to be merge and multiple dockerfile results in duplicate code most of the time.

Continue reading

New year, new challenge, I will quit my current company in september. As I’m looking for a new job, I worked on my resume again and I found http://please.hackmyresume.com/ website. The idea behind is to use a json file for the data using https://github.com/jsonresume/resume-schema json format. Then you use hackmyresume to apply theme for web or for files (ex PDF), using node packages. It creates that kind of result http://japromis.katagena.com/ based on a simple json file https://raw.

Continue reading

If you are using a VPN sometimes and you want to change the proxy settings when you launch your VPN: Create a file in directory /etc/NetworkManager/dispatcher.d/ /etc/NetworkManager/dispatcher.d/20proxyvpn #!/bin/bash IF=$1 STATUS=$2 if [ "$IF" == "tun0" ] then case "$2" in vpn-up) logger -s "$0 Script up triggered" gsettings set org.gnome.system.proxy autoconfig-url "http://yourdomain.lan/proxy.pac" gsettings set org.gnome.system.proxy mode "auto" ;; vpn-down) logger -s "$0 Script down triggered" gsettings set org.gnome.system.proxy mode "none" ;; pre-up) ;; post-down) ;; *) ;; esac fi This bash script will be trigger when a connexion is up or down.

Continue reading

Socket.io

Socket.io is a javascript web application on nodejs. It uses diffents transports methods depending on the browser. I use it on 2 purposes: – make browser client refresh some ressources when there are a change: a news section for example. – alert when there are simultaneous change of a ressource: a change on a planning (http://www.katagena.com/setagaya/demo.php) I have 2 projects using this technology: – a dashboard with live status from different server: uptime values will refresh live

Continue reading

If you want to monitor a website you can setup easily a regular cron to check the performances. You just need PhantomJS which is a headless browser. For a 64bits version: if ! which bzip2 >/dev/null; then apt-get install bzip2 fi if ! [ -f "/usr/local/bin/phantomjs" ]; then cd /tmp/ wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-i686.tar.bz2 tar xvf phantomjs-1.9.2-linux-i686.tar.bz2 cp phantomjs-1.9.2-linux-i686/bin/phantomjs /usr/local/bin/ chmod +x /usr/local/bin/phantomjs fi Then we will use confess.js script with PhantomJS.

Continue reading

Debian package md5sum

If you manage a debian package, you sometimes need to restart a service after the setup. It’s generally done in the postinst script. But sometimes you didn’t have change configuration files and you don’t want to restart the service. Here a simple example where postinst script will check if configuration files have changed and restart service only when necessary. In this example, my package contains virtual hosts for apache server. I will make a md5sum of the files before the setup of my new version of the package.

Continue reading

Cette semaine a été marquée par la révélation sur le fichier consolidated.db présent sur les IPhones contenant les localisations du téléphone. Pour ceux intéréssés par visualiser leurs données, la page http://www.courbis.fr/Localisation-iPhone-votre.html détaille bien la structure de la table sqlite en question et parser le fichier est assez simple avec un petit script en php. Dans la foulée de cette révélation, des articles ont rapidement indiqué qu’Android faisait de même et des projets permettent également de parcourir ces informations (https://github.

Continue reading

Author's picture

Jean-Avit Promis

OpenSource Enthousiast

Coopérateur chez Coop’Alpha

France