Skip to content

Instantly share code, notes, and snippets.

View firestack's full-sized avatar
:accessibility:

Kayla Firestack firestack

:accessibility:
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@firestack
firestack / hendricks_formatter.ex
Created December 22, 2023 18:21 — forked from pmarreck/hendricks_formatter.ex
An Elixir formatting module for `mix format` that converts leading spaces to tabs.
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/
@firestack
firestack / bcachefs-support.nix
Last active October 20, 2021 12:40 — forked from YellowOnion/bcachefs-support.nix
bcachefs support (needs fixing)
{ config, lib, pkgs, ... }:
with lib;
let
kernel = {
date = "2021-10-01";
commit = "4114ced1db46";
hash = "05rnr7d704cq60k4yfw070ph9z6zjkrl68c07rca9cwx6km34zqf";
version = "5.13";
};
@firestack
firestack / sqlite2pg.sh
Last active June 3, 2016 08:25 — forked from eclubb/sqlite2pg.sh
Script to import SQLite3 database into PostgreSQL
#!/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
@firestack
firestack / PS1
Created March 11, 2015 08:04
Favorite PS1
\[\e]0;\u@\h: \w\a\]$(if [[ $? == 0 ]]; then echo "\[\e[0;32m\]"; else echo "\[\e[0;31m\]$? "; fi)[\u]\[\e[0;94m\][\w]\[\e[0m\]$