first commit

This commit is contained in:
*****DEAD ACCOUNT 2021-01-01 08:24:40 -05:00
commit fe84036609
No known key found for this signature in database
GPG Key ID: 7AF3499CBA8E6251
2 changed files with 20 additions and 0 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# Quickstart
- `sudo apt install parallel curl pv iconv`
- `export TERM=xterm-256color`
- `./textfiles_dot_com_ansi_player.sh`
## Reccomended fonts
- Hack Nerd font Mono

View File

@ -0,0 +1,12 @@
#!/bin/bash
cat <(curl -s -L http://artscene.textfiles.com/ansi/scene/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/scene/"$2}' | tr -d '"' | shuf) \
<(curl -s -L http://artscene.textfiles.com/ansi/logos/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/logos/"$2}' | tr -d '"' | shuf) \
<(curl -s -L http://artscene.textfiles.com/ansi/holiday/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/holiday/"$2}' | tr -d '"' | shuf) \
<(curl -s -L http://artscene.textfiles.com/ansi/artwork/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/artwork/"$2}' | tr -d '"' | shuf) \
<(curl -s -L http://artscene.textfiles.com/ansi/unsorted/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/unsorted/"$2}' | tr -d '"' | shuf) \
<(curl -s -L http://artscene.textfiles.com/ansi/bbs/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/bbs/"$2}' | tr -d '"' | shuf) \
<(curl -s -L http://artscene.textfiles.com/ansi/welcomes/ | tr '>' ' ' | tr '<' ' ' | awk '{print $6}' | grep HREF | tr '=' ' ' | awk '{print "http://artscene.textfiles.com/ansi/welcomes/"$2}' | tr -d '"' | shuf) \
| shuf \
| parallel -j1 clear ';' curl -s -L {} '|' iconv -t UTF-8 -f cp437 ';' yes \$\(echo -ne '"\\033[0A\\033[0B"'\) '|' head -n 300 '|' tr -d "'\n'" \
| pv -q -L 300