Posts about ruby

Image organizer based on exif data

27 February 2019

Here's a new script: Goes through all the folders for which you call it and finds and organizes JPG images.

The need came when i downloaded all my Google Photos and wanted to organize them in year and month folders.

Basically the script reads the EXIF data in the images and moves them into photos/<year>/<month>. If it cannot read the metadata, or fails parsing the date, or another weird reason, it skips that image and moves on.

Code (and instructions) available at https://github.com/noc...

Terraform - Infrastructure as code

18 January 2019

We recently started using this outstanding devops tool called Terraform at Drover. Basically it allows us to describe how we want our environments to be and apply that "plan" automatically. It's a bit like Ansible and its playbooks concept but - IMO - does a better job at tracking what resources exist and in which state they are in.

Think about it like writing down what your environment looks like, in terms of pretty much everything (load balancing, dns, servers, networking, connectivity, ser...

Commonly used (and abused) Ruby Gems

02 November 2017

Following up on my last post about Ruby gems, here's a list of some of my typical choices for various tasks in the Ruby and Ruby on Rails world:

active_model_serializers

Makes it real easy to define exactly how to serialize models in an API

annotate

Annotates Rails/ActiveRecord Models, routes, fixtures, and others based on the database schema. Very cool to know exactly which fields are present in your models, without having to look it up in the schema.rb file.

awesome_prin...

Displaying posts 1 - 3 of 12 in total