HomeAbout me

Simple Ruby class to print ActiveRecord results as a table

Mar 5, 20213 min read

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

Dec 22, 20204 min read

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

Nov 26, 20202 min read

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

Nov 26, 20205 min read

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

Nov 25, 20203 min read

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 ...

© 2021 96Codes

PrivacyTerms
Proudly part of