Skip to content

Instantly share code, notes, and snippets.

@bvassilis
bvassilis / multi.track.google.analytics.js
Last active December 22, 2015 00:28
jquerymobile import multi google analytics tracking code
var _gaq = _gaq || [];
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function domainPageTrackingCode (trackingId, domain) {
try {
@bvassilis
bvassilis / varnish_gather
Created December 11, 2012 14:32
gather various information regarding varnish
#!/bin/sh
# varnish_gather - Gather debug information for varnish issues
# Copyright (C) 2010 Kristian Lyngstol
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,