ZedTuX 0n R00t

Je travaille pour la plus grand entreprise du monde: L'open source.

Lister les fichiers modifiés entre deux branches Git

Si comme moi vous avez besoin de la liste des fichiers qui ont été mis à jour entre deux branches git, voici la commande “magique”: 1 git diff --name-only release master

Créer un nouveau gem et installer RSpec

Si comme moi vous oubliez toujours comment installer RSpec dans un gem fraichement créé, voici un petit mémo: 1 2 3 $ cd dans/le/dossier/de/developpements/ $ bundle gem nom-du-gem $ cd gem nom-du-...

Rails 4.2 with Docker not accessible

In the case you’re a Rails developer working with Docker, migrating your application to Rails 4.2 introduced the issue that when starting the application, you cannot access it anymore. Having a cl...

Installer une version précise de Rubygems

Si comme moi vous utilisez Docker, et que vous l’utilisez pour empaqueter une application Ruby On Rails qui utilise une version assez ancienne de Ruby, vous aurez sûrement besoin d’installer un Rub...

Newrelic agent installation failure

I just started my script in order to build a new version of a Docker image with fresh code and it failed with the following error: 1 2 3 4 5 dpkg: error processing newrelic-sysmond (--configure): ...

My Docker terminal aliases

In the case you developer using Docker, you have to adapt your environment in order to ease your life, like you did before. For example, I had created a function sc (for script console) in order t...

Rails + Devise utiliser plusieurs models

Habituellement lorsque vous travaillez avec Devise vous aurez des utilisateurs. Dans ce cas, Devise est très simple d’utilisation: 1 ligne de commande et vous êtes prêt. Mais lorsque vous désirez ...

Rails + Devise working with multiple models

The usual case with devise is to have users. In this case Devise is really easy: 1 command to run and you’re done. But when you want to manage different kind of users like having a class User and ...

Random images from Flickr with Ruby

I wanted to have a bit of fun when writing my tests and have my users having random avatars. Like using the Faker gem but with images. So how to get randomly images, without credentials (another d...

jQuery: Detect update of HTML element

While I was working on fixing some Cucumber tests in a Rails project having Twitter Boostrap and the unobtrusive_flash gem, I was needing to see the update of the flash message in my application wh...