Skip to content

Instantly share code, notes, and snippets.

View douglastofoli's full-sized avatar
⚗️
I'm an alchemist!

Douglas Tofoli douglastofoli

⚗️
I'm an alchemist!
View GitHub Profile
@douglastofoli
douglastofoli / setup.sh
Created June 20, 2025 20:16
Elixir Setup for Codex Cloud
#!/usr/bin/env bash
set -euo pipefail
sudo add-apt-repository -y ppa:rabbitmq/rabbitmq-erlang
sudo apt update -y
sudo apt install -y git elixir erlang
mix archive.install github hexpm/hex branch latest --force
install -Dm644 "$CODEX_PROXY_CERT" /usr/local/share/ca-certificates/codex-proxy.crt
defmodule Colors do
def random_hexadecimal do
random_color = generate_random_color()
if is_light_color?(random_color) do
random_hexadecimal()
else
random_color
end
end