Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. #!/bin/bash
  2. gmail_login="uzezdu"
  3. gmail_password="87361465"
  4.  
  5.  
  6. while [ 1 ]; do
  7.  
  8. fetch="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom --no-check-certificate )"
  9. line="$(echo "$fetch" | grep 'fullcount')"
  10. unread="$(echo "$line" | sed "s/<fullcount>\(.*\)<\/fullcount>/\1/")"
  11.  
  12.  
  13. if [ -z "$unread" ]; then
  14. echo “!”
  15. else
  16. echo$unread
  17. fi
  18.  
  19. sleep 10
  20.  
  21. done

Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2010
Some API could be found at http://s-c.me/WS/HighLight.asmx