#!/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
» Bash script to perform initi... in rails shell svn bash script
» backup files in date shell bash backup script code
» Notifications from shell scr... in shell osx mac bash script unix gui notification
» Record terminal sessions wit... in shell osx mac bash script unix terminal session record ttyrec
» more as a script in more shell osx mac bash script unix less
» cat as a script in shell osx mac bash script unix cat
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails