This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule HendricksFormatter do | |
@moduledoc """ | |
This module is a formatter plugin for Elixir's `mix format` task | |
that converts leading whitespace to tabs. | |
It tries to intelligently determine the tab width based on the most common | |
counts of leading space runs in the file. | |
It allows additional space characters for minor adjustments that are below the tab width. | |
OK, why tabs? Why resurrect this age-old nerd debate again? | |
Very simple: It's an accessibility issue: | |
https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
kernel = { | |
date = "2021-10-01"; | |
commit = "4114ced1db46"; | |
hash = "05rnr7d704cq60k4yfw070ph9z6zjkrl68c07rca9cwx6km34zqf"; | |
version = "5.13"; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
# Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
# Some column types are not handled (e.g blobs). | |
export PGPASSWORD="" | |
PG_DB_NAME=$1 | |
PG_USER_NAME=$2 |