Skip to content

Instantly share code, notes, and snippets.

View t0xicCode's full-sized avatar
:shipit:

Xavier L. t0xicCode

:shipit:
View GitHub Profile

Objective: {what's the purpose of the test}

Environment

  • {codebase and database}

Pre-conditions

  • {environment setup}
  • {any tests that need to be run first}
@t0xicCode
t0xicCode / mediahint.js
Created July 25, 2013 17:36 — forked from raul/mediahint.js
Mediahint compatible PAC file
function FindProxyForURL(url, host){
var myip = myIpAddress();
var ipbits = myip.split(".");
var myseg = parseInt(ipbits[3]);
if(myseg == Math.floor(myseg/2)*2){
proxy = 'PROXY 165.225.131.153:80; PROXY 165.225.130.193:80';
} else {
proxy = 'PROXY 165.225.130.193:80; PROXY 165.225.131.153:80';
}
if((host == 'localhost')||(shExpMatch(host, 'localhost.*'))||(shExpMatch(host, '*.local'))||(shExpMatch(host, '*.lan'))||(host == '127.0.0.1')){