G_SLICE="always-malloc firefox"
#!/bin/bash -e
export LC_ALL=en_US.UTF-8
clear
echo "_ _ _, _ _,_ _ , _, _ _ _, _ ___ "
echo "| | |\ | | | '\/ |\/| | |\ | | "
echo "| | | \| | | /\ | | | | \| | "
echo "~~~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "
echo "╔════════════════════════════════════╗"
echo "║ M A I N - M E N U ║"
echo "╚════════════════════════════════════╝"
echo "║1. ║ Text to Ascii ║"
echo "╚═══╩════════════════════════════════╝"
echo "║2. ║ Text to Ascii all setting ║"
echo "╚═══╩════════════════════════════════╝"
echo "║3. ║ text-color-fader ║"
echo "╚═══╩════════════════════════════════╝"
echo "║4. ║ Search On Google ║"
echo "╚═══╩════════════════════════════════╝"
echo "║5. ║ Start Thunderbird failsafe ║"
echo "╚═══╩════════════════════════════════╝"
echo "║6. ║ Kill A program ║"
echo "╚═══╩════════════════════════════════╝"
echo "║7. ║ New Post @ Blog ║"
echo "╚═══╩════════════════════════════════╝"
echo "║8. ║ Blåljus RSS ║"
echo "╚═══╩════════════════════════════════╝"
echo "Enter choice"
read choice
case $choice in
1)
clear
echo "Enter Text:"
read t
firefox -new-tab "http://patorjk.com/software/taag/#p=display&f=Graffiti&t="$t
read -p "$t" readEnterKey
;;
2)
clear
echo "Enter Text:"
read t
firefox -new-tab "http://patorjk.com/software/taag/#p=testall&f=Graffiti&t="$t
echo "Hit the Enter key to continue"
;;
3)
clear
echo "Hit the Enter key to continue"
firefox http://patorjk.com/text-color-fader
;;
4)
clear
read text
firefox -search "$text"
echo "Hit the Enter key to continue"
;;
5)
clear
cd usr/lib/thunderbird/thunderbird
thunderbird -safe-mode
echo "Hit the Enter key to continue"
;;
6)
clear
echo "kill app:"
read app
echo "Hit the Enter key to continue:"
sudo ps -ef | awk '/'$app'/ && !/awk/ {print $2}' | xargs -r kill -9
;;
7)
clear
echo "Blogg New Post:"
thunderbird -compose to="hyntish82.lh2ex49iofht@blogger.com",subject="Nytt Inlägg",body="text..."
;;
8)
clear
echo "Blåljus RSS:"
RSS_URL=http://blåljus.se/rss.aspx
wget ${RSS_URL} -O - 2>/dev/null | \
xmlstarlet sel -t -m "/rss/channel/item" \
-v "guid" -n -v "pubDate" -n -v "title" -n -v "description" -n -v "link" -n -n
#First Try....remove # if u want 2 try
#wget -q -O- $RSS_URL | awk 'BEGIN{RS="<title>"}
#{
#gsub(/.*<description>|<\/description>.*/,"")
#gsub(/.*<rss version="2.0">|<\/rss>>.*/,"")
#gsub(/.*<channel>|<\/channel>.*/,"")
#gsub(/.*<link><\/link>.*/,"")
#gsub(/.*<language>|<\/language>.*/,"")
#gsub(/.*<pubDate>|<\/pubDate>.*/,"")
#print $0
#}'
;;
esac