brian wickman - @wickman
[TOC]
Pants makes the manipulation and distribution of hermetically sealed Python environments
| #!/usr/bin/env python | |
| """ | |
| FUNCTION: Converts a CSV (tab delimited) file to an Excel xlsx file. | |
| Copyright (c) 2016, Konrad Foerstner <konrad@foerstner.org> | |
| Permission to use, copy, modify, and/or distribute this software for | |
| any purpose with or without fee is hereby granted, provided that the | |
| above copyright notice and this permission notice appear in all | |
| copies. |
| grok { | |
| tags => "postfix/smtpd" | |
| pattern => [ "%{POSTFIXSMTPDCONNECTS}", | |
| "%{POSTFIXSMTPDACTIONS}", | |
| "%{POSTFIXSMTPDTIMEOUTS}", | |
| "%{POSTFIXSMTPDLOGIN}", | |
| "." ] | |
| named_captures_only => true | |
| } |
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
| input { | |
| stdin { type => "file" } | |
| #redis { | |
| # data_type => 'list' | |
| # host => 'localhost' | |
| # key => 'logstash:beaver' | |
| # type => 'redis-input-beaver' | |
| #} | |
| } |
| # Postfix stuff | |
| QUEUEID (?:[A-F0-9]+|NOQUEUE) | |
| EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+ | |
| EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote} | |
| RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?) |
| # coding=UTF-8 | |
| from __future__ import division | |
| import re | |
| # This is a naive text summarization algorithm | |
| # Created by Shlomi Babluki | |
| # April, 2013 | |
| class SummaryTool(object): |
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
| # Postfix stuff based on https://gist.github.com/jbrownsc/4694374: | |
| QUEUEID (?:[A-F0-9]+|NOQUEUE) | |
| EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+ | |
| EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote} | |
| RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?) | |
| POSREAL [0-9]+(.[0-9]+)? | |
| DELAYS (%{POSREAL}[/]*)+ | |
| DSN %{NONNEGINT}.%{NONNEGINT}.%{NONNEGINT} | |
| STATUS sent|deferred|bounced|expired |
| from bs4 import BeautifulSoup | |
| import requests | |
| def main(): | |
| #r = requests.get('http://www.aurionpro.com/') | |
| r = requests.get('http://www.sourcebits.com/') | |
| soup = BeautifulSoup(r.content, "html") | |
| title = soup.title.string |