Other articles

  1. ZSH tips

    Sommaire

    ZBell

    Useful to have a notification when a long command completes.

    To enable it, add zbell to your plugins array if you are using oh-my-zsh or source the definition file.

    To configure:

    • The minimum time commands must take for the notification to happen, use: ZBELL_DURATION. For instance ZBELL_DURATION …
    read more
  2. Use dnsmasq with NetworkManager

    Sat 08 September 2018 | tags: linux

    This will, for instance, allow you to redirect all matching domains to a certain server: dnsmasq will intercept the DNS query and return the ip you specified.

    To do this, edit NetworkManager configuration in /etc/NetworkManager/NetworkManager.conf and add in the main section dns=dnsmasq:

    [main]
    dns=dnsmasq
    

    You …

    read more
  3. Run multiple docker daemons on the same host

    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 more
  4. Fusionner deux dépôts git

    Récemment, j'ai eu besoin de fusionner deux dépôts en un seul. Ça se fait plutôt bien. Voilà la procédure :

    # On clone les dépots
    git clone projet1
    git clone projet2
    cd projet1
    
    # On ajoute le projet2 comme source dans le projet1
    git remote add projet2 ../projet2
    git fetch projet2
    
    # On liste …
    read more
  5. Un shell pour pelican

    Comme je l'ai déjà dit ici, mon blog est géré par Pelican. Il est également placé sous gestion de version. Pour régénérer automatiquement après chaque modification la version html des pages, il faut utiliser la commande make regenerate. Pour lancer le serveur de test pour voir les pages, on utilise …

    read more
  6. Utiliser trap en bash pour pièger des signaux

    Mise à jour 2017-09-96: ajout d'un exemple d'utilisation des noms des signaux. Merci à Thomas et Lokta.

    Bash est capable d'intercepter les signaux envoyés par certains raccourcis claviers (comme Ctrl-C) et de changer le comportement par défaut de ces raccourcis. Il suffit pour cela d'utiliser la commande trap. Elle prend …

    read more

Page 1 / 2 »

Pages

blogroll

social