RSSAmplifier

Blog

96codes.dev | a dev blog by Benjamín Silva @silva96

A blog about software development, elixir, ruby, aws, javascript and best practices

blog.96codes.devRSS feed ↗6 posts

Latest posts

What's stopping you from reading your Rails logs like this in 2025?

I’ve been building a small TUI to read Rails logs less painfully during development. It configures itself to produce and then parse JSON logs in real time, group SQL queries under their HTTP request, and gives you filters, colors, sorting and instant...

Simple Ruby class to print ActiveRecord results as a table

You ever wanted to print a result of records in a fancier way? With this simple class you can print tables like this: records = Post.includes(:user).where(user_id: [1,2]) attributes = [:created_at, :title, {user: :name}] TablePrinter.new(records, ...

Finding the real ip: Cloudfront -> ELB -> Nginx -> Rails

There are several good reasons to put Cloudfront in front of your load balancers, as exposed here Performance Cacheable Content. Global Reach. Persistent Connections. Collapsed Forwarding. Security Distributed Denial of Service (DDOS) Encryption...

Elixir Phoenix development using Docker and Docker-Compose

Quick and dirty, this is my recipe for local development of elixir phoenix apps using docker and docker-compose. 3 important files: Dockerfile docker-compose.yml dev.exs Dockerfile FROM bitwalker/alpine-elixir-phoenix:latest # Cache elixir deps AD...

Continuous Integration in Elixir Phoenix with Travis-CI and Codecov

I'll show how to get travis-ci run your test suit and then upload the coverage report to codecov. All this, being shown on github pull request checks for reference. Something I've been doing more extensively lately is Unit Testing, not necessarily do...

Install Elixir and Erlang with asdf version manager

If you come from Ruby on Rails for example, it's very common to have rvm to manage your Ruby versions, but also you would probably need to install nvm to manage versions for Node.js too (since Rails now has webpack assets pipeline). This same story ...