Skip to content

Instantly share code, notes, and snippets.

View matsbyfl's full-sized avatar

Mats Byfuglien matsbyfl

View GitHub Profile
console.log(69)
@matsbyfl
matsbyfl / scale.pac
Last active July 1, 2019 09:19
scale
function FindProxyForURL(url, host)
{
if (shExpMatch(url, "https://(grafana|minwintid|agresso|jira|confluence|navet|jenkins-*).adeo.no*")) {
echo "DIRECTUMUNDO $host" >> /tmp/banan
return "DIRECT";
}
if (shExpMatch(host, "*.adeo.no") || shExpMatch(host, "*.oera.no") || shExpMatch(host, "*.oera-q.local") || shExpMatch(host, "*.preprod.local") || shExpMatch(host, "*.devillo.no") || shExpMatch(host, "*.test.local") || shExpMatch(host, "*.dev-gcp.nais.io") ) {
echo "FAVTHAU $host" >> /tmp/banan
return "SOCKS localhost:5000";
}

Keybase proof

I hereby claim:

  • I am matsbyfl on github.
  • I am matsbyfuglien (https://keybase.io/matsbyfuglien) on keybase.
  • I have a public key ASC7EpDkzBPFk8cponVV29xcz_yHPtZP00seyMYYci4IEAo

To claim this, I am signing this object:

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #