View .vimrc
""""""""""""""""
" Dependencies "
""""""""""""""""
" For Deoplete:
" " Neovim Python3 provider (pip3 install neovim)
" For LanguageClient_Neovim:
" " ElixirLS built and available in $PATH (https://github.com/JakeBecker/elixir-ls)
""""""""""""""""
View Flexible Dockerized Phoenix Deployments.md

Prelude

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")
:ok
View keybase.md

Keybase proof

I hereby claim:

  • I am jswny on github.
  • I am jswny (https://keybase.io/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 |> Enum.map(&fizzbuzz/1)
end
def fizzbuzz(n) do
case {rem(n, 3), rem(n, 5)} do
{0, 0} -> "FizzBuzz"
{0, _} -> "Fizz"
{0, 0} -> "Buzz"
View hn-opinions.md

Likes

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