#!/bin/sh # urchin.js local caching by Jamie Wilkinson <http://tramchase.com> # config DIR=/directory/where/you/want/js # work URCHIN=$DIR/urchin.js wget http://www.google-analytics.com/urchin.js -O $URCHIN.tmp if [ -s $URCHIN.tmp ]; then rm $URCHIN mv $URCHIN.tmp $URCHIN chmod 644 $URCHIN fi exit 0;
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Cache a local copy of Google Analytics' urchin.js (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Subscribe to a RSS feed of y... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» Subscribe to a RSS feed of y... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» 6144 users tagging and stori... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» Using this function you will... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» backup files in date shell bash backup script code
» Notifications from shell scr... in shell osx mac bash script unix gui notification
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails