Bind AutoRecovery
#!/bin/sh PSAW=`ps -o "%p" -C named --no-heading` PSW=`echo $PSAW | cut -d" " -f 1` if [ -z "$PSW" ]; then echo "Named not running!" . /etc/init.d/named start fi exit
2828 users tagging and storing useful source code snippets
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!)
#!/bin/sh PSAW=`ps -o "%p" -C named --no-heading` PSW=`echo $PSAW | cut -d" " -f 1` if [ -z "$PSW" ]; then echo "Named not running!" . /etc/init.d/named start fi exit
#!/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;
find ~ -type d -depth 1 | while read filename; do # ls ~ | while read filename; do echo $filename # other stuff done