Scripts I keep in my personal ~/bin directory.
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
co.sh
df.sh
diskinfo.sh
ipaddress.sh
proximityaway.scpt
proximityreturn.scpt
remote_df.sh
sshto.sh
startscreensaver.scpt
weather.sh

README

ABOUT bin
---------

This is just a collection of some scripts I whipped up to make my life
easier. I built them to work on MacOS, but they'll probably work on any
non-Windows platform just fine.

I keep some other scripts in my ~/bin directory like Drush
(https://drupal.org/project/drush), and some copyrighted scripts I
can't release to the public.

co.sh
-----

Before discovering drush, I wrote a script to make a shorthand version
of checking modules out of Drupal's CVS repository. It takes two
parameters, the tag or branch, and the module name. Change directory to
the location where you want the module to checkout to and run it.

  ~/bin/co.sh [tag|branch|HEAD] [module]

  cd ~/Sites/drupalsite/sites/all/modules
  ~/bin/co.sh DRUPAL-6--1 jammer

For Drupal users, check out the CVS deploy module
http://drupal.org/project/cvs_deploy for how to display the TAG from
each module's CVS checkout directory so it will interact with the
update status module correctly.

df.sh
-----

Built for Ubuntu distributions as an alternative to fancier server
monitoring packages, this script is triggered by a cron job at your
chosen interval. It runs the `df` command to see how much disk space
is available on each partition. If any of them exceed the specified
value of ALERT (set in the script), it sends an email with the percent
of disk space used on which partition along with the hostname.

  crontab -e
  35 5 * * * /home/username/bin/df.sh

You *should* modify the ADMIN and ALERT variables in the script.

diskinfo.sh
-----------

For use with GeekTool 3.0: http://projects.tynsoe.org/en/geektool/
It displays the amount of available disk space for the root partition
on MacOS 10.6.

ipaddress
---------

For use with GeekTool 3.0: http://projects.tynsoe.org/en/geektool/
A Perl script that shows the currently assigned address of the
hard-wire ethernet port and Airport on MacOS.

proximityaway.scpt
------------------

For use with Proximity:
https://code.google.com/p/reduxcomputing-proximity/
When using Proximity on MacOS, this script will set Adium to Away,
pause iTunes, and start the screensaver. Modify it with AppleScript
Editor.

proximityreturn.scpt
--------------------

For use with Proximity:
https://code.google.com/p/reduxcomputing-proximity/
Sets your Adium status to Available again.

remote_df.sh
------------

For use on Ubuntu servers where you don't have access to run cron.
Put this script on your local MacOS cron, and along with Growl
http://growl.info/ you can get realtime, non-email notifications
when your partitions are filling up on remote machines.

sshto.sh
---------

A shorthand method to connect to servers by SSH. Make a symlink
in your ~/bin directory as the name of the server you want to
connect to.

startscreensaver.scpt
---------------------

For use with Proximity:
https://code.google.com/p/reduxcomputing-proximity/
When using Proximity on MacOS, this script will start the
screensaver. Modify it with AppleScript Editor.

weather.sh
----------

For use with GeekTool 3.0: http://projects.tynsoe.org/en/geektool/
Queries the Yahoo! Weather XML stream for today and tomorrow's high
and low temperatures along with the current condition.