Extend Rails code metrics

Rails ships with an easy way to get some quick code metrics about your application’s code and test coverage. For instance, running bin/rails stats will provide you with some important bits of information about the status and health of your project: +———————-+——–+——–+———+———+—–+——-+ | Name | Lines | LOC | Classes | Methods | M/C | … Continue reading Extend Rails code metrics

SSL certificate installation on the Ubiquiti Unifi controller

As a lot of users, I got tired of the SSL certificate error page every time I visit the controller’s page. Unfortunately, Ubiquiti doesn’t provide an “easy” upload functionality through the web interface. But they do provide some documentation, which seems easy and quick enough. Or so I thought. Ubiquiti documentation You can find the … Continue reading SSL certificate installation on the Ubiquiti Unifi controller

How to install ruby pg gem without PostgreSQL locally

Let’s say you’re using Docker for your local development in order to keep your development system nice and clean. Not having to install all needed dependencies on your local machine (like for instance PostgreSQL) and have everything packaged and documented for all developers is one of the advantages containers bring us. But when developing in Rails, … Continue reading How to install ruby pg gem without PostgreSQL locally

Setup Let’s Encrypt to Secure Your Website

If you don’t know what Let’s Encrypt is, let me briefly explain. Let’s Encrypt is a free, automated and open Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates. As mentioned on their website, the key principles behind Let’s Encrypt are: Free: Anyone who owns a domain name can … Continue reading Setup Let’s Encrypt to Secure Your Website

Testing Ansible Roles on Multiple Operating Systems with Docker and Semaphore

NOTE: This article was initialy written for the SemaphoreCi community page. Introduction In a previous article, we wrote about testing Ansible roles directly against Semaphore. This is great when you are targeting the same operating system as your continuous integration server, but what to do if you you need to target other operating systems as … Continue reading Testing Ansible Roles on Multiple Operating Systems with Docker and Semaphore

Useful Ruby gems to improve your code quality and skills

How do you prevent your application to deteriorate over time? Or even improve your coding skills? That’s a question a lot of developers ask. I like to include some handy tools that help me check the state of an application and code. Since everything is changing so rapidly, it is sometimes hard to keep up with … Continue reading Useful Ruby gems to improve your code quality and skills

Testing Ansible Roles with Travis CI

Ansible is a great config management tool. Unfortunately I lacked the time of writing a bit more about minding, except of my 2 previous posts (Getting started with configuration management: Ansible and Configuration management with Ansible: Playbooks & Execution ) Not that I haven’t done anything new on that front. I’m currently using / maintaining some … Continue reading Testing Ansible Roles with Travis CI