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. 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 )"
  5. line="$(echo "$fetch" | grep 'fullcount')"
  6. unread="$(echo "$line" | sed "s/<fullcount>\(.*\)<\/fullcount>/\1/")"
  7. if [ -z "$unread" ]; then
  8. echo “!”
  9. else
  10. echo$unread
  11. 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