This file contains hidden or 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
| <script type="text/javascript" charset="utf-8"> | |
| $(window).ready(function(){ | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = 'http://s.webtrends.com/js/webtrends.min.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); | |
| }); | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"your_dcs_id",timezone:-8}); | |
| // you can control when call to server happens by running this after pageload, or entire script injection | |
| dcs.track(); |
This file contains hidden or 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
| <html lang="en" > | |
| <head> | |
| <title>Webtrends Testing Suite JS</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> | |
| <script type="text/javascript" src="http://s.webtrends.com/js/webtrends.js"></script> | |
| </head> | |
| <body> | |
| <div id=""> | |
This file contains hidden or 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
| (function(WT){ | |
| if (!window.Webtrends){ | |
| return; // ensuring Webtrends has loaded | |
| } | |
| function hello_transform(dcs){ | |
| console.log("in my hello world transform"); | |
| dcs.DCSext.myparam = 'hello world'; | |
| } | |
| function hello_loader(dcs,config){ | |
| dcs.addTransform(hello_transform,'all'); |
This file contains hidden or 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
| <script type="text/javascript"> | |
| // this function is called by webtrends.js after it has loaded | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"your_dcs_id",timezone:-8}) | |
| .addSelector('form input, form select', // find form inputs, or form selects | |
| { | |
| domEvent:'onblur', // which event to listen to? | |
| transform:function(dcs,o){ | |
| // o is an 'options' object with o.element (dom element), o.args (object notation args) | |
| o.args['fieldname'] = o.element.id; |
This file contains hidden or 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
| <script type="text/javascript"> | |
| // this function is called by webtrends.js after it has loaded, the track, init method are chained | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| var dcs2=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| }; | |
| (function() { | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = 'http://s.webtrends.com/js/webtrends.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); |
This file contains hidden or 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
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |
This file contains hidden or 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
| <script type="text/javascript" charset="utf-8"> | |
| if (!document.querySelectorAll){document.write('<s' + 'cript lang' + 'uage="jav' + 'ascript" src="/static/web/js/qwery.min.js"></' + 'scr' + 'ipt>');} | |
| // this function is called by webtrends.js after it has loaded, the track, init method are chained | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| }; | |
| (function() { | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = window.location.protocol + '//s.webtrends.com/js/webtrends.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); |
This file contains hidden or 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
| <div id="fb-root"></div> | |
| <script src="//connect.facebook.net/en_US/all.js"></script> | |
| <script> | |
| FB.init({appId:'156294357760329', status:true, cookie:true, oauth:true, xfbml:true}); | |
| </script> | |
| <script type="text/javascript" charset="utf-8"> | |
| if (!document.querySelectorAll){document.write('<s' + 'cript lang' + 'uage="jav' + 'ascript" src="/static/web/js/qwery.min.js"></' + 'scr' + 'ipt>');} | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8,plugins:{facebook:{src:"/static/js/webtrends.fb.js"}}}).track(); |
This file contains hidden or 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
| # clear any previous sudo permission | |
| sudo -k | |
| # run inside sudo | |
| sudo sh <<SCRIPT | |
| apt-get install --yes --force-yes -q build-essential | |
| apt-get install --yes --force-yes -q -y python-software-properties | |
| add-apt-repository ppa:saltstack/salt |
This file contains hidden or 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
| # the salt-minion init script | |
| description "Salt Minion" | |
| start on (net-device-up | |
| and local-filesystems | |
| and runlevel [2345]) | |
| stop on runlevel [016] |