backing up over ssh [ ssh howto backup ]

Database:

ssh boxcar@64.151.151.133 "mysqldump -u $user --password=$pw $database | gzip -c" > database-`date +%Y%m%d`.mysql.gz

Files:

ssh $host "tar zcf - $path" > $host-`date +%Y%m%d`.tar.gz

posted by geoff on 1/28/2006 01:57:00 AM
[top | permanent | atom feed]

drupal_event_end_date.user.js [hacks drupal firefox greasemonkey]

I like Drupal, I like the events module. What I really dislike is that when you set the start date of an event, you also have to set the end date. It makes for a lot of extra clicking. The default value of the form fields is the current date, so if I want to change the date of the event to next month, I have to do this for both the start and end dates. Since I post a lot of events for the web Let's Go!! calendar, that's a lot of clicking. So, I wrote this greasemonkey script that updates the end date form fields when you change the start date. Setting an event date in February? The end date now changes along with it!

the script: drupal_event_end_date.user.js

posted by geoff on 1/26/2006 11:45:00 AM
[top | permanent | atom feed]

idea for pages to prisoners [pages idea]

Include prisoners Last Name, First Name, Facility, DOC# or something with the form letter so if we get a return back in different packaging, we can tell where it came from.

posted by geoff on 1/25/2006 02:27:00 PM
[top | permanent | atom feed]

books recommended to me by chris [geography books media]

These are about geography, for the most part, I think, and tend to be from a radical perspective.

posted by geoff on 1/24/2006 12:15:00 PM
[top | permanent | atom feed]

interesting quote

I agree with Patrick's note that this quotation is a gem. He discovered it in his reading of "Amusing Ourselves to Death" by Neil Postman.

Patrick's Journal: "There can be no liberty for a community which lacks the means by which to detect lies.
-- Walter Lippmann, p 108"

posted by geoff on 1/24/2006 09:10:22 AM
[top | permanent | atom feed]