Skip to content

Instantly share code, notes, and snippets.

Thiago Guimarães thiagogsr

View GitHub Profile
@thiagogsr
thiagogsr / application.ex
Created Apr 3, 2019
proxy for umbrella apps
View application.ex
defmodule Proxy.Application do
@moduledoc """
Proxy
ref: https://gist.github.com/ktec/ed2303eb167bd54ed1e390cd9371cc41
"""
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
@thiagogsr
thiagogsr / application.ex
Last active Mar 28, 2019
Task supervisor
View application.ex
defmodule A.Application do
@moduledoc """
Application GenServer. It starts all supervisors and workers.
"""
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
@thiagogsr
thiagogsr / libreadline.sh
Last active Feb 12, 2019
Fix libreadline error on OSX
View libreadline.sh
ln -s /usr/local/opt/readline/lib/libreadline.8.0.dylib /usr/local/opt/readline/lib/libreadline.7.dylib
@thiagogsr
thiagogsr / fix-rmagic.sh
Created Feb 17, 2017
Install RMagick on OSX
View fix-rmagic.sh
brew rm imagemagick
cd "$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/"
git checkout 6f014f2b7f1f9e618fd5c0ae9c93befea671f8be imagemagick.rb
brew install imagemagick
brew pin imagemagick
git reset --hard
@thiagogsr
thiagogsr / devise_invitable.pt-BR.yml
Last active Aug 9, 2016
Translation for DeviseInvitable to pt_BR and pt
View devise_invitable.pt-BR.yml
pt_BR:
devise:
failure:
invited: 'Você tem um convite pendente, aceite para finalizar sua conta.'
invitations:
send_instructions: 'Um email de convite foi enviado para %{email}.'
invitation_token_invalid: 'O código do convite não é válido!'
updated: 'Sua senha foi atualizada com sucesso. Você está autenticado agora.'
no_invitations_remaining: "Sem convites pendentes"
invitation_removed: 'Seu convite foi removido.'
You can’t perform that action at this time.