This file contains hidden or 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 hidden or 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
| import java.util.logging.*; | |
| public class LogFormatter extends Formatter | |
| { // a drop in replacement for standard lib logs | |
| public static final String RESET = "\u001b[0m"; | |
| public static final String RED = "\u001b[31m"; | |
| public static final String YELLOW = "\u001b[33m"; | |
| public static final String BLUE = "\u001b[34m"; | |
| public static final String GREEN = "\u001b[32m"; |
This file contains hidden or 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
| alias sudo="sudo " | |
| alias listi="emerge -pqe @world" | |
| alias listall="emerge -pqe --nodeps @selected" | |
| alias listworld="emerge -pqe --nodeps @world" | |
| alias listdups="equery list --duplicates '*'" | |
| alias sync="emerge --sync" | |
| alias install="emerge -avq " | |
| alias remove="emerge --depclean -avq " |
This file contains hidden or 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
| public class ConsoleColors { | |
| // Reset | |
| public static final String RESET = "\033[0m"; // Text Reset | |
| // Regular Colors | |
| public static final String BLACK = "\033[0;30m"; // BLACK | |
| public static final String RED = "\033[0;31m"; // RED | |
| public static final String GREEN = "\033[0;32m"; // GREEN | |
| public static final String YELLOW = "\033[0;33m"; // YELLOW | |
| public static final String BLUE = "\033[0;34m"; // BLUE |
This file contains hidden or 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
| # GitHub CLI api | |
| # https://cli.github.com/manual/gh_api | |
| ### GIT AND PRINT ALL REPOSITORIES ### | |
| # gh api --paginate \ | |
| # -H "Accept: application/vnd.github+json" \ | |
| # -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| # /user/repos | jq '.[].html_url' | awk '{print $NF}' FS=/ | awk -F\" '{print $1}' |
This file contains hidden or 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
| class colors: | |
| default = 0 | |
| teal = 0x1abc9c | |
| dark_teal = 0x11806a | |
| green = 0x2ecc71 | |
| dark_green = 0x1f8b4c | |
| blue = 0x3498db | |
| dark_blue = 0x206694 | |
| purple = 0x9b59b6 | |
| dark_purple = 0x71368a |