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
#! python | |
# encoding: utf-8 | |
import sys | |
import logging | |
import logging.handlers | |
import urllib | |
from urlparse import urlsplit, urlunsplit, urljoin |
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
certutil.exe -urlcache -split -f %1 proxytest.py | |
echo "fries" | |
certutil.exe -urlcache -split -f "http://127.0.0.1:19876/pac.js" pac.js | |
c:\python27\python.exe proxytest.py |
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
#! python | |
import re | |
pattern = r"PROXY (\d+\.\d+\.\d+\.\d+):(\d+)" | |
f = open("pac.js", "r") | |
for line in f: | |
if re.search(pattern, line): | |
print("Match: %s" % line) | |
else: |
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
@echo %time% |
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
@echo echo "Q" | openssl s_client -connect dev.portaldeassinaturas.com.br:443 -servername dev.portaldeassinaturas.com.br -showcerts |
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
REG ADD "HKCU\Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList" /v "google.com" /d "google.com" /t REG_SZ /f | |
REG QUERY "HKCU\Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList" /s |
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
module SauceCapybara | |
class Driver < Capybara::Selenium::Driver | |
# No need to clean up after sessions & no need to wait until all | |
# processes have ended to call close (and doing so can cause timeout | |
# problems on Sauce) so just quit now. | |
def reset! | |
quit | |
end | |
end | |
end |
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
tracert google.com |
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
#! /bin/bash | |
defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false | |
defaults write com.apple.safari PreloadTopHit -boolean false | |
echo "Set defaults" |
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
// Add to the end of your imports | |
import java.net.URLEncoder; | |
public String username = "someone@company"; | |
public String accesskey = "abc123-defgh4312-deftg"; | |
// Inside your driver creation method | |
String seleniumServer = "ondemand.saucelabs.com:443"; | |
String authenticatedURL = "https://" + URLEncoder.encode(username) + ":" + accesskey + "@" + seleniumUrl + "/wd/hub"; |