#!/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
» Pretty PS1 Prompt for Bash in shell bash bashrc prompt
» Bash function to copy SSH DS... in ssh shell zsh bash
» How to flush the local DNS c... in lighttpd virtualhosting shell bash hosts dns cache
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails