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
function FindProxyForURL(url, host) { | |
PROXY = "PROXY 10.0.2.2:3128"; | |
if (shExpMatch(host, "*.local")) { | |
return PROXY; | |
} | |
return "DIRECT"; | |
} |
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
function FindProxyForURL(url, host) { | |
PROXY = "PROXY proxy.valuelens.local:3128"; | |
if (shExpMatch(host, "*.local")) { | |
return PROXY; | |
} | |
return "DIRECT"; | |
} |
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 com.sun.tools.attach._ | |
import org.apache.commons.io.IOUtils | |
import org.apache.hadoop.conf.Configuration | |
import org.apache.hadoop.fs.{FileSystem, Path} | |
import org.apache.spark.{SparkEnv, TaskContext} | |
import org.slf4j.{Logger, LoggerFactory} | |
import sun.tools.attach.HotSpotVirtualMachine | |
import java.lang.management._ | |
import java.nio.charset.Charset |
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
function FindProxyForURL(url, host) { | |
PROXY = "SOCKS5 proxy.local:8000;SOCKS proxy.local:8000"; | |
if (shExpMatch(host, "*.rock.apple.com")) { | |
return PROXY; | |
} | |
if (shExpMatch(host, "*.pie.apple.com")) { | |
return PROXY; | |
} | |
return "DIRECT"; | |
} |