Submit Response » scripts http://submitresponse.co.uk/weblog Tue, 10 May 2011 01:19:15 +0000 en-us hourly 1 http://wordpress.org/?v=3.8.1 Pointless Twitter Automation http://submitresponse.co.uk/weblog/2007/01/30/pointless-twitter-automation/ http://submitresponse.co.uk/weblog/2007/01/30/pointless-twitter-automation/#comments Tue, 30 Jan 2007 01:36:17 +0000 http://submitresponse.co.uk/weblog/2007/01/30/pointless-twitter-automation/ Here’s a little thing that will update Twitter when you wake up your computer.

Save the following in a text file somewhere (I put it in /bin/ and called it twitterwakeup.sh), replacing the stuff in italics with your email, password and cheery waking up message:

#! /bin/sh

curl --user yourname@yourdomain.com:yourpassword -F status="Your cheery waking up message!" http://twitter.com/statuses/update.json

(That second bit should all be on one line.)

Make it executable:

sudo chmod u+x /bin/twitter.sh

Install Bernhard Baehr’s handy Sleepwatcher daemon.

Make a file called .wakeup in your home directory, and put the full path to your twitterwakeup.sh script in it.

That’s it.

]]>
http://submitresponse.co.uk/weblog/2007/01/30/pointless-twitter-automation/feed/ 3
Del.icio.us Metadata http://submitresponse.co.uk/weblog/2004/08/25/delicious-metadata/ http://submitresponse.co.uk/weblog/2004/08/25/delicious-metadata/#comments Wed, 25 Aug 2004 12:30:38 +0000 http://mottram.textdriven.com/weblog/?p=668 Thanks to a template code snippet for Movable Type by Ben Hammersly, I’ve added a little feature to this site: Related Linking. From now on, in addition to a link to the category page on Submit Response, each post will be followed by links to related tags at del.icio.us.

For the time being, because I’m more interested in integrating my daily linking and weblogging, rather than providing pointers to what other folk are linking to on similar topics, I’ve decided to have the links lead to my own tags instead of the tag directories at del.icio.us which track linking by all users. I might change this, though - it seems a little rude to incorporate del.icio.us like this without acknowledging the social aspect of the service.

If you’d like to do the same, and can’t be bothered fiddling with Ben’s template code, here’s the version I’m using on Individual Entry Archive and Main Index templates (you’ll also need Brad Choate’s handy MTPerlscript for this to work).

<MTPerlScript package="deliciouslinks">
my $keywords="<MTEntryKeywords>";
if ($keywords eq "") {
print "<!-- No Del.icio.us Tags to print out //-->";
} else { my @split
keywords = split(/ /, $keywords); my $splitkeyword;
print 'Related Linking: ';
foreach $split
keyword (@splitkeywords) { print '<a href="'."http://del.icio.us/username/
$split
keyword".'">'."$split_keyword".'</a> ';
}
}
</MTPerlScript>

]]>
http://submitresponse.co.uk/weblog/2004/08/25/delicious-metadata/feed/ 6