<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 11:04:41 GMT</pubDate>
<item>
<title>(Ruby) Watchr config for use with PHPUnit</title>
<link>http://snipplr.com/view/51383/watchr-config-for-use-with-phpunit/</link>
<description><![CDATA[ <p>A simple [Watchr](https://github.com/mynyml/watchr) config for running PHPUnit tests.

This will run a [Pake](https://github.com/indeyets/pake/wiki) task called "test" and ring the system bell if the task fails.  *Ringing the system bell* is especially nice when running inside a GNU Screen session.

*Installation*

To install you need [RubyGems](http://rubyforge.org).  Then type:

        sudo gem install watchr</p> ]]></description>
<pubDate>Thu, 31 Mar 2011 14:28:22 GMT</pubDate>
<guid>http://snipplr.com/view/51383/watchr-config-for-use-with-phpunit/</guid>
</item>
<item>
<title>(Bash) Start an XWindows session on Mac OSX</title>
<link>http://snipplr.com/view/51238/start-an-xwindows-session-on-mac-osx/</link>
<description><![CDATA[ <p>The key is to give your SSH client the *-Y* option, which enables X11 forwarding.  Without that, [the magic won't work.](http://www.youtube.com/watch?v=uLso0ZBqOi4)

Run these commands on Mac, from the [X11 Shell](http://developer.apple.com/opensource/tools/x11.html).</p> ]]></description>
<pubDate>Tue, 29 Mar 2011 13:41:33 GMT</pubDate>
<guid>http://snipplr.com/view/51238/start-an-xwindows-session-on-mac-osx/</guid>
</item>
<item>
<title>(Perl) Detect PHP files with trailing whitespace, using Perl</title>
<link>http://snipplr.com/view/46218/detect-php-files-with-trailing-whitespace-using-perl/</link>
<description><![CDATA[ <p>The following incantation returns nonzero exit status when the terminating `?>`  of a PHP file, is followed by whitespace.</p> ]]></description>
<pubDate>Wed, 29 Dec 2010 08:25:03 GMT</pubDate>
<guid>http://snipplr.com/view/46218/detect-php-files-with-trailing-whitespace-using-perl/</guid>
</item>
<item>
<title>(Bash) test that pwgen does not produce duplicate words</title>
<link>http://snipplr.com/view/45623/test-that-pwgen-does-not-produce-duplicate-words/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 11 Dec 2010 15:20:34 GMT</pubDate>
<guid>http://snipplr.com/view/45623/test-that-pwgen-does-not-produce-duplicate-words/</guid>
</item>
<item>
<title>(Ruby) Selenium and Ruby: How to fix "Cannot call method 'indexOf' of undefined" when opening a page in Google Chrome</title>
<link>http://snipplr.com/view/45567/selenium-and-ruby-how-to-fix-cannot-call-method-indexof-of-undefined-when-opening-a-page-in-google-chrome/</link>
<description><![CDATA[ <p>Instead of just saying @selenium.start, use the following incantation to start up your Chrome instance.</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 18:34:04 GMT</pubDate>
<guid>http://snipplr.com/view/45567/selenium-and-ruby-how-to-fix-cannot-call-method-indexof-of-undefined-when-opening-a-page-in-google-chrome/</guid>
</item>
<item>
<title>(Ruby) analysis of Hudson JUNit logfiles</title>
<link>http://snipplr.com/view/44499/analysis-of-hudson-junit-logfiles/</link>
<description><![CDATA[ <p>assuming you are standing in`$HUDSON_HOME/jobs/job_foo/builds/123`</p> ]]></description>
<pubDate>Sat, 20 Nov 2010 17:15:44 GMT</pubDate>
<guid>http://snipplr.com/view/44499/analysis-of-hudson-junit-logfiles/</guid>
</item>
<item>
<title>(Bash) increment a counter in bash</title>
<link>http://snipplr.com/view/44406/increment-a-counter-in-bash/</link>
<description><![CDATA[ <p>Spoof the Hudson BUILD_NUMBER environment variable, which increments on every build.

With this tiny hack you can fake a BUILD_NUMBER that you can increment by hand.

Useful for testing Hudson build scripts.</p> ]]></description>
<pubDate>Fri, 19 Nov 2010 07:37:56 GMT</pubDate>
<guid>http://snipplr.com/view/44406/increment-a-counter-in-bash/</guid>
</item>
<item>
<title>(Bash) bash: how to start a service and wait until it\'s up</title>
<link>http://snipplr.com/view/43113/bash-how-to-start-a-service-and-wait-until-its-up/</link>
<description><![CDATA[ <p>Sometimes you need to start a service that takes a while to spin up.

Solr and Selenium-RC Server, for instance, can be unavailable for several seconds after the command to start them is issued.

Using Netcat, it's easy to poll-and-wait until a newly-started service begins listening on its proper port.</p> ]]></description>
<pubDate>Thu, 28 Oct 2010 14:02:26 GMT</pubDate>
<guid>http://snipplr.com/view/43113/bash-how-to-start-a-service-and-wait-until-its-up/</guid>
</item>
<item>
<title>(Bash) verify a service is up and running with netcat and Hudson</title>
<link>http://snipplr.com/view/41390/verify-a-service-is-up-and-running-with-netcat-and-hudson/</link>
<description><![CDATA[ <p>Use the `-z` option to netcat so you don\\\\\\\'t have to bother with piping input into the port once opened.  All you want to know is if the service is up!\\r\\n\\r\\nThen, if you are running this checker inside of Hudson, you need to set the BUILD_ID env var to something abitrary like BUILD_ID=dontKill\\r\\n\\r\\nKludgy, but [it works](http://issues.hudson-ci.org/browse/HUDSON-2729?focusedCommentId=127805&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_127805)</p> ]]></description>
<pubDate>Sun, 03 Oct 2010 16:11:56 GMT</pubDate>
<guid>http://snipplr.com/view/41390/verify-a-service-is-up-and-running-with-netcat-and-hudson/</guid>
</item>
<item>
<title>(Bash) kill zombie processes</title>
<link>http://snipplr.com/view/41095/kill-zombie-processes/</link>
<description><![CDATA[ <p>Thanks to [Kastner](http://metaatem.net/) for these snippets.</p> ]]></description>
<pubDate>Tue, 28 Sep 2010 07:14:38 GMT</pubDate>
<guid>http://snipplr.com/view/41095/kill-zombie-processes/</guid>
</item>
<item>
<title>(Bash) delete files older than 1 day</title>
<link>http://snipplr.com/view/40798/delete-files-older-than-1-day/</link>
<description><![CDATA[ <p>Finds and *removes* files older than 2 days.\r\n\r\n*Use with caution* obviously, as if you fuck up, you\'ll certainly delete files you want to keep, possibly *destroying your entire computer.*\r\n\r\nEnjoy!</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 03:20:55 GMT</pubDate>
<guid>http://snipplr.com/view/40798/delete-files-older-than-1-day/</guid>
</item>
<item>
<title>(Bash) sendmail without writing a file</title>
<link>http://snipplr.com/view/40790/sendmail-without-writing-a-file/</link>
<description><![CDATA[ <p>Usually you see sendmail invoked with `sendmail me@example.com < file.txt`

What if you're scripting, and don't feel like writing a temp file for every email message?</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 00:22:32 GMT</pubDate>
<guid>http://snipplr.com/view/40790/sendmail-without-writing-a-file/</guid>
</item>
<item>
<title>(Bash) howto create/change SVN externals (link an SVN repo to another path in the repo, or to another project entirely)</title>
<link>http://snipplr.com/view/30093/howto-createchange-svn-externals-link-an-svn-repo-to-another-path-in-the-repo-or-to-another-project-entirely/</link>
<description><![CDATA[ <p>Sometimes it is convenient to "pull in" code from an external source.  This is especially useful if you have dependencies that you don't manage yourself.</p> ]]></description>
<pubDate>Sun, 21 Mar 2010 13:05:06 GMT</pubDate>
<guid>http://snipplr.com/view/30093/howto-createchange-svn-externals-link-an-svn-repo-to-another-path-in-the-repo-or-to-another-project-entirely/</guid>
</item>
<item>
<title>(SVN) Howto list all the file extension types in an SVN log dump</title>
<link>http://snipplr.com/view/28195/howto-list-all-the-file-extension-types-in-an-svn-log-dump/</link>
<description><![CDATA[ <p>Note that on Windows you will want to double-quote the string argument to `perl -ne` rather than single-quoting it.  Otherwise this works on Windows (with Cygwin) as well.</p> ]]></description>
<pubDate>Thu, 11 Feb 2010 14:59:31 GMT</pubDate>
<guid>http://snipplr.com/view/28195/howto-list-all-the-file-extension-types-in-an-svn-log-dump/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to start and stop the Selenium-RC server</title>
<link>http://snipplr.com/view/27992/howto-set-up-a-rake-task-to-start-and-stop-the-seleniumrc-server/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Feb 2010 23:01:08 GMT</pubDate>
<guid>http://snipplr.com/view/27992/howto-set-up-a-rake-task-to-start-and-stop-the-seleniumrc-server/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task that passes a parameter to a shell command or script</title>
<link>http://snipplr.com/view/27991/howto-set-up-a-rake-task-that-passes-a-parameter-to-a-shell-command-or-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Feb 2010 22:48:53 GMT</pubDate>
<guid>http://snipplr.com/view/27991/howto-set-up-a-rake-task-that-passes-a-parameter-to-a-shell-command-or-script/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to run Cucumber features and generate reports</title>
<link>http://snipplr.com/view/27990/howto-set-up-a-rake-task-to-run-cucumber-features-and-generate-reports/</link>
<description><![CDATA[ <p>Note that Rake is slower than just running `cucumber`</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 22:41:45 GMT</pubDate>
<guid>http://snipplr.com/view/27990/howto-set-up-a-rake-task-to-run-cucumber-features-and-generate-reports/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to update installed gems and gem sources</title>
<link>http://snipplr.com/view/27989/howto-set-up-a-rake-task-to-update-installed-gems-and-gem-sources/</link>
<description><![CDATA[ <p>Rails has a task like this, but I couldn't locate it, and it wasn't hard to write my own, and mine worked too :|</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 22:26:09 GMT</pubDate>
<guid>http://snipplr.com/view/27989/howto-set-up-a-rake-task-to-update-installed-gems-and-gem-sources/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to clean out old temp files and logfiles</title>
<link>http://snipplr.com/view/27987/howto-set-up-a-rake-task-to-clean-out-old-temp-files-and-logfiles/</link>
<description><![CDATA[ <p>If you don't see a particular extension in the CLEAN list, test before you add it.  Common temporary file extensions like `~` are cleaned by default.</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 21:56:37 GMT</pubDate>
<guid>http://snipplr.com/view/27987/howto-set-up-a-rake-task-to-clean-out-old-temp-files-and-logfiles/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to generate RDoc documentation</title>
<link>http://snipplr.com/view/27986/howto-set-up-a-rake-task-to-generate-rdoc-documentation/</link>
<description><![CDATA[ <p>For the `--diagram` and `--fileboxes` options to work you need [GraphViz](http://www.graphviz.org/) otherwise, delete those.</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 21:42:54 GMT</pubDate>
<guid>http://snipplr.com/view/27986/howto-set-up-a-rake-task-to-generate-rdoc-documentation/</guid>
</item>
</channel>
</rss>