<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 18:49:17 +0000</lastBuildDate>
    <item>
      <title>(Windows PowerShell) Measuring a command with console output in PowerShell - jarnaldich</title>
      <link>https://snipplr.com/view/65549/measuring-a-command-with-console-output-in-powershell</link>
      <description>&lt;p&gt;This times the execution of a Command. The Out-Default part is just to print the command output to console.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Jun 2012 05:03:48 UTC</pubDate>
      <guid>https://snipplr.com/view/65549/measuring-a-command-with-console-output-in-powershell</guid>
    </item>
    <item>
      <title>(Python) Python Time Bomb - jarnaldich</title>
      <link>https://snipplr.com/view/65318/python-time-bomb</link>
      <description>&lt;p&gt;Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).&lt;/p&gt;</description>
      <pubDate>Fri, 01 Jun 2012 18:06:14 UTC</pubDate>
      <guid>https://snipplr.com/view/65318/python-time-bomb</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Delete files in a directory tree matching a regex - jarnaldich</title>
      <link>https://snipplr.com/view/56129/delete-files-in-a-directory-tree-matching-a-regex</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 05 Jul 2011 16:42:18 UTC</pubDate>
      <guid>https://snipplr.com/view/56129/delete-files-in-a-directory-tree-matching-a-regex</guid>
    </item>
    <item>
      <title>(Python) Get an absolute from a path relative to the current file - jarnaldich</title>
      <link>https://snipplr.com/view/55580/get-an-absolute-from-a-path-relative-to-the-current-file</link>
      <description>&lt;p&gt;Sometimes (ex. django templates section at setting.py), a function expects an absolute path, but it's more practical when developing to refer it to the current file position in our code base. The rel function does exactly that.&lt;/p&gt;</description>
      <pubDate>Wed, 22 Jun 2011 16:55:48 UTC</pubDate>
      <guid>https://snipplr.com/view/55580/get-an-absolute-from-a-path-relative-to-the-current-file</guid>
    </item>
    <item>
      <title>(Python) CamlCase conversion - jarnaldich</title>
      <link>https://snipplr.com/view/47532/camlcase-conversion</link>
      <description>&lt;p&gt;Turn a string LikeThis into like_this&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:47:29 UTC</pubDate>
      <guid>https://snipplr.com/view/47532/camlcase-conversion</guid>
    </item>
    <item>
      <title>(Windows PowerShell) Search and Replace regexp in subdirectories - jarnaldich</title>
      <link>https://snipplr.com/view/44357/search-and-replace-regexp-in-subdirectories</link>
      <description>&lt;p&gt;replace foo -&gt; bar in all .txt files down the tree&#13;
