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="you_username"
  3. gmail_password="you_password"
  4. while [ 1 ]; do
  5. 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 )"
  6. line="$(echo "$fetch" | grep 'fullcount')"
  7. unread="$(echo "$line" | sed "s/<fullcount>\(.*\)<\/fullcount>/\1/")"
  8. if [ -z "$unread" ]; then
  9. echo “!”
  10. else
  11. echo$unread
  12. fi
  13. sleep 10m
  14. 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