<?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/tags/script</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 06:55:44 GMT</pubDate>
<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>(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>(DOS Batch) Print Date/Time in DOS Batch File</title>
<link>http://snipplr.com/view/21573/print-datetime-in-dos-batch-file/</link>
<description><![CDATA[ <p>The code below shows how to format date and time stamps in DOS batch files.  This is very useful if you are creating a log file, or any file that should have a unique file name.

If you run the batch file below it should print something like the following output:

    Today's date is 2009_10_21

    The local time is 14_25_01

    Date and time: 2009_10_21_14_25_01</p> ]]></description>
<pubDate>Wed, 21 Oct 2009 14:17:34 GMT</pubDate>
<guid>http://snipplr.com/view/21573/print-datetime-in-dos-batch-file/</guid>
</item>
<item>
<title>(DOS Batch) Special variables in Windows Batch files</title>
<link>http://snipplr.com/view/15478/special-variables-in-windows-batch-files/</link>
<description><![CDATA[ <p>Below are the `.bat` file variables that come in handy most often for me.

[This MS article has more information on batch files](http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true) including a **table of more special variables,** including `%~$PATH:1`, which 
	
>  "Searches the directories listed in the PATH environment variable and
>  expands %1 to the fully qualified name of the first one found."</p> ]]></description>
<pubDate>Wed, 03 Jun 2009 11:32:36 GMT</pubDate>
<guid>http://snipplr.com/view/15478/special-variables-in-windows-batch-files/</guid>
</item>
<item>
<title>(Ruby) How to find the path to the script that is currently executing</title>
<link>http://snipplr.com/view/11032/how-to-find-the-path-to-the-script-that-is-currently-executing/</link>
<description><![CDATA[ <p>I just realized this kind of  regex operation is done with slice in Ruby.  In Perl that would be 

    print 'path/to/file' =~ m{(.*/)};</p> ]]></description>
<pubDate>Fri, 09 Jan 2009 09:12:14 GMT</pubDate>
<guid>http://snipplr.com/view/11032/how-to-find-the-path-to-the-script-that-is-currently-executing/</guid>
</item>
<item>
<title>(Perl) Examine CSS selectors in JSP files and report on whether they match some patterns</title>
<link>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</link>
<description><![CDATA[ <p>Processe a directory of JSP source files, looks for regex matches, and reports on the number and location of matches.  For detecting deprecated attributes in XHTML.

Uses Mail::Outlook to send an email.  Requires you to click "ok" each time a notification is sent, but gets around firewalls.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:27:59 GMT</pubDate>
<guid>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</guid>
</item>
</channel>
</rss>
