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
| import requests | |
| import json | |
| from urlparse import urlparse | |
| sip_domain = "SIP_DOMAIN.COM" | |
| username = "USERNAME@SIP_DOMAIN.COM" | |
| password = "YOUR_LYNC_PASSWORD" | |
| def extractAuthURL(str): | |
| start = str.find('MsRtcOAuth'); |
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, os, operator | |
| from os.path import isfile, join, getsize | |
| def list_files(path): | |
| binned_ranges = {} | |
| for dirpath, dirnames, filenames in os.walk(path): | |
| for filename in filenames: | |
| filesize=os.stat(os.path.join(dirpath,filename)).st_size | |
| base = 1024 |