A few things have changed under the hood since the release of Bundler 2 last year. In order to take advantage of the new version, you will need to make sure you are using the most recent version. Open your Gemfile.lock and see that the current bundler version stored at the end of the file. … Continue reading Update bundler version in Gemfile.lock
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
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
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
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
If you are anything of a geek, you like to stay up2date about your craft. Nothing better then reading about peoples experiences to improve your own skills and insights. So the easiest way to keep on following someones blog is to add it to your favourite RSS aggregator. Unfortunately, even in 2015, you still find … Continue reading Creating RSS feeds from web pages with Ruby
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
Ever had your Linux /boot partition fill up? Well, unfortunately I have. Normally, you would just remove the kernels you don’t need anymore. Best way to do this is to first check what kernel version you are currently using: $ uname -r Next up is to list all available linux images: $ sudo dpkg –list ‘linux-image*’ … Continue reading Safely clean your /boot partition
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
NOTE: a rewritten version is available on the SemaphoreCi community page. It contains some more details on how to setup your environment. In my previous post, I explained how you could easily test your Ansible roles by using Travis CI. One of the down sides of Travis for me is that it’s still running on … Continue reading Testing Ansible roles with Semaphore