Skip to content

Instantly share code, notes, and snippets.

View paynegreen's full-sized avatar
🏠
Working from home

Edwin Selormey paynegreen

🏠
Working from home
View GitHub Profile
@paynegreen
paynegreen / .iex.exs
Created May 9, 2023 22:04 — forked from DaniruKun/.iex.exs
My custom global IEx script file that is preloaded before each IEx session. Adds some convenience functions.
IO.puts("Using .iex.exs file loaded from #{__DIR__}/.iex.exs")
defmodule Util do
def atom_status do
limit = :erlang.system_info(:atom_limit)
count = :erlang.system_info(:atom_count)
IO.puts("Currently using #{count} / #{limit} atoms")
end