Wed, 25 Jul 2018
Using gopass with mutt
I've been using gopass for a long time as my password manager — with my GnuPG and Yubikey setup accessing my passwords on both my laptop and my colocated box is pretty transparently the same.
I randomly came across the fact that mutt will
do backtick
expansion in its configuration file. With that, I can keep my
Mutt imap password in gopass and have mutt fetch it with
set imap_pass=`pass mutt_imap_pass`
Posted at: 08:34 | category: /computers/nifty | Link
Tue, 23 Aug 2011
Ad-hoc Binary Diff
Had a need for a binary diff, didn't have anything on the machine I was on and needed something quick and dirty:
od -cv file1 > file1.od od -cv file2 > file2.od diff -bu file1.od file2.od
Worked like a charm.
Posted at: 18:30 | category: /computers/nifty | Link
Sat, 28 Feb 2009
Using Remind
I heard of the calendaring utility remind a while back, and always kept wanting to get around to using it, because my system for remembering when to do things is some combination of scraps of paper, datebooks (used for a while until about March each year), notes taped to the back of the apartment door that I stare at when stumbling out to work each morning, random text files and relying on my leaky and sieve-like mind tends to work about as much as you would expect.
A co-worker working on getting a frontend to remind called wyrd installed on machines at work prompted me this lazy Saturday morning to finally sit down and get it installed at home. In short, I'm impressed, because with about 10 minutes of looking at it after getting it installed I've managed to start doing useful things with it. Sure, I'm not using any of the more fancy features of it, but I've got a simple way to do about 99% of what I'd need to do.
Of course, dealing with my environment, I wanted something that would read my remind file out of my AFS home directory and send me an e-mail every morning at 6am with various reminders. This incantation works fairly well:
/usr/pkg/bin/k5start -f /local/kula/keytab.kula.cron -k `/usr/bin/mktemp /tmp/krb5cc_cron_XXXXXX` -q -t -u kula/cron@TPROA.NET -U -- /usr/pkg/bin/remind -q -g /afs/tproa.net/users/k/u/kula/.reminders | mail -s "Today's Reminders" kula@tproa.net
Which uses the ever helpful k5start to get credentials that are allowed to read my .reminders file out of AFS, running remind and then sending me mail. Call this out of cron at 6am and it seems to very well.
Posted at: 11:54 | category: /computers/nifty | Link