Skip to content

Instantly share code, notes, and snippets.

@pashri
Created January 2, 2021 19:59
Show Gist options
  • Save pashri/774c3ffde63a0e10f81145c7fe8a88ff to your computer and use it in GitHub Desktop.
Save pashri/774c3ffde63a0e10f81145c7fe8a88ff to your computer and use it in GitHub Desktop.
How to look busy
#!/bin/bash
cleanup () {
tput cnorm
exit 0
}
clear
trap cleanup EXIT TERM
tput civis
while true; do
head -c$[(`tput cols` / 25)*10*($RANDOM%10+1)] /dev/urandom | od -An -w$[(`tput cols` / 25)*10] -x | grep -E --color "([[:alpha:]][[:digit:]]){2}";
sleep .$[$RANDOM % 10];
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment