This file contains 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
var PROXY_DIRECT="DIRECT";var DIRECT="DIRECT";var BLACK="PROXY 127.0.0.1:8021";var WHITE=PROXY_DIRECT;function s(u,r){return shExpMatch(u,r);}function d(h,r){return dnsDomainIs(h,r);}function n(h,r,m){return isInNet(h,r,m);}function e(u){var h;if(u.indexOf("://")>-1){h=u.split('/')[2];}else{h=u.split('/')[0];}h=h.split(':')[0];var s=h.split('.').reverse();return s;}function FindProxyForURL(url,host){var u=url.toLowerCase();var h=host.toLowerCase();var a=e(u);var b=a[0];var c=a[1];var f=c.length;var t=c[f-1];var z=c[f-2];if((s(u,"*.ocsp.int\u005cu002dx3.letsencrypt.org")||s(u,"*ocsp.apple.com")||s(u,"*.world\u005cu002dgen.g.aaplimg.com")||s(u,"*.mesu.apple.com")||s(u,"*.gdmf.apple.com")||s(u,"*.ppq.apple.com"))){return BLACK;}return PROXY_DIRECT;} |
This file contains 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 | |
set -e | |
# Clean out /var/cache/apt/archives | |
apt-get clean | |
# Fill it with all the .debs we need | |
apt-get --reinstall -dy install $(dpkg --get-selections | grep '[[:space:]]install' | cut -f1) | |
DIR=$(mktemp -d -t info-XXXXXX) | |
for deb in /var/cache/apt/archives/*.deb |