Skip to content

Instantly share code, notes, and snippets.

View aseba's full-sized avatar
🤣

Sebastian Alvarez aseba

🤣
  • Barcelona
View GitHub Profile
@aseba
aseba / gist.py
Last active December 15, 2015 03:59
Small python script that creates a new anonymous gist with content coming from stdin
#!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import sys
import urllib
from optparse import OptionParser
parser = OptionParser()
/usr/bin/sqlite3 /home/lalita/db/url.db 'select * from url WHERE date = date();' | awk -F "|" '{print $8, "["$2"]" , "by", $5 "\n"}' | mail mail@server.com -s "Links Digest for $(date +"%d-%m-%Y")"