Skip to content

Instantly share code, notes, and snippets.

View Aduril's full-sized avatar

Peter Melinat Aduril

  • Peter Melinat
  • Rostock
View GitHub Profile
defmodule TextFileUtils do
def fix_line_breaks(file_path) do
{:ok, file} = File.open(file_path)
out_file_path = "/tmp/fixed_file_#{:erlang.system_time}.tmp"
{:ok, out_file} = File.open(out_file_path, [:write])
process_file(file, out_file, "")
File.close(file)
File.close(out_file)
out_file_path
end
@justgage
justgage / README.md
Last active January 30, 2023 20:50 — forked from jasonm23/README.md
Elixir mix oh-my-zsh completion plugin

Elixir Mix Oh-My-Zsh plugin

This will give you completion when you type mix <tab> inside your project. This was forked to make it work with current versions of Elixir as of Sep 10th 2020.

  • Download the zip file.

  • Copy the folder (and rename it to something sensible) to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list:

plugins=(