<?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>matmrosko.com &#187; bash</title>
	<atom:link href="http://matmrosko.com/category/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://matmrosko.com</link>
	<description>geeky thoughts</description>
	<lastBuildDate>Thu, 24 Jun 2010 06:15:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Metallica &#8211; One-liner</title>
		<link>http://matmrosko.com/2008/01/16/metallica-one/</link>
		<comments>http://matmrosko.com/2008/01/16/metallica-one/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 19:32:57 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[etc]]></category>
		<category><![CDATA[metallica]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[song]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[titles]]></category>

		<guid isPermaLink="false">http://www.matmrosko.com/2008/01/16/metallica-one/</guid>
		<description><![CDATA[I use Metallica one-word song titles as hostnames on my PCs, so to easily look through my MP3s to find 1-word song titles, I used this gem: ls * &#124; sed -n 's/^.. - \([^ ]*\).mp3$/\1/p' &#124; sort -u]]></description>
			<content:encoded><![CDATA[<p>I use Metallica one-word song titles as hostnames on my PCs, so to easily look through my MP3s to find 1-word song titles, I used this gem:</p>
<p><code>ls * | sed -n 's/^.. - \([^ ]*\).mp3$/\1/p' | sort -u</code></p>
]]></content:encoded>
			<wfw:commentRss>http://matmrosko.com/2008/01/16/metallica-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto SSH Key</title>
		<link>http://matmrosko.com/2007/10/30/auto-ssh-key/</link>
		<comments>http://matmrosko.com/2007/10/30/auto-ssh-key/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 05:49:36 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[authorized_keys]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshme]]></category>

		<guid isPermaLink="false">http://www.matmrosko.com/2007/10/30/auto-ssh-key/</guid>
		<description><![CDATA[This small script (basically a one-liner) will transfer your public ssh key (if in standard ~/.ssh/id_dsa.pb) and properly set permissions to the host passed as the first argument. This makes it so the only time you need your password (if using a passphrase-less ssh-key) will be when running this script. After that, you will have [...]]]></description>
			<content:encoded><![CDATA[<p>This small script (basically a one-liner) will transfer your public ssh key (if in standard ~/.ssh/id_dsa.pb) and properly set permissions to the host passed as the first argument.  This makes it so the only time you need your password (if using a passphrase-less ssh-key) will be when running this script.  After that, you will have your ssh key access done automatically!</p>
<p>Example:<br />
  user@host1 ~ $ sshme user@some.domain.com<br />
  user@some.domain.com&#8217;s password:<br />
  user@host1 ~ $ ssh user@some.domain.com<br />
  Last login: Tue Oct 30 22:47:42 2007 from ipXX.XXX.XXX.XXX<br />
  user@some.domain.com ~$</p>
<p>The <a href='http://matmrosko.com/files/2007/10/sshme'>sshme</a> script:</p>
<pre class="prettyprint">
#!/bin/bash

cat ~/.ssh/id_dsa.pub | ssh $1 \
"mkdir -p ~/.ssh; \
 cat - >> ~/.ssh/authorized_keys; \
 chmod u+rwx ~ ~/.ssh; \
 chmod go-rw ~ ~/.ssh; \
 chmod 600 ~/.ssh/authorized_keys"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matmrosko.com/2007/10/30/auto-ssh-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTP Sync</title>
		<link>http://matmrosko.com/2007/10/30/ftp-sync/</link>
		<comments>http://matmrosko.com/2007/10/30/ftp-sync/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 05:44:52 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[TODO]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.matmrosko.com/2007/10/30/ftp-sync/</guid>
		<description><![CDATA[This script is useful to mirror a directory over FTP. I find this useful when I am working on web changes on an account I do not have SSH access or VIM. I have plans to add getopt support for more functionality. As of now, most of it is controlled via the environment variables found [...]]]></description>
			<content:encoded><![CDATA[<p>This script is useful to mirror a directory over FTP.  I find this useful when I am working on web changes on an account I do not have SSH access or VIM.  I have plans to add getopt support for more functionality.  As of now, most of it is controlled via the environment variables found at the top.</p>
<p>Example usage for uploading local mirror:<br />
  $ ftpsync up /subdirectory/on/mirror</p>
]]></content:encoded>
			<wfw:commentRss>http://matmrosko.com/2007/10/30/ftp-sync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
