<?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>Cain Manor &#187; OS-X</title>
	<atom:link href="http://cainmanor.com/category/tech/os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://cainmanor.com</link>
	<description>Your Guide To All Things Cain™</description>
	<lastBuildDate>Wed, 08 Sep 2010 19:25:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SSH Tips</title>
		<link>http://cainmanor.com/tech/ssh_tips</link>
		<comments>http://cainmanor.com/tech/ssh_tips#comments</comments>
		<pubDate>Wed, 05 May 2010 04:15:09 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=798</guid>
		<description><![CDATA[SSH is one of those things I use every day, and maybe what I use most throughout the day. These are either things I didn&#8217;t know (escape sequences), or haven&#8217;t looked into before. To get to the SSH escape sequences, you need a new line, followed by ~ and ?. That&#8217;s a newline (return), followed [...]]]></description>
			<content:encoded><![CDATA[<p>SSH is one of those things I use every day, and maybe what I use most throughout the day.  These are either things I didn&#8217;t know (escape sequences), or haven&#8217;t looked into before.</p>
<p>To get to the SSH escape sequences, you need a new line, followed by ~ and ?.  That&#8217;s a newline (return), followed by a tilde and a question mark.  This is what you get</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Supported escape sequences:
  ~.  - terminate connection <span style="color: #7a0874; font-weight: bold;">&#40;</span>and any multiplexed sessions<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  ~B  - send a BREAK to the remote system
  ~C  - open a <span style="color: #7a0874; font-weight: bold;">command</span> line
  ~R  - Request rekey <span style="color: #7a0874; font-weight: bold;">&#40;</span>SSH protocol <span style="color: #000000;">2</span> only<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  ~^Z - <span style="color: #7a0874; font-weight: bold;">suspend</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span>
  ~<span style="color: #666666; font-style: italic;">#  - list forwarded connections</span>
  ~<span style="color: #000000; font-weight: bold;">&amp;</span>  - background <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>when waiting <span style="color: #000000; font-weight: bold;">for</span> connections to terminate<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  ~?  - this message
  ~~  - send the escape character by typing it twice
<span style="color: #7a0874; font-weight: bold;">&#40;</span>Note that escapes are only recognized immediately after newline.<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>
<p>There are a lot of interesting things you can do with this.  My favorite being if you ssh to host1.cainmanor.com then ssh to host2.cainmanor.com and then ssh to host3.cainmanor.com and host3.cainmanor.com locks up, you can newline ~~~. and the third session will be closed.</p>
<p>But wait!! There&#8217;s more<br />
<span id="more-798"></span><br />
You can do some very nifty things in your ~/.ssh/config file.  First, you&#8217;ve got to make sure you have very restrictive permissions on that file &#8211; 600 or bust.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Host nickname
Hostname host1.cainmanor.com
Port <span style="color: #000000;">22</span>
User gcain
ForwardAgent <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>
<p>Host &#8211; put a nickname you want here.   You can use a wild card (*), if you&#8217;d like the apply the changes to all servers (for instance, change the port for all your servers)<br />
Hostname &#8211; DNS name (FQDN highly recommended) or IP address.<br />
Port &#8211; Port<br />
user &#8211; user name you want to log in with.</p>
<p>You can also use this with rsync, but I won&#8217;t go too far into it.<br />
Before</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-avr</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">--exclude</span> <span style="color: #ff0000;">'.DS_Store'</span>  <span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>MD0_DATA<span style="color: #000000; font-weight: bold;">/</span>Video<span style="color: #000000; font-weight: bold;">/</span> gcain<span style="color: #000000; font-weight: bold;">@</span>host1.cainmanor.com:<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>external<span style="color: #000000; font-weight: bold;">/</span>sdz1<span style="color: #000000; font-weight: bold;">/</span>Video<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>
<p>After</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-avr</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">--exclude</span> <span style="color: #ff0000;">'.DS_Store'</span>  <span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>MD0_DATA<span style="color: #000000; font-weight: bold;">/</span>Video<span style="color: #000000; font-weight: bold;">/</span> nickname:<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>external<span style="color: #000000; font-weight: bold;">/</span>sdz1<span style="color: #000000; font-weight: bold;">/</span>Video<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>
<p>Not as clear as a shorter example, but I wanted to keep this around for myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/tech/ssh_tips/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force your Mac to boot into 64 bit mode</title>
		<link>http://cainmanor.com/tech/force-your-mac-to-boot-into-64-bit-mode</link>
		<comments>http://cainmanor.com/tech/force-your-mac-to-boot-into-64-bit-mode#comments</comments>
		<pubDate>Tue, 04 May 2010 19:02:14 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Tech]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=789</guid>
		<description><![CDATA[UPDATE&#8230; Not all Macs that are capable of booting a 64 bit kernel will boot the 64 bit kernel. The Mini is one of those&#8230; (This is from Apple.) Getting those machines NOT on the list to boot into a 64 bit kernel is possible, but it&#8217;s beyond the scope of this article (it involves [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE&#8230;</p>
<p>Not all Macs that are capable of booting a 64 bit kernel will boot the 64 bit kernel.  The Mini is one of those&#8230;  (This is from <a href="http://support.apple.com/kb/HT3770">Apple</a>.)   Getting those machines NOT on the list to boot into a 64 bit kernel is possible, but it&#8217;s beyond the scope of this article (it involves editing your boot.efi.)</p>
<div>
<table width="100%" cellspacing="0" border="0" id="kbtable">
<tbody>
<tr id="header">
<td>&nbsp;</td>
<td style="text-align: center;">Can use 64-bit kernel</td>
<td style="text-align: center;">Uses 64-bit kernel<br />
            by default</td>
</tr>
<tr>
<td>Mac Pro (Early 2009)</td>
<td style="text-align: center;">&radic;</td>
<td style="text-align: center;">&radic;</td>
</tr>
<tr>
<td>Mac Pro (Early 2008)</td>
<td style="text-align: center;">&radic;</td>
<td>
<p style="text-align: center;">&radic;</p>
</td>
</tr>
<tr>
<td>Mac Pro (Original)</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>iMac (Early 2009)</td>
<td style="text-align: center;">&radic;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>iMac (Early 2008)</td>
<td style="text-align: center;">&radic;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>iMac (earlier models)</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Mac mini (all models)</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</div>
<p><span id="more-789"></span></p>
<p>First, make sure your Mac can support 64 bits.  Make sure your server is on the list above too.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ioreg <span style="color: #660033;">-l</span> <span style="color: #660033;">-p</span> IODeviceTree <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> firmware-abi</pre></div></div>
<p>If you are 64 bit capable, you&#8217;ll see the following.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span>   <span style="color: #ff0000;">&quot;firmware-abi&quot;</span> = <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #ff0000;">&quot;EFI64&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>
<p>There are several methods.  The easiest method is to hold the 6 and the 4 key when booting.   This isn&#8217;t permanent, but the following are.</p>
<p>As root, type&#8230;</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nvram boot-args=<span style="color: #ff0000;">&quot;arch=x86_64&quot;</span></pre></div></div>
<p>To change it back to the default</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nvram boot-args=<span style="color: #ff0000;">&quot;&quot;</span></pre></div></div>
<p>I didn&#8217;t like this particular method, as I prefer to have a verbose boot</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> nvram boot-args=<span style="color: #ff0000;">&quot;-v&quot;</span></pre></div></div>
<p>There is one more way, that some people have had more success with.  It involves editing /Library/Preferences/SystemConfiguration/com.apple.Boot.plist</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>?xml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #007800;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span>?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;!</span>DOCTYPE plist PUBLIC <span style="color: #ff0000;">&quot;-//Apple Computer//DTD PLIST 1.0//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>plist <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>dict<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>Kernel<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>mach_kernel<span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>Kernel Flags<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>dict<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>plist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>
<p>You need to replace the null value below Kernel Flags (<string></string>) with &#8220;arch=x86_64&#8243;.  The correct version -</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>?xml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #007800;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span>?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;!</span>DOCTYPE plist PUBLIC <span style="color: #ff0000;">&quot;-//Apple Computer//DTD PLIST 1.0//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>plist <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>dict<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>Kernel<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>mach_kernel<span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>Kernel Flags<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">arch</span></span>=x86_64<span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>dict<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>plist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>
<p>To check if you&#8217;re 64 bit or not, you can use</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span></pre></div></div>
<p>If you see</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">x86_64</pre></div></div>
<p>You&#8217;ve got a 64 bit kernel.</p>
<p>This also works</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">system_profiler <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;64-bit Kernel and Extensions&quot;</span>
      <span style="color: #000000;">64</span>-bit Kernel and Extensions: Yes</pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/tech/force-your-mac-to-boot-into-64-bit-mode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Record encrypted cable channels using your Mac</title>
		<link>http://cainmanor.com/personal/record-encrypted-cable-channels-using-your-mac</link>
		<comments>http://cainmanor.com/personal/record-encrypted-cable-channels-using-your-mac#comments</comments>
		<pubDate>Tue, 02 Mar 2010 17:08:32 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=742</guid>
		<description><![CDATA[In Seattle, Comcast has been moving most of the channels from unencrypted QAM to encrypted QAM. That means that things I used to be able to record with my EyeTV and HD Homerun setup no longer work. I&#8217;ve heard rumors that you could install the Apple firewire SDK and record using the FireWire output of [...]]]></description>
			<content:encoded><![CDATA[<p>In Seattle, Comcast has been moving most of the channels from unencrypted QAM to encrypted QAM.  That means that things I used to be able to record with my EyeTV and HD Homerun setup no longer work.  I&#8217;ve heard rumors that you could install the Apple firewire SDK and record using the FireWire output of your cable box, but that seemed like a lot of work, and not very well supported.</p>
<p>Enter <a href="http://www.ammesset.com/firerecord">FireRecord.</a> It makes it much simpler, but with caveats.  To use it&#8230;</p>
<ol>
<li>Plug a firewire cable between your Mac (I use an older, slow Intel Mac Mini hooked into a QNAP Nas for storage) and your cable box.  This is designed for most standard cable boxes &#8211; the FireRecord site has more information on supported boxes.</li>
<li><a href="http://www.ammesset.com/firerecord">Download</a> and install FireRecord.</li>
<li>Run the program, pick a channel and set the start and end time.</li>
<li>Once the recording is done, you have a large file with a .m2t extension.  You need to massage it before it very usable.</li>
<li>Download <a href="http://www.squared5.com/svideo/mpeg-streamclip-mac.html" target="_blank">MPEG Streamclip</a>.  There are other solutions for the Mac, but they cost quite a bit more.  I&#8217;ve not found a free solution.</li>
<li>You need to install the QuickTimeMPEG2.component, which you have to purchase from <a title="Purchase QuickTime MPEG-2 Playback Component" href="http://www.apple.com/quicktime/mpeg2/" target="_blank">Apple</a> (~ $20/US.)  When I ran the install program it said that I needed to install Rosetta for the program to run.  Rather than do that, you can drill down into the package and find the file.  It lives in the package as Archive.pax.gz.   If you copy that file to your desktop, you can uncompress it by double clicking the file.   Once you&#8217;ve got the resulting QuickTimeMPEG2.component file, just copy it to /System/Library/QuickTime (you&#8217;ll need to authenticate before copying it over.)</li>
<li>Now you can use MPEG Streamclip to export the video to other formats.</li>
</ol>
<p>That&#8217;s it.  It&#8217;s crazy easy.</p>
<p>There are caveats</p>
<ol>
<li>You don&#8217;t get a guide.  You need to know what channel and what time your program is.</li>
<li>You can&#8217;t watch anything else while recording. The firewire port spits out what&#8217;s on your television. The flip side is that anything you can watch on TV you can record, even premium channels (not tested yet.)</li>
<li>The resulting file is only tagged with the file name you gave it (i.e. Discover.m2t.) No fancy file tagging like you get with EyeTV, but a pass through MetaX can fix that.</li>
<li>(NEW) Apparently you can&#8217;t turn off your cable box or your Mac will have trouble finding the device when you power it back on.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/personal/record-encrypted-cable-channels-using-your-mac/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup OS-X to quicklook vbs files</title>
		<link>http://cainmanor.com/tech/windows/setup-os-x-to-quicklook-vbs-files</link>
		<comments>http://cainmanor.com/tech/windows/setup-os-x-to-quicklook-vbs-files#comments</comments>
		<pubDate>Sat, 16 Jan 2010 00:13:35 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=707</guid>
		<description><![CDATA[I have some .vbs files I wrote, and I thought that I should be able to quicklook them just like any other text file. Finding out exactly how wasn&#8217;t terribly easy. I use TextWrangler for all my limited coding needs. You should (emphasis on should) be able to do this for any other editor you [...]]]></description>
			<content:encoded><![CDATA[<p>I have some .vbs files I wrote, and I thought that I should be able to quicklook them just like any other text file.  Finding out exactly how wasn&#8217;t terribly easy.</p>
<p><span id="more-707"></span>I use TextWrangler for all my limited coding needs.  You should (emphasis on should) be able to do this for any other editor you want.  This is what I had to do.</p>
<p>Edit /Applications/TextWrangler.app/Contents/Info.plist.  Towards the top you&#8217;ll see a bunch of file extensions.  I added vbs to the list.<br />
<code><br />
</code>&lt;string&gt;text&lt;/string&gt;<br />
&lt;string&gt;txt&lt;/string&gt;<br />
&lt;string&gt;vbs&lt;/string&gt;<br />
&lt;string&gt;wml&lt;/string&gt;<br />
&lt;string&gt;WML&lt;/string&gt;<code><br />
</code></p>
<p>In the same file, but before the very last&lt;/dict&gt;<br />
&lt;/plist&gt;<br />
Add</p>
<p>&lt;key&gt;UTExportedTypeDeclarations&lt;/key&gt;<br />
&lt;array&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;UTTypeConformsTo&lt;/key&gt;<br />
&lt;array&gt;<br />
&lt;string&gt;public.text&lt;/string&gt;<br />
&lt;string&gt;public.plain-text&lt;/string&gt;<br />
&lt;/array&gt;<br />
&lt;key&gt;UTTypeDescription&lt;/key&gt;<br />
&lt;string&gt;Microsoft Visual Basic&lt;/string&gt;<br />
&lt;key&gt;UTTypeIdentifier&lt;/key&gt;<br />
&lt;string&gt;com.macromates.textmate&lt;/string&gt;<br />
&lt;key&gt;UTTypeTagSpecification&lt;/key&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;com.apple.ostype&lt;/key&gt;<br />
&lt;string&gt;TEXT&lt;/string&gt;<br />
&lt;key&gt;public.filename-extension&lt;/key&gt;<br />
&lt;array&gt;<br />
&lt;string&gt;vbs&lt;/string&gt;<br />
&lt;/array&gt;<br />
&lt;/dict&gt;<br />
&lt;/dict&gt;<br />
&lt;/array&gt;</p>
<p>And then</p>
<p>touch /Applications/TextWrangler.app</p>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/tech/windows/setup-os-x-to-quicklook-vbs-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sort a file in Vi</title>
		<link>http://cainmanor.com/tech/sort-a-file-in-vi</link>
		<comments>http://cainmanor.com/tech/sort-a-file-in-vi#comments</comments>
		<pubDate>Thu, 20 Aug 2009 22:38:02 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[UNIX]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=672</guid>
		<description><![CDATA[Sort :%sort Sort in reverse :%sort! Sort numerically :%sort n Sort, removing duplicates :%sort u]]></description>
			<content:encoded><![CDATA[<p>Sort</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">%</span><span style="color: #c20cb9; font-weight: bold;">sort</span></pre></div></div>
<p> <span id="more-672"></span><br />
Sort in reverse</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">%</span><span style="color: #c20cb9; font-weight: bold;">sort</span><span style="color: #000000; font-weight: bold;">!</span></pre></div></div>
<p>Sort numerically</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">%</span><span style="color: #c20cb9; font-weight: bold;">sort</span> n</pre></div></div>
<p>Sort, removing duplicates</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">%</span><span style="color: #c20cb9; font-weight: bold;">sort</span> u</pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/tech/sort-a-file-in-vi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
