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="username"
  3. gmail_password="password"
  4.  
  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.  
  9. if [ -z "$unread" ]; then
  10. echo “!”
  11. else
  12. echo$unread
  13. fi

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