&#13;
Dunno why, the syntax highlighter adds \3's to the code. Try plain text.&lt;/p&gt;</description>
      <pubDate>Thu, 18 Nov 2010 19:31:40 UTC</pubDate>
      <guid>https://snipplr.com/view/44357/search-and-replace-regexp-in-subdirectories</guid>
    </item>
    <item>
      <title>(Bash) UNIX regexp search down a directory tree - jarnaldich</title>
      <link>https://snipplr.com/view/44246/unix-regexp-search-down-a-directory-tree</link>
      <description>&lt;p&gt;Searches down the current directory every file whose name matches (case insensitively) {{file_pattern}} for the regexp {{text}}.&lt;/p&gt;</description>
      <pubDate>Tue, 16 Nov 2010 18:28:37 UTC</pubDate>
      <guid>https://snipplr.com/view/44246/unix-regexp-search-down-a-directory-tree</guid>
    </item>
    <item>
      <title>(Bash) Batch rename with wildcard support in Unix - jarnaldich</title>
      <link>https://snipplr.com/view/39769/batch-rename-with-wildcard-support-in-unix</link>
      <description>&lt;p&gt;To rename a bunch of files from "*.foo" to "*.bar" (like windows' REN *.foo *.bar) in unix.&#13;
&#13;
Looking at the solution, it is easy to adapt it to more powerful character substitutions on  a 1 to 1 basis.&#13;
&#13;
If you want to test what will be executed before doing so, just drop the last pipe.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Sep 2010 03:53:11 UTC</pubDate>
      <guid>https://snipplr.com/view/39769/batch-rename-with-wildcard-support-in-unix</guid>
    </item>
    <item>
      <title>(CSS) Horizontally Centering a div with CSS - jarnaldich</title>
      <link>https://snipplr.com/view/11061/horizontally-centering-a-div-with-css</link>
      <description>&lt;p&gt;Centering a div with css is easy, but there are some compatibility quirks...&lt;/p&gt;</description>
      <pubDate>Sat, 10 Jan 2009 06:51:11 UTC</pubDate>
      <guid>https://snipplr.com/view/11061/horizontally-centering-a-div-with-css</guid>
    </item>
    <item>
      <title>(C++) Macro to ease auto_ptr usage - jarnaldich</title>
      <link>https://snipplr.com/view/10419/macro-to-ease-autoptr-usage</link>
      <description>&lt;p&gt;Use this macro to help declaring auto-release pointers in C++. See usage in the source.&#13;
Remember that std::auto_ptr is a standard template class that helps releasing memory, since the pointer you provide in the constructor will be released in the destructor of the class. This means that memory is released "automagically" when the variable goes out of scope. Use of this class is specially advisable in a method with serveral returns or capable of throwing an exception.&lt;/p&gt;</description>
      <pubDate>Fri, 12 Dec 2008 03:17:25 UTC</pubDate>
      <guid>https://snipplr.com/view/10419/macro-to-ease-autoptr-usage</guid>
    </item>
    <item>
      <title>(SQL) Importing data from (Excel) CSV into MySQL - jarnaldich</title>
      <link>https://snipplr.com/view/6919/importing-data-from-excel-csv-into-mysql</link>
      <description>&lt;p&gt;Imports data from CSV (excel-compatible format) into MySQL. Also check the mysqlimport utility and the complementary SELECT ... INTO OUTFILE.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jun 2008 02:39:50 UTC</pubDate>
      <guid>https://snipplr.com/view/6919/importing-data-from-excel-csv-into-mysql</guid>
    </item>
    <item>
      <title>(Scheme) Grouping keys of an associative list - jarnaldich</title>
      <link>https://snipplr.com/view/6067/grouping-keys-of-an-associative-list</link>
      <description>&lt;p&gt;Given an an associative list ((k1 . v1) (k2 . v2) ... (kn . vn)), with possibly equal values for ki, it returns another alist where all cells have distinct keys and where values originally associated to the same key have been grouped as a list in the new cons cell.  Ouch! This is much harder to explain than to code. Just check the commented example in the code.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Apr 2008 14:23:31 UTC</pubDate>
      <guid>https://snipplr.com/view/6067/grouping-keys-of-an-associative-list</guid>
    </item>
    <item>
      <title>(SmallTalk) File slurping in SmallTalk - jarnaldich</title>
      <link>https://snipplr.com/view/5888/file-slurping-in-smalltalk</link>
      <description>&lt;p&gt;Reading the contents of a whole file as a string.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:20:32 UTC</pubDate>
      <guid>https://snipplr.com/view/5888/file-slurping-in-smalltalk</guid>
    </item>
    <item>
      <title>(Ruby) Turning array values into hash keys - jarnaldich</title>
      <link>https://snipplr.com/view/5712/turning-array-values-into-hash-keys</link>
      <description>&lt;p&gt;Useful for speeding up searches.&lt;/p&gt;</description>
      <pubDate>Sat, 05 Apr 2008 13:34:16 UTC</pubDate>
      <guid>https://snipplr.com/view/5712/turning-array-values-into-hash-keys</guid>
    </item>
    <item>
      <title>(Other) backup mysql databases - jarnaldich</title>
      <link>https://snipplr.com/view/5169/backup-mysql-databases</link>
      <description>&lt;p&gt;MySQL backup and restore example through mysqldump / mysql command line utilities.&lt;/p&gt;</description>
      <pubDate>Sun, 24 Feb 2008 06:31:12 UTC</pubDate>
      <guid>https://snipplr.com/view/5169/backup-mysql-databases</guid>
    </item>
    <item>
      <title>(Lisp) Serializing in Lisp - jarnaldich</title>
      <link>https://snipplr.com/view/5139/serializing-in-lisp</link>
      <description>&lt;p&gt;Example of serializing a lisp variable.&lt;/p&gt;</description>
      <pubDate>Thu, 21 Feb 2008 02:23:02 UTC</pubDate>
      <guid>https://snipplr.com/view/5139/serializing-in-lisp</guid>
    </item>
  </channel>
</rss>
