Skip to content

Instantly share code, notes, and snippets.

@mmzeeman
mmzeeman / download.escript
Last active October 25, 2026 12:40
Small self-contained downloader implemented entirely in Erlang. Optionally can verify a sha256 checksum and make the file executable.
#!/usr/bin/env escript
%%! -noshell
%% download.escript
%%
%% This script can download and verify a file with Erlang.
%%
%% Functions:
%% * Download a file over HTTPS with the ssl and inets
%% applications.