<?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>langui.sh &#187; os x</title>
	<atom:link href="http://langui.sh/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://langui.sh</link>
	<description>Fun hacks, WP plugins, photography, and PKI junk.  Languishing since 2008.</description>
	<lastBuildDate>Sat, 19 May 2012 01:42:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>pbpaste &amp; pbcopy in Mac OS X (or: Terminal + Clipboard = Fun!)</title>
		<link>http://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/</link>
		<comments>http://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 19:30:28 +0000</pubDate>
		<dc:creator>Paul Kehrer</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://langui.sh/?p=758</guid>
		<description><![CDATA[<a href="http://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/" title="pbpaste &amp; pbcopy in Mac OS X (or: Terminal + Clipboard = Fun!)"></a>The OS X shell is very powerful, but some wonderfully useful commands are almost entirely unknown to the community at large. Two of these forgotten commands are pbcopy and pbpaste. Let&#8217;s take a quick look at what they can do. &#8230;<p class="read-more"><a href="http://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/" title="pbpaste &amp; pbcopy in Mac OS X (or: Terminal + Clipboard = Fun!)"></a><p>The OS X shell is very powerful, but some wonderfully useful commands are almost entirely unknown to the community at large.  Two of these forgotten commands are pbcopy and pbpaste. Let&#8217;s take a quick look at what they can do.</p>
<h2>pbcopy</h2>
<p>This command allows you to copy text from stdin into the clipboard<sup class='footnote'><a href='#fn-758-1' id='fnref-758-1'>1</a></sup> buffer.  Trivial example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Hello World!'</span> <span style="color: #000000; font-weight: bold;">|</span> pbcopy</pre></div></div>

<p>&#8220;Hello World!&#8221; is now in your clipboard.</p>
<h2>pbpaste</h2>
<p>Pastes from your clipboard to stdout. Trivial example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">`</span>pbpaste<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p>This will echo the contents of your clipboard.  If you&#8217;re following along you&#8217;ll see &#8220;Hello World!&#8221;.</p>
<h2>What Can I Do With These?</h2>
<p>What can&#8217;t you do!  Oh, you want examples?  Well&#8230;</p>
<ul>
<li>You could grab the output of a grep/awk/sed to paste into IM/IRC.</li>
<li>You could use a macro tool (like iKey, QS, et cetera) to create text modifying workflows that grab highlighted text, manipulate it, and replace it inline.</li>
<li>You could pull changelogs from svn into the clipboard when tagging for release so you could email them to coworkers.</li>
</ul>
<p>Let me know what amazing things you come up with to enhance your own productivity!</p>
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-758-1'>or pasteboard, hence the prefix &#8220;pb&#8221; <span class='footnotereverse'><a href='#fnref-758-1'>&#8617;</a></span></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NTFS-3G 64-bit PrefPane For Snow Leopard</title>
		<link>http://langui.sh/2009/09/29/ntfs-3g-64-bit-prefpane-for-snow-leopard/</link>
		<comments>http://langui.sh/2009/09/29/ntfs-3g-64-bit-prefpane-for-snow-leopard/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:57:51 +0000</pubDate>
		<dc:creator>Paul Kehrer</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[prefpane]]></category>

		<guid isPermaLink="false">http://langui.sh/?p=662</guid>
		<description><![CDATA[<a href="http://langui.sh/2009/09/29/ntfs-3g-64-bit-prefpane-for-snow-leopard/" title="NTFS-3G 64-bit PrefPane For Snow Leopard"></a>Update: A version of NTFS-3G with native 64-bit PrefPane support has been released. The instructions below have been left for archival purposes, but are no longer required. I use NTFS-3G + MacFUSE to write to NTFS disks on occasion, but &#8230;<p class="read-more"><a href="http://langui.sh/2009/09/29/ntfs-3g-64-bit-prefpane-for-snow-leopard/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://langui.sh/2009/09/29/ntfs-3g-64-bit-prefpane-for-snow-leopard/" title="NTFS-3G 64-bit PrefPane For Snow Leopard"></a><p>Update: A version of NTFS-3G with native 64-bit PrefPane support has been <a href="http://macntfs-3g.blogspot.com/">released</a>.  The instructions below have been left for archival purposes, but are no longer required.</p>
<p>I use NTFS-3G + MacFUSE to write to NTFS disks on occasion, but I hate restarting System Preferences just to run a 32-bit PrefPane when I want to view/change some settings.  Behold the power of open source!</p>
<p>To compile a 64-bit System Preferences compatible version of this item simply </p>
<ol>
<li>Grab the <a href="http://downloads.sourceforge.net/catacombae/ntfs-3g_prefpane-0.9.8-src.tar.bz2?use_mirror=">source</a> for the <a href="http://macntfs-3g.blogspot.com/">NTFS-3G</a> PrefPane</li>
<li>Right click and get info on the build target to add x86_64, turn on Objective-C garbage collection to &#8220;supported&#8221;<sup class='footnote'><a href='#fn-662-1' id='fnref-662-1'>1</a></sup></li>
<li>Build the target.</li>
</ol>
<p>&#8230;and you&#8217;re all set.  You can <a href='http://cdn.langui.sh/2009/09/NTFS-3G.prefPane.zip'>download</a> my copy, but I don&#8217;t recommend using it in 10.5 or 10.4.  Of course, you don&#8217;t need a 64-bit PrefPane prior to 10.6 so why would you download it anyway?</p>
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-662-1'>If you set it to supported it should work in OS X 10.5 still <span class='footnotereverse'><a href='#fnref-662-1'>&#8617;</a></span></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://langui.sh/2009/09/29/ntfs-3g-64-bit-prefpane-for-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 11/18 queries in 0.005 seconds using memcached
Object Caching 513/528 objects using memcached

Served from: langui.sh @ 2012-05-21 13:27:15 -->
