Home
João Carlos Ottobboni (@jcottobboni)
Cancel

Rails Routing Constraints

When to use Routing Constraints in Rails? Constraint allows the router to behave differently based on the request at the routing level instead of controller level. eg showing a different homepage ...

Seeding Your Database with Rake Tasks

:link: What is Rake? Rake is a build automation tool written in Ruby. It allows you to automate tasks such as running tests, migrating databases, and more. Rails uses Rake for running various tas...

Setting Up a Local Kubernetes Cluster with Minikube and Deploying a Ruby on Rails Application with PostgreSQL

Setting Up a Local Kubernetes Cluster with Minikube and Deploying a Ruby on Rails Application with PostgreSQL This tutorial will guide you through setting up a local Kubernetes cluster using Minik...

How to Install Docker on Ubuntu/Debian

How to Install Docker on Ubuntu/Debian Docker is a container platform that allows you to develop, ship, and run applications in isolation. This tutorial will guide you through the process of insta...

Truncate database in Ruby on Rails 6

Truncate database in Ruby on Rails 6 Instead of chaining rails db:drop, rails db:create and rails db:migrate we are finally able to use one command that will clean database in case you have to seed...

Ruby On Rails console sandbox mode

Ruby On Rails console sandbox mode If you want to perform some data migration/modification on production and you want to be sure that it will not break anything you can always perform a test run us...

Install Metabase with Systemd on Ubuntu

Install Metabase with Systemd on Ubuntu mkdir metabase && cd metabase wget https://downloads.metabase.com/v0.38.3/metabase.jar sudo apt -y install openjdk-11-jdk openjdk-11-jre sudo grou...

sshuttle instead of ssh port fowarding

sshuttle instead of ssh port fowarding sshuttle is awesome. sshuttle -r your_user@192.168.1.20 10.10.10.0/24

Gnome Control Center on i3wm

Running gnome-control-center in i3 session Here is the issue: I’m running i3 on the desktop, but still need to have GNOME Evolution to do some system configurations more easily. Evolution is config...

Automating PostgreSQL Restores

Required reading PostgreSql command line utilities without provide password Sending messages to slack with bash script Let’s go then Recently i need to build some bash scripts to implement a auto...