<?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>Chris Irish &#124; Ruby, Rails, Javascript Developer &#124; Phoenix, AZ &#187; Tools</title>
	<atom:link href="http://www.christopherirish.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christopherirish.com</link>
	<description>Ruby, Rails, Javascript, all things web development related</description>
	<lastBuildDate>Mon, 19 Jan 2026 07:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>RailsConf RubyAZ Presentation Slides</title>
		<link>http://www.christopherirish.com/2012/05/16/railsconf-rubyaz-presentation-slides/</link>
		<comments>http://www.christopherirish.com/2012/05/16/railsconf-rubyaz-presentation-slides/#comments</comments>
		<pubDate>Wed, 16 May 2012 07:00:39 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=842</guid>
		<description><![CDATA[This past Tuesday evening I presented to the RubyAZ user group. The talk covered useful libraries and gems that I saw at Rails Conf 2012 that I thought others might find helpful in their day to day work. I&#8217;ve made the presentation slides available as a pdf. Enjoy!]]></description>
			<content:encoded><![CDATA[<p></p><p>This past Tuesday evening I presented to the RubyAZ user group.  The talk covered useful libraries and gems that I saw at Rails Conf 2012 that I thought others might find helpful in their day to day work.  I&#8217;ve made the <a href="https://www.dropbox.com/s/4tsrlwgbgb045yg/RailsConfPreso.pdf" target="_blank">presentation slides</a> available as a pdf.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2012/05/16/railsconf-rubyaz-presentation-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup Textmate to use RVM</title>
		<link>http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/</link>
		<comments>http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:00:00 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[RVM]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=367</guid>
		<description><![CDATA[Alright, so you&#8217;ve switched to using rvm but when you run cmd+r on a Ruby file in TextMate you&#8217;re still using your old system install of Ruby&#8230; Luckily it only takes a few easy steps to setup TextMate to use your rvm environment. 1) First make sure your install of TextMate if updated Textmate -> [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Alright, so you&#8217;ve switched to using rvm but when you run cmd+r on a Ruby file in TextMate you&#8217;re still using your old system install of Ruby&#8230;  Luckily it only takes a few easy steps to setup TextMate to use your rvm environment.</p>
<p>1) First make sure your install of TextMate if updated<br />
<strong>Textmate -> Preferences -> Software Update -> Check Now</strong></p>
<p>2) Next make sure all your bundles are up to date.  The creator of rvm, Waynee Seguin, provides a small bash script to automate this process. You can check it out at this GitHub <a href="http://gist.github.com/455521">gist</a> </p>
<p>3) Now get the rvm name of the Ruby version you want to use in TextMate.  In my case I&#8217;m going to use my currently selected version &#8220;ruby-1.8.7-tv1_8_7_174&#8243;</p>

<div class="wp-terminal">$ rvm list<br/>rvm rubies<br/><br/>&nbsp;&nbsp;&nbsp;jruby-1.5.1 [ i386-java ]<br/>&nbsp;&nbsp;&nbsp;ruby-1.8.7-tv1_8_7_173 [ i386 ]<br/>=> ruby-1.8.7-tv1_8_7_174 [ i386 ]<br/>&nbsp;&nbsp;&nbsp;ruby-1.9.1-tv1_9_1_378 [ i386 ]<br/>&nbsp;&nbsp;&nbsp;ruby-1.9.2-head [ i386 ]<br/><br/></div>

<p>4) Then run the rvm command to wrap this ruby version for TextMate</p>

<div class="wp-terminal">$ rvm wrapper ruby-1.8.7-tv1_8_7_174 textmate<br/></div>

<p>5) Now set a TM_RUBY variable in your TextMate Preferences<br />
<strong>Textmate -> Preferences -> Advanced -> Shell Variables</strong></p>
<p>To the wrapper command generated by rvm for you, in my case it was found here:</p>
<p>/Users/cirish/.rvm/bin/textmate_ruby</p>
<p>6) Since TextMate will use it&#8217;s own builder, by removing it, we can use TM_RUBY as described above.</p>

<div class="wp-terminal">$ cd /Applications/TextMate.app/Contents/SharedSupport/Support/lib/<br/>mv Builder.rb Builder.rb.backup<br/></div>

