Skip to content

Instantly share code, notes, and snippets.

@0atman
0atman / configuration.nix
Last active June 28, 2024 20:16
A rebuild script that commits on a successful build
{
config,
pkgs,
options,
...
}: let
hostname = "oatman-pc"; # to alllow per-machine config
in {
networking.hostName = hostname;
@tonybaloney
tonybaloney / image2ansi.py
Last active January 22, 2022 10:23
Display an image in ASCII with ANSI colors
"""
image2ansi.py
usage: image2ansi.py [-h] [--no-color] [--width WIDTH] path
Display an image in ASCII with ANSI colors
positional arguments:
path the path to the image file
optional arguments:
-h, --help show this help message and exit
--no-color no ANSI colors
--width WIDTH output width in characters (Default 120)