If I get a seat with a table on the train during my commute, I’m able to hack on some small projects. Today I’m publishing one of them:
I had a ton of home videos on miniDV tapes that I wanted to have available on my media PC, so I set up a few scripts to make this happen.
With the magic of inotify, it made the process fairly straightforward.
The first step is to start the inotify watch:
#!/bin/sh # # set -u set -e set -o noclobber while true do FILENAME=`inotifywait -r . -e close_write --format %f 2> /dev/null` echo $FILENAME if [[ "$FILENAME" = *.dv ]] then nice -20 ffmpeg -i $FILENAME -target ntsc-dvd completed/$FILENAME.vob rm $FILENAME fi done
Then, start the file transfer:
dvgrab -f raw -autosplit -size 0 -showstatus -t -rewind
With short clips, the files are occasionally missed because ffmpeg is still running, so a final pass takes care of the missed files:
for i in *.dv; do ffmpeg -i $i -target ntsc-dvd completed/$i.vob && rm $i; done
I’m loving the passwordstore tool.
I’m slowly converting all of my passwords over to it. The clipboard integration is great as I don’t ever have to actually see my passwords any more.
The Firefox integration is great, and apparently there is Chrome support as well, although I don’t have that working yet.
However, the killer feature IMO is how it uses GPG and git for the backend. This makes it easy for me to tie it into my existing backup system.
I spent a bunch of time doing something like
pass show twitter.com | qrencode -o - | display - and passing that to a barcode scanning app on my phone, only to find out there is a proper Android app.
A future TODO: figure out how to sign and decrypt with multiple keys. This would be an excellent tool for a group that wanted to distribute regularly changing passwords. I’m thinking that you would use git submodules to have a central repo for common passwords, and the main repo for your personal passwords. If your login fails, the first thing to do would be a
pass git submodule update --remote --merge in case you’re out of date.