<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Throw the Mind [dot] Com &#187; script</title>
	<atom:link href="http://throwthemind.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://throwthemind.com</link>
	<description></description>
	<lastBuildDate>Wed, 23 May 2012 18:57:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>GeekTool Rss Script</title>
		<link>http://throwthemind.com/2007/09/20/geektool-rss-script/</link>
		<comments>http://throwthemind.com/2007/09/20/geektool-rss-script/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 04:44:52 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://throwthemind.com/index.php/2007/09/20/geektool-rss-script/</guid>
		<description><![CDATA[Here is a little script a friend help me put together. It it basically a caching RSS reader for GeekTool. I use it to display my Netflix query on my desktop, as well as My MeeVee listing. Just change the LOG, RSS lines and it will pull the title lines out of RSS feeds. If [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little script a friend help me put together.  It it basically a caching RSS reader for GeekTool.  I use it to display my Netflix query on my desktop, as well as My MeeVee listing.  Just change the LOG, RSS lines and it will pull the title lines out of RSS feeds.  If you want more you can change the curl lines.  Have fun. </p>
<ul>
#!/bin/sh<br />
LOG=/Users/Nathan/scripts/netflix_queue.txt<br />
RSS=&#8221;http://rss.netflix.com/QueueRSS?id=P1414648916102002442351662043565655&#8243;<br />
size=$(ls -all $LOG | awk &#8216;{print $5}&#8217;)</p>
<p>if [ ! -f $LOG ]; then<br />
	curl -s $RSS | grep title |  sed -E &#8216;s/<\/?title>//g&#8217; > $LOG<br />
else<br />
	age=$(echo $(date &#8220;+%s&#8221;) &#8211; $(stat -t &#8220;%s&#8221; $LOG 2>/dev/null | awk -F\&#8221; &#8216;{print $4}&#8217;) | bc -l)<br />
	if [ "$age" -gt 3600 -o $size = 0 ]; then<br />
		curl -s $RSS | grep title |  sed -E &#8216;s/<\/?title>//g&#8217; > $LOG<br />
	fi<br />
fi<br />
cat $LOG
</ul>
<p class="tags">Tags: <a href="http://throwthemind.com/tag/computer/" rel="tag">Computer</a>, <a href="http://throwthemind.com/tag/osx/" rel="tag">OSX</a>, <a href="http://throwthemind.com/tag/programming/" rel="tag">Programming</a>, <a href="http://throwthemind.com/tag/script/" rel="tag">script</a>
]]></content:encoded>
			<wfw:commentRss>http://throwthemind.com/2007/09/20/geektool-rss-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

