sudo sysctl -w net.inet.ip.ttl=65
in terminal:
sudo vi /etc/init.d/local.autostart
| package main | |
| import ( | |
| "encoding/xml" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| ) |
| // from https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser/9851769 | |
| // Opera 8.0+ | |
| var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
| // Firefox 1.0+ | |
| var isFirefox = typeof InstallTrigger !== 'undefined'; | |
| // Safari 3.0+ "[object HTMLElementConstructor]" | |
| var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification); |
| $config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); | |
| $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; | |
| $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); |
| $('.digits-only').keyup(function(){ | |
| if(this.value != $(this).data('last-value') && this.value.length > 0){ | |
| this.value = this.value.replace(/[^0-9]/g,''); | |
| $(this).data('last-value', this.value); | |
| } | |
| }); |
| $("body").click(function(e) { | |
| if ($(e.target).closest(".popup").length==0) $(".popup").css("display","none"); | |
| }); |
| .center { | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| /* | |
| Nope =( | |
| margin-left: -25%; | |
| margin-top: -25%; | |
| */ |
| // Loop all .fetchSize links | |
| $('a.fetchSize').each(function(){ | |
| // Issue an AJAX HEAD request for each one | |
| var link = this; | |
| $.ajax({ | |
| type: 'HEAD', | |
| url: link.href, | |
| complete: function(xhr){ |