Category Archives: Uncategorized

DNS spoofing with RPZ and bind9

When two web services reside on the same LAN, it may be convenient to spoof DNS entries to use the LAN IP instead of the public IP. It can be done using RPZ and bind9. For instance workbench.dachary.org can be … Continue reading

Posted in Uncategorized | Leave a comment

Using a cloud image with kvm

It would be convenient to have a virt-builder oneliner such as $ virt-builder –arch i386 –ssh-inject ~/.ssh/id_rsa.pub fedora-21 to get an image suitable to run and login with $ qemu-kvm -m 1024 -net user,hostfwd=tcp::2222-:22 \ -drive file=fedora-21.qcow2 & $ ssh … Continue reading

Posted in Uncategorized | 2 Comments

Upgrade nodejs on Ubuntu 14.04

To run gh a version of nodejs more recent than the one packaged by default on Ubuntu 14.04 is required: $ apt-cache policy nodejs nodejs: Installed: 0.10.25~dfsg2-2ubuntu1 Candidate: 0.10.25~dfsg2-2ubuntu1 Version table: *** 0.10.25~dfsg2-2ubuntu1 0 500 http://fr.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages 100 … Continue reading

Posted in Uncategorized | Leave a comment

An example of controlled technical debt

When I started working to help with Ceph backports, I was not familiar with the workflow (who does what, when and why) or the conventions (referencing commits from redmine issues, the redmine backport field, …). I felt the need for … Continue reading

Posted in Uncategorized | Leave a comment

retrieve github pull requests in JSON

The following python function returns a map associating each pull request number to its JSON description for the given repo. The OAuth token is needed so github will allow more requests to be processed during a given time frame. The … Continue reading

Posted in Uncategorized | Leave a comment

t540p touchpad disable mouse, keep buttons

To use the touchpad to click (but not to move the mouse) and keep using the trackpad for mouse movement: synclient AreaBottomEdge=1

Posted in Uncategorized | 2 Comments

Merging with magit and ediff

The jerasure v2 branch is merged into the v2-ceph branch.

Posted in Uncategorized | Leave a comment

Testing CPU features with Qemu

The Ceph erasure code plugin must run on Intel CPU that have no SSE4.2 support. A Qemu is run without SSE4.2 support: qemu-system-x86_64 -machine accel=kvm:tcg -m 2048 \ -drive file=server.img -boot c \ -display sdl \ -net nic -net user,hostfwd=tcp::2222-:22 … Continue reading

Posted in Uncategorized | Leave a comment

Micro PDP-11

Posted in Uncategorized | 2 Comments

Vue subjective de la naissance de l’Erasure Code dans Ceph

L’erasure code, c’est aussi le RAID5, qui permet de perdre un disque dur sans perdre ses données. Du point de vue de l’utilisateur, le concept est simple et utile, mais pour la personne qui est chargée de concevoir le logiciel … Continue reading

Posted in Uncategorized | Leave a comment