<p>7) Last but not least, quit TextMate and re-open it to load these settings.  You should now be all good <img src='http://www.christopherirish.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>OS X &#8220;Safe Sleep&#8221; Mode</title>
		<link>http://www.christopherirish.com/2010/06/22/os-x-safe-sleep-mode/</link>
		<comments>http://www.christopherirish.com/2010/06/22/os-x-safe-sleep-mode/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 15:27:41 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=371</guid>
		<description><![CDATA[I seem to continually have the problem of my laptop waking up on its own in my backpack. I&#8217;m not sure what exactly is the cause, but I&#8217;m gonna assume it&#8217;s from the screen not staying completely locked/closed. However, I found this OS X command on Andrew Dupont&#8217;s blog, which puts OS X into a [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I seem to continually have the problem of my laptop waking up on its own in my backpack.  I&#8217;m not sure what exactly is the cause, but I&#8217;m gonna assume it&#8217;s from the screen not staying completely locked/closed.  However, I found this OS X command on <a href="http://andrewdupont.net">Andrew Dupont&#8217;s blog</a>, which puts OS X into a &#8220;safe sleep&#8221; mode.  This causes OS X to write memory state to a hibernation image at sleep time.  Now for me to awaken my Macbook Pro, opening the lid is not enough. Now it takes a press of the power button, and a few more seconds than before, but no more accidental awakening, or half-dead battery upon arriving at my destination.</p>

<div class="wp-terminal">$ sudo pmset -a hibernatemode 1<br/></div>

<p>Now just put your computer to sleep like you normally would.  I for one prefer to use the quick keys (cmd + option + eject).  Check the man page for more options.</p>

<div class="wp-terminal">$ man pmset<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2010/06/22/os-x-safe-sleep-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git garbage collect bash script</title>
		<link>http://www.christopherirish.com/2010/05/03/git-garbage-collect-bash-script/</link>
		<comments>http://www.christopherirish.com/2010/05/03/git-garbage-collect-bash-script/#comments</comments>
		<pubDate>Mon, 03 May 2010 15:00:08 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=183</guid>
		<description><![CDATA[The following shell command will crawl your hard drive, from your current directory, looking for any git repositories. When it finds them it will garbage collect, prune, and pack them, regaining your disk space and make your repositories operate faster. 12#!/bin/sh find . -type d -name .git &#124; while read dir; do pushd &#34;$dir&#34;; git [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The following shell command will crawl your hard drive, from your current directory, looking for any git repositories.  When it finds them it will garbage collect, prune, and pack them, regaining your disk space and make your repositories operate faster.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> d <span style="color: #660033;">-name</span> .git <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #c20cb9; font-weight: bold;">dir</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">pushd</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span>&quot;</span>; <span style="color: #c20cb9; font-weight: bold;">git gc</span> <span style="color: #660033;">--prune</span>; <span style="color: #7a0874; font-weight: bold;">popd</span>; <span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>You can run this directly from the terminal or just turn this snippet into a lil bash script file for easy executing later, i.e.</p>

<div class="wp-terminal">$ touch git_garbage_collect.sh<br/>$ nano git_garbage_collect.sh<br/>$ # copy & paste the script into the file<br/>$ ctrl+o # to save the file<br/>$ ctrl+x # to exit nano<br/></div>

<p>Then just run it like any other bash script</p>

<div class="wp-terminal">$ ./git_garbage_collect.sh<br/></div>

<div id="hire" class="text-center">
  <a href="http://velocitylabs.io"><img src="http://www.christopherirish.com/wp-content/uploads/2018/07/velocity-labs-logo-text.png" alt="" title="velocity-labs-logo-text" width="300" class="alignleft size-full wp-image-971" /></a></p>
<p>
    Need web application development, maintenance for your existing app, or a third party code review?
  </p>
<p>
    <strong class="text-uppercase">Velocity Labs can help.</strong>
  </p>
<p>  <a href="http://velocitylabs.io#contact" class="btn btn-warning btn-block" target="_blank">Click here to get started!</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2010/05/03/git-garbage-collect-bash-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
