Skip to content

Instantly share code, notes, and snippets.

View ivopt's full-sized avatar
🏠
Working from random places!

Ivo Jesus ivopt

🏠
Working from random places!
View GitHub Profile
@jiparis
jiparis / README.md
Created March 19, 2018 12:00 — forked from reu/README.md
Ruby annotations

Imagine this case:

class Account < ActiveRecord::Base
  def transfer(other, quantity)
    tries = 0
    begin
      tries += 1
      transaction do
        self.quantity -= quantity
@AliOsm
AliOsm / .env
Last active July 8, 2024 17:21
Deploy Rails, GoodJob, PostgreSQL, Redis, Memcached, Meilisearch, and ChromaDB on the same server using Kamal.
KAMAL_REGISTRY_PASSWORD=dckr_pat_xXXxx_x0xXxXx-xX-XXX0xX0x-x
RAILS_MASTER_KEY=00x00xxx000xxx000000xx0x000x0x00
POSTGRES_PASSWORD=xXxxx0xXXx0
MEILI_MASTER_KEY=xXxxx0xXXx0
BLAZER_DATABASE_URL=postgres://service:{POSTGRES_PASSWORD}@service-name-postgres:5432/service_production