<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - ches</title>
<link>http://snipplr.com/users/ches</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 22:50:48 GMT</pubDate>
<item>
<title>(Python) chdir context manager</title>
<link>http://snipplr.com/view/56684/chdir-context-manager/</link>
<description><![CDATA[ <p>This context manager restores the value of the current working directory (cwd) after the enclosed code block completes or raises an exception.  If a directory name is supplied to the context manager then the cwd is changed prior to running the code block.</p> ]]></description>
<pubDate>Sat, 16 Jul 2011 18:28:17 GMT</pubDate>
<guid>http://snipplr.com/view/56684/chdir-context-manager/</guid>
</item>
<item>
<title>(Bash) imapsync script to migrate Gmail to Google Apps</title>
<link>http://snipplr.com/view/17584/imapsync-script-to-migrate-gmail-to-google-apps/</link>
<description><![CDATA[ <p>Based on the good initial coverage [over here](http://www.thamtech.com/blog/2008/03/29/gmail-to-google-apps-email-migration/).</p> ]]></description>
<pubDate>Tue, 28 Jul 2009 14:24:34 GMT</pubDate>
<guid>http://snipplr.com/view/17584/imapsync-script-to-migrate-gmail-to-google-apps/</guid>
</item>
<item>
<title>(Bash) Compute Directory Size Recursively with du</title>
<link>http://snipplr.com/view/7566/compute-directory-size-recursively-with-du/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 28 Jul 2008 18:04:06 GMT</pubDate>
<guid>http://snipplr.com/view/7566/compute-directory-size-recursively-with-du/</guid>
</item>
<item>
<title>(Bash) Perl Search and Replace One-liner with xargs -0</title>
<link>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</link>
<description><![CDATA[ <p>\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.</p> ]]></description>
<pubDate>Fri, 15 Feb 2008 14:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</guid>
</item>
<item>
<title>(Bash) Deleting Blank Lines Using AWK</title>
<link>http://snipplr.com/view/4315/deleting-blank-lines-using-awk/</link>
<description><![CDATA[ <p>Create a copy of a text file with blank lines removed.</p> ]]></description>
<pubDate>Wed, 12 Dec 2007 12:38:18 GMT</pubDate>
<guid>http://snipplr.com/view/4315/deleting-blank-lines-using-awk/</guid>
</item>
<item>
<title>(Ruby) Ruby One-liner for Restoring One Table from a Huge SQL Dump</title>
<link>http://snipplr.com/view/4198/ruby-oneliner-for-restoring-one-table-from-a-huge-sql-dump/</link>
<description><![CDATA[ <p>Courtesy of Jesse.</p> ]]></description>
<pubDate>Tue, 27 Nov 2007 10:55:45 GMT</pubDate>
<guid>http://snipplr.com/view/4198/ruby-oneliner-for-restoring-one-table-from-a-huge-sql-dump/</guid>
</item>
<item>
<title>(Python) Alternate Table Row Classes in a Mako Template</title>
<link>http://snipplr.com/view/3764/alternate-table-row-classes-in-a-mako-template/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 22 Sep 2007 17:27:08 GMT</pubDate>
<guid>http://snipplr.com/view/3764/alternate-table-row-classes-in-a-mako-template/</guid>
</item>
<item>
<title>(Python) Quick, Simple Password Generator</title>
<link>http://snipplr.com/view/3677/quick-simple-password-generator/</link>
<description><![CDATA[ <p>Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.</p> ]]></description>
<pubDate>Wed, 12 Sep 2007 10:30:59 GMT</pubDate>
<guid>http://snipplr.com/view/3677/quick-simple-password-generator/</guid>
</item>
<item>
<title>(Bash) Batch File Rename with awk and sed</title>
<link>http://snipplr.com/view/3648/batch-file-rename-with-awk-and-sed/</link>
<description><![CDATA[ <p>Leave off the final pipe to /bin/sh to do a 'dry run'</p> ]]></description>
<pubDate>Fri, 07 Sep 2007 14:58:16 GMT</pubDate>
<guid>http://snipplr.com/view/3648/batch-file-rename-with-awk-and-sed/</guid>
</item>
<item>
<title>(Python) FormEncode Email Address validation schema</title>
<link>http://snipplr.com/view/3479/formencode-email-address-validation-schema/</link>
<description><![CDATA[ <p>model/form.py is a good place to put schemata in a pylons app: easy to build with inheritance and accessible to controllers via model.form.EmailForm, etc. See the link for further info on the _extra_fields options -- this one is intended for just two fields: a text field and submit button.</p> ]]></description>
<pubDate>Mon, 06 Aug 2007 22:55:49 GMT</pubDate>
<guid>http://snipplr.com/view/3479/formencode-email-address-validation-schema/</guid>
</item>
<item>
<title>(Python) python date suffixes for strftime</title>
<link>http://snipplr.com/view/3468/python-date-suffixes-for-strftime/</link>
<description><![CDATA[ <p>like PHP's 'jS'</p> ]]></description>
<pubDate>Sun, 05 Aug 2007 22:38:58 GMT</pubDate>
<guid>http://snipplr.com/view/3468/python-date-suffixes-for-strftime/</guid>
</item>
<item>
<title>(XML) htaccess one-liner for MT URL restructuring</title>
<link>http://snipplr.com/view/3315/htaccess-oneliner-for-mt-url-restructuring/</link>
<description><![CDATA[ <p>Build URLs for subcategories, e.g. 'cat-child-support.html' becomes '/family-law/child-support/'</p> ]]></description>
<pubDate>Wed, 18 Jul 2007 13:45:46 GMT</pubDate>
<guid>http://snipplr.com/view/3315/htaccess-oneliner-for-mt-url-restructuring/</guid>
</item>
</channel>
</rss>