Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| defmodule HttpRequester do | |
| use GenServer | |
| def start_link(_) do | |
| GenServer.start_link(__MODULE__, nil, []) | |
| end | |
| def fetch(server, url) do | |
| # Don't use cast: http://blog.elixirsips.com/2014/07/16/errata-dont-use-cast-in-a-poolboy-transaction/ | |
| timeout_ms = 10_000 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| -module(signature). | |
| -export([test/0]). | |
| % Looking at using Open SSH public and private keys | |
| % for signing and verifying hashed data. | |
| load_public_key(Filename) -> | |
| {ok, SshBin} = file:read_file(Filename), | |
| [{PubKey,_}] = public_key:ssh_decode(SshBin, public_key), | |
| PubKey. |