I hereby claim:
- I am afronski on github.
- I am afronski (https://keybase.io/afronski) on keybase.
- I have a public key ASDzk7ZT2h6mIc7nADkrOkxs1_EFcFmPVW_cPIpi3-tP4Ao
To claim this, I am signing this object:
#!/usr/bin/env python | |
import sys | |
from http.server import HTTPServer, SimpleHTTPRequestHandler, test as test_orig | |
def test (*args): | |
test_orig(*args, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000) | |
class CORSRequestHandler (SimpleHTTPRequestHandler): | |
def end_headers (self): |
I hereby claim:
To claim this, I am signing this object:
$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769
Note the running on port
for epmd
itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:
$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
defmodule FizzBuzz do | |
def transform(value) when rem(value, 15) == 0, do: "FizzBuzz" | |
def transform(value) when rem(value, 3) == 0, do: "Fizz" | |
def transform(value) when rem(value, 5) == 0, do: "Buzz" | |
def transform(value), do: value | |
def up_to(n) do | |
1 .. n | |
|> Enum.to_list | |
|> Enum.map(&transform/1) |