Skip to content

Instantly share code, notes, and snippets.

@samueltc
samueltc / gist:13e62ae4ec48e35bc098
Created February 25, 2015 16:26
global-perf-minified.js
This file has been truncated, but you can view the full file.
(function(a, b) {
function d() {
if (!n.isReady) {
try {
t.documentElement.doScroll("left")
} catch (k) {
setTimeout(d, 1);
return
}
n.ready()
@samueltc
samueltc / gist:2dad265b519f6ecb4e95
Created May 9, 2014 19:18
squid cache_peer with crawlera/proxyhub
Change: $scrapinhub/crawlera_hostname$, $username$, $password$ and you're ready to go.
Tested with squid3
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320