- I'm very busy
- labyrinth pattern
- press any key to continue
- fortune
- simulate type mechine (super cool!!)
- set volume by command
- cat and tac
- ASCII chart
- hate someone
- star war
I'm very busy
$ cat /dev/urandom | hexdump -C | grep "ca fe"
# or: https://www.commandlinefu.com/commands/view/6771/pretend-to-be-busy-in-office-to-enjoy-a-cup-of-coffee
$ j=0; while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done
# or: https://www.commandlinefu.com/commands/view/6673/pretend-to-be-busy-in-office-to-enjoy-a-cup-of-coffee
$ for i in `seq 0 100`; do timeout 6 dialog --gauge "Install..." 6 40 "$i"; done
# show quota
$ fortune | pv -qL 10
labyrinth pattern
$ while ( true ) ; do if [ $(expr $RANDOM % 2 ) -eq 0 ] ; then echo -ne "\xE2\x95\xB1" ; else echo -ne "\xE2\x95\xB2" ; fi ; done
press any key to continue
$ read -sn 1 -p "Press any key to continue..." && echo "\n"
Press any key to continue...\n
fortune
a random "cow" say a random thing
$ fortune | cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1)
-
$ for i in {1..20}; do fortune -w ; sleep 3; clear; done
simulate type mechine (super cool!!)
[!NOTE|label:references:]
$ sudo apt-get intall pv
$ echo "Very very very very very long words" | pv -qL $[10+(-2 + RANDOM%5)]
$ echo "You can simulate on-screen typing just like in the movies" | pv -qL 10
# or
$ sudo apt-get install randtype
$ echo "Very very very very very long words" | randtype -m 4
# or
$ echo "hello world !" | while read x; do for(( i=0; i<${#x}; i++ )); do echo -n "${x:$i:1}"; sleep .06; done; done
Simulate typing but with mistakes
$ echo -e "You are wa jerk\b\b\b\bwonderful person" | pv -qL $[10+(-2 + RANDOM%5)]
Mac osx friendly version of this terminal typing command at 200ms per key
$ message="I have a nice easy typing pace"; for ((i=0; i<${#message}; i++)); do echo "after 100" | tclsh; printf "${message:$i:1}"; done; echo
continuously print string as if being entered from the keyboard
$ cycle(){ while :;do((i++)); echo -n "${3:$(($i%${#3})):1}"; sleep .$(($RANDOM%$2+$1)); done; } # usage $ cycle 1 4 ' All work and no play makes Jack a dull boy.' $ cycle 1 3 $(openssl rand 100 | xxd -p)
set volume by command
$ pacmd set-sink-volume 0 0x10000
Welcome to PulseAudio! Use "help" for usage information.
cat and tac
$ cat a_b
1
2
3
$ tac a_b
3
2
1
ASCII chart
$ figlet Marslo
__ __ _
| \/ | __ _ _ __ ___| | ___
| |\/| |/ _` | '__/ __| |/ _ \
| | | | (_| | | \__ \ | (_) |
|_| |_|\__,_|_| |___/_|\___/
$ toilet marslo
""#
mmmmm mmm m mm mmm # mmm
# # # " # #" " # " # #" "#
# # # m"""# # """m # # #
# # # "mm"# # "mmm" "mm "#m#"
# with fonts
$ date +"%I:%M %P" | figlet -f /usr/local/share/figlet/future.tlf
┏━┓┏━┓ ┏━┓┏━┓ ┏━┓┏┳┓
┃┃┃╺━┫╹╺━┫ ┃ ┣━┫┃┃┃
┗━┛┗━┛╹┗━┛ ╹ ╹ ╹╹ ╹
$ date +"%I:%M %P" | toilet -f future
┏━┓┏━┓ ┏━┓┏━┓ ┏━┓┏┳┓
┃┃┃╺━┫╹╺━┫ ┃ ┣━┫┃┃┃
┗━┛┗━┛╹┗━┛ ╹ ╹ ╹╹ ╹
# with colors
$ toilet --gay -f term
# or
$ toilet --metal -f term
# have fun
$ fortune | toilet -w $(($(tput cols)-5)) -f pagga
░█▀▀░█░█░█▀▀░█▀▀░█▀▀░█▀▀░▀█▀░░░█░█░█▀█░█░█░░░▀▀█░█░█░█▀▀░▀█▀░░░█▀▀░▀█▀░▀█▀░░░▀█▀░█░█░█▀▀░█▀▄░█▀▀░░░█▀█░█▀█░█▀▄░░░█░█░█▀█
░▀▀█░█░█░█░█░█░█░█▀▀░▀▀█░░█░░░░░█░░█░█░█░█░░░░░█░█░█░▀▀█░░█░░░░▀▀█░░█░░░█░░░░░█░░█▀█░█▀▀░█▀▄░█▀▀░░░█▀█░█░█░█░█░░░█▄█░█▀█
░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░░▀░░░░░▀░░▀▀▀░▀▀▀░░░▀▀░░▀▀▀░▀▀▀░░▀░░░░▀▀▀░▀▀▀░░▀░░░░░▀░░▀░▀░▀▀▀░▀░▀░▀▀▀░░░▀░▀░▀░▀░▀▀░░░░▀░▀░▀░▀
░▀█▀░▀█▀░░░▀█▀░▀█▀░█░░░█░░░░░█░░░▀█▀░█▀▀░█▀▀░░░█▀▀░█▀▀░▀█▀░█▀▀░░░█▀▀░█▀█░█▀▀░▀█▀░█▀▀░█▀▄░░░
░░█░░░█░░░░░█░░░█░░█░░░█░░░░░█░░░░█░░█▀▀░█▀▀░░░█░█░█▀▀░░█░░▀▀█░░░█▀▀░█▀█░▀▀█░░█░░█▀▀░█▀▄░░░
░▀▀▀░░▀░░░░░▀░░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀▀▀░▀░░░▀▀▀░░░▀▀▀░▀▀▀░░▀░░▀▀▀░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░
hate someone
$ :(){ :|: & };:
star war
$ telnet towel.blinkenlights.nl