This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from azure.storage.blob import BlobService | |
blob_service=BlobService(account_name='x', account_key='x', ) | |
marker=None | |
while True: | |
containers = blob_service.list_containers(marker=marker) | |
for c in containers: | |
print c.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
from twilio.rest import TwilioRestClient | |
# Your Account Sid and Auth Token from twilio.com/user/account | |
account_sid = "AC0axxxxxxxxxxxxxxxxxxxxx296ae" | |
auth_token = "93exxxxxxxxxxxxxxxxxxxx263e9" | |
client = TwilioRestClient(account_sid, auth_token) | |
message = client.messages.create(body=sys.argv[2], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding=utf-8 | |
import urllib2 | |
import re | |
import os | |
import base64 | |
# the url of gfwlist | |
baseurl = 'https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Zabbix SMTP Alert script for gmail and Amazon SES. | |
""" | |
import sys | |
import smtplib | |
from email.MIMEText import MIMEText | |
from email.Header import Header |