Instantly share code, notes, and snippets.

View .vimrc
" Dependencies "
" For Deoplete:
" " Neovim Python3 provider (pip3 install neovim)
" For LanguageClient_Neovim:
" " ElixirLS built and available in $PATH (
View Flexible Dockerized Phoenix


I. Preface and Motivation

This guide was written because I don't particularly enjoy deploying Phoenix (or Elixir for that matter) applications. It's not easy. Primarily, I don't have a lot of money to spend on a nice, fancy VPS so compiling my Phoenix apps on my VPS often isn't an option. For that, we have Distillery releases. However, that requires me to either have a separate server for staging to use as a build server, or to keep a particular version of Erlang installed on my VPS, neither of which sound like great options to me and they all have the possibilities of version mismatches with ERTS. In addition to all this, theres a whole lot of configuration which needs to be done to setup a Phoenix app for deployment, and it's hard to remember.

For that reason, I wanted to use Docker so that all of my deployments would be automated and reproducable. In addition, Docker would allow me to have reproducable builds for my releases. I could build my releases on any machine that I wanted in a contai

View ComboMaker.ex
defmodule ComboMaker do
@moduledoc """
Provides functions for creating combolists out of password lists.
## Examples
iex> ComboMaker.make_combo("./input.txt", "./output.txt", "username")

Keybase proof

I hereby claim:

  • I am jswny on github.
  • I am jswny ( on keybase.
  • I have a public key whose fingerprint is 1284 E6C7 D565 D04D BB6C 0FFA 9E92 B3A4 650C 5228

To claim this, I am signing this object:

View fizz_buzz.exs
defmodule FizzBuzz do
def upto(n) when n >0 do
1..n |>
def fizzbuzz(n) do
case {rem(n, 3), rem(n, 5)} do
{0, 0} -> "FizzBuzz"
{0, _} -> "Fizz"
{0, 0} -> "Buzz"


  • Haskell
  • Go
  • Rust
  • Visual Studio Code
  • Vim
  • PostgreSQL
  • Elixir
  • Phoenix
# This file will automatically deploy using Docker to /var/www/
printf "Starting deployment...\n"
cd /var/www
printf "Cleaning up before starting...\n"
rm -rf
docker stop
docker rm
docker rmi jswny/