Skip to content

Instantly share code, notes, and snippets.

View zoq's full-sized avatar
💭
breathing

Marcus Edel zoq

💭
breathing
View GitHub Profile
@zoq
zoq / epmdless.ex
Created January 18, 2017 17:22 — forked from legoscia/epmdless.ex
# Requires Erlang/OTP 19.0. Invoke as:
#
# iex --erl "-proto_dist Elixir.Epmdless -start_epmd false -epmd_module Elixir.Epmdless_epmd_client" --name frobozz3
# A module containing the function that determines the port number
# based on a node name.
defmodule Epmdless do
def dist_port(name) when is_atom(name) do
dist_port Atom.to_string name
end