Posts tagged lazy

Mailman and Googlemail -> Gmail: A three step approach…

I thought other listadmins might be having fun with gmail now being available in the UK (rather than “googlemail”, as it has been for a while (despite ‘gmail’ originally being available, back in the days of invitation only)), and thought I’d share my hackish way around this, so listfolks can post from their gmail.com addresses.

It’s not pretty, but works for me — pre-requisite, Mark’s very useful “non-members” script: http://www.msapiro.net/scripts/non_members

  1. find who you need to work with:

    mkdir ~/tmp/gmail && list_lists -b | while read L; do list_members ${L} | grep googlemail > ~/tmp/gmail/${L}; done
  2. Zap annoucement lists from the files, remove empty files, too.
  3. Let them post!

    /var/lib/mailman/bin$ ls -1 ~/tmp/gmail | while read L; do sed 's/@googlemail.com/@gmail.com/' ~/tmp/gmail/${L} | while read X; do ./non_members --list=${L} --filter=accept --add ${X} --verbose; done; done

(nb: the path (/var/lib/mailman/bin) is from a Debian machine — Mailman installed via packages — and in my case /var/lib/mailman/bin being in
my ${PATH} — so replace those as appropriate in your cases.)

Which seems to have done the trick.

Twitter lists

As my reader will know, I’m rather fond of lists. For a while, i’ve held back against Twitter Lists, not really seeing the point of them: my current client, Tweetdeck, after all, has categories for me; I rarely use the twitter website, and my pytwerp config/template is easy to grep, if I need to.

But, erm, yeah. I’ve made a start, and given how shit my memory is, I thought I’d explain (to you, and me) how I’ve categorized:

  • @adamamyl/foodies — people who write about food. Or like food
  • @adamamyl/burners — burners. as in burningman/nowhere/decompressions. fucking hippies
  • @adamamyl/uber-kewl-kids — mainly shops/products I really like
  • @adamamyl/lawyers — i seem to follow a few of ‘em: let’s put ‘em all together
  • @adamamyl/academics — self-explanatory, really
  • @adamamyl/public-life — better than “slebs”
  • @adamamyl/music-folks — people in the music industry, in one way or another
  • @adamamyl/technologists — people who fiddle with tech, new products, that sort of thing
  • @adamamyl/mafia — people who (will) run things.
  • @adamamyl/web-folks — people involved in web stuff and maybe social media, may include ruby people, as they’re not proper geeks ;)
  • @adamamyl/usual-suspects — child-eating, crack-dealing refusniks (hi Stef!) who still won’t give up.
  • @adamamyl/politicos — those with political interests/aspirations. can also include current affairs/news
  • @adamamyl/representatives — people who’ve been elected, usually
  • @adamamyl/geeks — lovely people, really

Dell Order Checking: via cron

Ok. So let’s start off with a fairly obvious statement. I’m indolent. And I can write scripts. This is a dangerous, nay, perilous pairing…

So, with this existing laptop really getting on my nerves, and the lack of email coming from Dell regarding the new ‘un I ordered, I thought I’d tidy up some diff-scripts used $ELSEWHERE, and re-appropriate for quick-and-dirty order-tracking.

Fairly simple: fetch a web-page, in this case the order page (which is accesssible with the order number & email address used for the order), compare it with an existing copy (should it exist), and mail specified addresses when/if there are changes. Do this whenever (@hourly works fine for me), and forget about website visiting.

Bingo.

So, erm, just in case anyone else wants it (yes, the licensing blurb is probably about the same length as the code itself, i dunno why I bother, but maybe someone’s got some hints/tips/comments…), ‘dell-order-status‘ (it’s a tidied up version of the one I’m actually using, so i may need a nudge to update the web-version if I change the one in use)

  • Pages

  • Twitters

    Follow me on Twitter!
  • ORG-GRO

  • ORG

  • Travel