Friday, August 27, 2010

debian backup script love

from tso:


cat /var/lib/dpkg/info/*.list | sort -u > /tmp/all-dpkg-files
cat /var/lib/dpkg/info/*.conffiles | sort -u > /tmp/all-conf-files
comm -23 /tmp/all-dpkg-files /tmp/all-conf-files | perl -n -e "chomp;" -e 'print "$_\n" if -f;" > /tmp/exclude-files
echo /var/cache >> /tmp/exclude-files
echo /tmp >> /tmp/exclude-files
echo $HOME >> /tmp/exclude-files
tar -c -v -f - --exclude-from /tmp/exclude-files / | bzip -9 > ~/my-machine-backup.tar.bz2
dpkg -l > ~/my-debian-packages.list

Tuesday, August 24, 2010

mr merlins home automation solutions

First, I asked for help here in the past in finding a remotely
controllable power strip with 12V input.

This was a cheap option, and it can work from 12V if you add a 150 ohm
1/2w resistor in series:
http://www.makershed.com/ProductDetails.asp?ProductCode=MKPS01&Show=ExtInfo

In the meantime, I have one plugged in my 8 Channel IO 1-wire board and
it's an easy way to control 120V from a 1-wire signal (although
admittedly, in most cases you'd be better off using Insteon).

Anyway, in the DYI home monitoring stuff, I have this if it's of
interest to others (mostly for the reusable code).

1-wire/owfs house monitoring:
http://marc.merlins.org/perso/linuxha/post_2010-08-06_Temperature_-moisture_-humidity_-and-UV-monitoring-and-graphing-with-1wire-devices_-owfs_-and-cacti.html

and fine grained house power monitoring
http://marc.merlins.org/perso/linuxha/post_2010-08-13_Fine-grained-house-wide-power-monitoring-with-Brultech-ECM1240_-ecmread_py-_with-net-metering-support_-and-graphing-with-cacti.html

I'm also using the 1-wire 8 Channel IO board to do some HVAC work:
http://marc.merlins.org/perso/linuxha/post_2010-08-06_Booster-Fans-and-Heating-Cooling-with-Outside-Air-with-Misterhouse.html

awww yeah - focus follows mouse goodness for Mac OS X

http://steve-yegge.blogspot.com/2008/04/settling-osx-focus-follows-mouse-debate.html

#RSFtalks with Edward Snowden

What an intelligent, thoughtful individual. I find it difficult to forgive 44 for failing to pardon this patriot and instead pursuing him ...

Other Popular Posts: