Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. G_SLICE="always-malloc firefox"
  2. #!/bin/bash -e
  3. export LC_ALL=en_US.UTF-8
  4. clear
  5. echo "_  _ _, _ _,_ _  ,   _, _ _ _, _ ___ "
  6. echo "|   | |\ | | | '\/    |\/| | |\ |  | "
  7. echo "|   | | \| | |  /\    |  | | | \|  | "
  8. echo "~~~ ~ ~  ~ ~ ~  ~   ~  ~ ~ ~  ~  ~ "
  9. echo "╔════════════════════════════════════╗"
  10. echo "║   M A I N - M E N U                ║"
  11. echo "╚════════════════════════════════════╝"
  12. echo "║1. ║ Text to Ascii                  ║"
  13. echo "╚═══╩════════════════════════════════╝"
  14. echo "║2. ║ Text to Ascii all setting      ║"
  15. echo "╚═══╩════════════════════════════════╝"
  16. echo "║3. ║ text-color-fader               ║"
  17. echo "╚═══╩════════════════════════════════╝"
  18. echo "║4. ║ Search On Google               ║"
  19. echo "╚═══╩════════════════════════════════╝"
  20. echo "║5. ║ Start Thunderbird failsafe     ║"
  21. echo "╚═══╩════════════════════════════════╝"
  22. echo "║6. ║ Kill A program                 ║"
  23. echo "╚═══╩════════════════════════════════╝"
  24. echo "║7. ║ New Post @ Blog                ║"
  25. echo "╚═══╩════════════════════════════════╝"
  26. echo "║8. ║ Blåljus RSS                    ║"
  27. echo "╚═══╩════════════════════════════════╝"
  28. echo "Enter choice"
  29. read choice
  30. case $choice in
  31. 1)
  32. clear
  33. echo "Enter Text:"
  34. read t
  35. firefox -new-tab "http://patorjk.com/software/taag/#p=display&f=Graffiti&t="$t
  36. read -p "$t" readEnterKey
  37. ;;
  38. 2)  
  39. clear
  40. echo "Enter Text:"
  41. read t
  42. firefox -new-tab "http://patorjk.com/software/taag/#p=testall&f=Graffiti&t="$t
  43. echo "Hit the Enter key to  continue"
  44. ;;
  45. 3)    
  46. clear
  47. echo "Hit the Enter key to  continue"
  48. firefox http://patorjk.com/text-color-fader
  49. ;;
  50. 4)    
  51. clear
  52. read text
  53. firefox -search "$text"
  54. echo "Hit the Enter key to  continue"
  55. ;;
  56. 5)    
  57. clear
  58. cd usr/lib/thunderbird/thunderbird
  59. thunderbird -safe-mode
  60. echo "Hit the Enter key to  continue"
  61. ;;
  62. 6)
  63. clear
  64. echo "kill app:"
  65. read app
  66. echo "Hit the Enter key to  continue:"
  67. sudo ps -ef | awk '/'$app'/ && !/awk/ {print $2}' | xargs -r kill -9
  68. ;;
  69. 7)
  70. clear
  71. echo "Blogg New Post:"
  72. thunderbird -compose to="hyntish82.lh2ex49iofht@blogger.com",subject="Nytt Inlägg",body="text..."
  73. ;;
  74. 8)
  75. clear
  76. echo "Blåljus RSS:"
  77. RSS_URL=http://blåljus.se/rss.aspx
  78. wget ${RSS_URL} -O - 2>/dev/null | \
  79. xmlstarlet sel -t -m "/rss/channel/item" \
  80.   -v "guid" -n -v "pubDate" -n -v "title" -n -v "description" -n -v "link" -n -n
  81. #First Try....remove # if u want 2 try
  82. #wget -q -O- $RSS_URL | awk 'BEGIN{RS="<title>"}
  83. #{
  84. #gsub(/.*<description>|<\/description>.*/,"")
  85. #gsub(/.*<rss version="2.0">|<\/rss>>.*/,"")
  86. #gsub(/.*<channel>|<\/channel>.*/,"")
  87. #gsub(/.*<link><\/link>.*/,"")
  88. #gsub(/.*<language>|<\/language>.*/,"")
  89. #gsub(/.*<pubDate>|<\/pubDate>.*/,"")
  90. #print $0
  91. #}'
  92. ;;
  93. esac