A sample application with Aurelia UX

Posted on 2017-08-14 in Aurelia • Tagged with ionic2, angular2, aurelia, framework7, android, mobile

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 …


Continue reading

Chiffrer des fichiers avec GPG

Posted on 2017-08-08 in Trucs et astuces • Tagged with GPG, securité

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 …


Continue reading

Extraire le HTML d'un email au format mbox

Posted on 2017-08-07 in Trucs et astuces • Tagged with mail, Python

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 …


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

Docker compose tips

Posted on 2017-06-11 in Trucs et astuces • Tagged with Docker, Docker compose

For my tips about docker, go here.

Use 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 …


Continue reading

Create python virtual enviroments on Windows

Posted on 2017-06-11 in Trucs et astuces • Tagged with Python

  1. Before creating the venv you will need to open a PowerShell terminal as root and run the commands below to allow the script that activates the virtual env to run:

    cd ..
    Set-ExecutionPolicy Unrestricted
    
  2. Create the venv. Run in a terminal as a normal user: python3 -m venv .venv If the …


Continue reading

Use squid and squidGuard to redirect all URLs from a domain to another one

Posted on 2017-06-09 in Trucs et astuces • Tagged with squid, Linux

You may find yourself in a situation where you will need to redirect all URLs from a domain (lets say www.example.com) to another one (lets say www.example.org). This can be done with squid, a proxy server, and squidGuard, an …


Continue reading

Require valid-user on Apache only for some request types

Posted on 2017-03-29 in Trucs et astuces • Tagged with apache

You can use the Limit directive like this:

AuthType basic
AuthName "Restricted area"
AuthUserFile /var/www/passwd
Require valid-user
# Only GET and OPTIONS request are allowed without authentication.
<Limit GET OPTIONS>
    Require all granted
</Limit>

Mon passage à LineageOS

Posted on 2017-03-29 in Blog • Tagged with Android, LineageOS

Tout d'abord, je présente un projet intéressant : oandbackup que j'ai découvert via cet article. oandbanck vous permet de sauvegarder les APK installés sur votre téléphone pour pouvoir les réinstaller une fois la mise à jour effectuée. Malheureusement, suite à un problème lors de la mise à jour, j'ai dû formater …


Continue reading

Angular2 and SVG

Posted on 2017-02-21 in Blog • Tagged with Angular2, SVG

Note

I use the Aurelia framework, a competitor of Angular2. I wrote several articles about Aurelia. I am not an expert with Angular2. If you spot a mistake, please leave a comment.

In an interview about a year old, Rob Eisenberg, the creator of the Aurelia framework, said:

Over a …

Continue reading