<?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/"
	>

<channel>
	<title>Malevolent Agency of Destruction</title>
	<atom:link href="http://yakko.cs.wmich.edu/~drclaw/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://yakko.cs.wmich.edu/~drclaw/blog</link>
	<description>A rarely updated blog</description>
	<pubDate>Tue, 13 Jan 2009 01:32:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Seeqpod mp3 leaching</title>
		<link>http://yakko.cs.wmich.edu/~drclaw/blog/?p=9</link>
		<comments>http://yakko.cs.wmich.edu/~drclaw/blog/?p=9#comments</comments>
		<pubDate>Thu, 31 Jan 2008 02:25:49 +0000</pubDate>
		<dc:creator>drc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yakko.cs.wmich.edu/~drclaw/blog/?p=9</guid>
		<description><![CDATA[


#!/bin/bash

echo -n "Arist name? " 
read artist 
mkdir "$artist"
url="http://www.seeqpod.com/api/music/anonSearchPaginationFlash?n=1000&#038;q="$artist 
wget -t 1 -T 150 -q -O /dev/stdout "`echo $url`" &#124;sed -e 's#]*>#\n#g' &#124;awk -F '' '{print $1}' &#124;grep -v playlist &#124;xargs -n1 -i{}  wget -P "$artist" "{}"



Enjoy
-drc
]]></description>
			<content:encoded><![CDATA[<p><code><br />
<blockquote>
<pre>
#!/bin/bash

echo -n "Arist name? " 
read artist 
mkdir "$artist"
url="http://www.seeqpod.com/api/music/anonSearchPaginationFlash?n=1000&#038;q="$artist 
wget -t 1 -T 150 -q -O /dev/stdout "`echo $url`" |sed -e 's#<[location>]*>#\n#g' |awk -F '</location>' '{print $1}' |grep -v playlist |xargs -n1 -i{}  wget -P "$artist" "{}"<be>
</pre>
</blockquote>
<p><code></p>
<p>Enjoy<br />
-drc</p>
]]></content:encoded>
			<wfw:commentRss>http://yakko.cs.wmich.edu/~drclaw/blog/?feed=rss2&amp;p=9</wfw:commentRss>
		</item>
		<item>
		<title>My laptop&#8217;s new ssh-agent setup</title>
		<link>http://yakko.cs.wmich.edu/~drclaw/blog/?p=6</link>
		<comments>http://yakko.cs.wmich.edu/~drclaw/blog/?p=6#comments</comments>
		<pubDate>Wed, 24 Jan 2007 01:00:42 +0000</pubDate>
		<dc:creator>drc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yakko.cs.wmich.edu/~drclaw/blog/?p=6</guid>
		<description><![CDATA[This is probably more for my own future reference than anything of worth to other people, but as long as I&#8217;m going to bother writing notes to future-me (cut the blue wire!), I figured I&#8217;d share in case it helps.
I have a key agent setup on my primary desktop computer, that pesters me for my [...]]]></description>
			<content:encoded><![CDATA[<p>This is probably more for my own future reference than anything of worth to other people, but as long as I&#8217;m going to bother writing notes to future-me (cut the blue wire!), I figured I&#8217;d share in case it helps.</p>
<p>I have a key agent setup on my primary desktop computer, that pesters me for my pass-phrase the first time I open an X-term.  That setup works pretty well, since the only time I find myself spending much time at a tty console is when I&#8217;m fetching new Nvidia drivers.  On my killer new-used Titanium G4 PowerBook (thanks C4), I&#8217;m predicting less face-time with X[.org].  It&#8217;s fast, compared to the Pentium 2 266Mhz it&#8217;s replacing, but until it gets some more RAM, and a replacement PRAM battery (apparently components of my desktop environment don&#8217;t like to start when my computer is reliving the past) I&#8217;ve decided to start in text-mode, and progress to X as needed.</p>
<blockquote><p>Objectives</p></blockquote>
<blockquote>
<ul>
<li>Only type my too-damned-long pass phrase once unless I log out of my machine on all ttys</li>
<li>Don&#8217;t spawn new ssh-agents for each login of the same user</li>
<li>Apply above to xterm shells</li>
<li>Cleanup after itself</li>
</ul>
</blockquote>
<p>It&#8217;s probably important to note here that I removed my desktop manager from /etc/rc?.d, that&#8217;s my personal preference, and these bash profile changes won&#8217;t be all that useful to you if you&#8217;re not like me (probably should have mentioned that sooner) and prefer to login have your logins handled by XDM/GDM/KDM.</p>
<p>If you&#8217;re using something more clever for your ssh key files than the default names, you&#8217;ll want to mention that to ssh-add before running these scripts.  If you don&#8217;t have ssh keys already, you&#8217;re missing out, here&#8217;s a quick primer</p>
<blockquote>
<pre>drc@ein:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/drc/.ssh/id_rsa): (Just hit enter here, is fine)
Enter passphrase (empty for no passphrase):  (Seriously, put a password here, especially on a laptop)
Enter same passphrase again:
Your identification has been saved in /home/drc/.ssh/id_rsa.
Your public key has been saved in /home/drc/.ssh/id_rsa.pub.
The key fingerprint is:
ea:7d:ea:dc:a7:52:fe:ed:04:20:24:07:dr:c1:23:07 drc@ein</pre>
</blockquote>
<p>Neat, now you have to put your public key some place that you login to frequently, copy it over to your .ssh/authorized_keys file on the remote system, when I feel like doing this in a needlessly complicated way, I type:</p>
<blockquote>
<pre>drc@ein:~$ cat ~/.ssh/id_rsa.pub |ssh drc@gibson.example.org "cat >>~/.ssh/authorized_keys ; chmod go-r ~/.ssh_authorized_keys"</pre>
</blockquote>
<p>Course, for that to work you&#8217;d have to have a login at gibson.example.org named drc, otherwise, I suggest you replace that with your username@yourremotehost.tld.. Also, you&#8217;ll need an .ssh directory already on the remote system, you should have one if you&#8217;ve been ssh&#8217;ing from that system before (not just to it).  If you don&#8217;t already have one there, maybe you should re-think how much you actually need ssh for whatever it is that *you* do.<br />
Back to the ssh-agent setup</p>
<p>Add the following to the end of your .bash_profile in your home directory</p>
<blockquote>
<pre>if ! [ -f ~/.ssh/keymanager ]; then
&nbsp;&nbsp;&nbsp;if [ "${TTY:0:3}" = "tty" ]; then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval `/usr/bin/ssh-agent`
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/bin/ssh-add
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "export SSH_AGENT_PID=$SSH_AGENT_PID" >~/.ssh/keymanager
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >>~/.ssh/keymanager
&nbsp;&nbsp;&nbsp;fi
else
&nbsp;&nbsp;&nbsp;eval `cat ~/.ssh/keymanager`
fi</pre>
</blockquote>
<p>Next add the following to the end of your .bashrc</p>
<blockquote>
<pre>TTY=`tty |cut -c 6-`</pre>
</blockquote>
<p>Finally add the following to the end of your .bash_logout file</p>
<blockquote>
<pre>if [ "`who |grep -v $TTY |grep $USER`" = "" ]; then
&nbsp;&nbsp;&nbsp;if [ -f ~/.ssh/keymanager ]; then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm ~/.ssh/keymanager
&nbsp;&nbsp;&nbsp;fi
&nbsp;&nbsp;&nbsp;if [ "`ps -p $SSH_AGENT_PID -o comm=`" = "ssh-agent" ]; then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ssh-agent -k 2>&#038;1 >/dev/null
&nbsp;&nbsp;&nbsp;fi
fi</pre>
</blockquote>
<p>Great, your done, enjoy, hopefully it works, if not, I probably don&#8217;t care</p>
]]></content:encoded>
			<wfw:commentRss>http://yakko.cs.wmich.edu/~drclaw/blog/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
		<item>
		<title>The ability to try hard is a talent too</title>
		<link>http://yakko.cs.wmich.edu/~drclaw/blog/?p=3</link>
		<comments>http://yakko.cs.wmich.edu/~drclaw/blog/?p=3#comments</comments>
		<pubDate>Tue, 22 Nov 2005 13:02:16 +0000</pubDate>
		<dc:creator>drc</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yakko.cs.wmich.edu/~drclaw/blog/?p=3</guid>
		<description><![CDATA[Although I have yet to be asked where my 1337 skillz at web design come from, I imagine my part of the conversation would go something like this:
drc&#8217;s Response:
Well Geraldo, I wish I could tell you that I was classically trained in web design, that I was plucked from obscurity by a renowned art institute [...]]]></description>
			<content:encoded><![CDATA[<p>Although I have yet to be asked where my 1337 skillz at web design come from, I imagine my part of the conversation would go something like this:</p>
<p><strong>drc&#8217;s Response:</strong></p>
<blockquote><p>Well Geraldo, I wish I could tell you that I was classically trained in web design, that I was plucked from obscurity by a renowned art institute such as <a href="http://www.artists-ais.com/free/index.php">Art Instruction Schools</a> for my masterful renditions of <a href="http://www.creativepro.com/story/feature/23605.html">cartoon turtles &#038; pirates</a>, but the truth of the matter is, I am quite simply a natural expert in my craft, much like yourself in the field of journalism.</p></blockquote>
<p>Thought of the day: &#8220;You can&#8217;t fall on your ass if you don&#8217;t get off the ground.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://yakko.cs.wmich.edu/~drclaw/blog/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
	</channel>
</rss>
