rc-presentation/remote-present.sh

123 lines
1.9 KiB
Bash
Executable file

newslide() {
printf "\n"
read -r blank
clear
echo
}
append() {
read -r blank
echo
}
clear
echo
h1() {
echo $1 | figlet -c -f slant
}
h2() {
echo $1 | figlet -c -f small
}
h3() {
echo $1 | toilet --gay -f mini
}
rainbow() {
echo $1 | toilet --gay -f term
}
trap : 2
## NOW WE"RE REMOTING
h1 " we're on tilde now"
append
h3 incredible
append
echo "so like where's that demo?"
newslide
toilet -w 90 -f block --gay bunkdeck | tr "_|" "~#"
append
echo "i thought you said bunk chat?"
append
set -x
bunkdeck
{ set +x; } 2>/dev/null
newslide
echo "okay it's chat"
append
h1 "let's see some code already"
newslide
echo "there's some code for writing"
append
less ~/code/bunkchat/proclaim
newslide
echo "and some code for reading"
append
less ~/code/bunkchat/heed
newslide
echo "the install script includes an important piece of how this all works"
append
less ~/code/bunkchat/install.sh
newslide
echo "that's a load-bearing"
rainbow '`chattr +a`'
newslide
echo "before i explain the name, check this out:"
set -x
proclaim
{ set +x; } 2>/dev/null
append
echo "where indeed?"
append
set -x
heed
{ set +x; } 2>/dev/null
append
echo "utterly uninteractive"
newslide
echo "that stuff is 'bunkchat' - the core pieces"
echo "and this is 'bunkdeck' - terminal multiplexing made easy"
append
less ~/code/bunkdeck/bunkdeck
newslide
h2 "multi-user server"
append
echo "users with varied experience and comfort with a terminal"
echo "can love a tui"
newslide
echo "old tools"
append
h3 "nostalgia?"
newslide
h2 "no"
append
h3 "learning?"
newslide
h2 "yes!"
h2 "and fun!"
echo "i remote into this server all the time"
append
echo "and there's not even a page"
newslide
echo "discalimer:"
echo "bunkchat is probably"
h2 "not for low trust servers"
append
h3 "we're all friends here"
newslide
echo "okay cute!"
echo "thank you for visiting our tilde"
append
echo "time to abruptly close this connection"
newslide
exit 0