From e7b81669dd09be71335f727f2e19b6a158689730 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Tue, 16 Mar 2021 10:57:32 +0100 Subject: [PATCH] add script bin/rainbow64 because it's cool (requires lolcat) --- bin/rainbow64 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/rainbow64 diff --git a/bin/rainbow64 b/bin/rainbow64 new file mode 100755 index 0000000..7513c65 --- /dev/null +++ b/bin/rainbow64 @@ -0,0 +1,16 @@ +#!/bin/bash + +DEFAULT_DELAY=0.033 +DELAY=${1:-$DEFAULT_DELAY} + +random_chars() { + while true; do + COLS=$(tput cols) + head -c $COLS /dev/urandom | base64 -w 0 | cut -c1-$COLS + sleep $DELAY + done +} + +random_chars | lolcat +echo +