<?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 12:53:51 +0000</lastBuildDate>
    <item>
      <title>(Bash) Git ignore global - aleprieto</title>
      <link>https://snipplr.com/view/30064/git-ignore-global</link>
      <description>&lt;p&gt;Here's how to set-up globally a set of excludes when using GIT, in this case setting up GIT to ignore .DS_Store files on a Mac.&#13;
&#13;
First add a common ignore file to the GIT configuration, in this case stored in the users home directory called .gitignore&#13;
&#13;
Next add the exclude line for .DS_Store to the .gitignore file either with your favourite editor or simply with this command which will create it if it doesn't already exist as well.&lt;/p&gt;</description>
      <pubDate>Sat, 20 Mar 2010 22:01:42 UTC</pubDate>
      <guid>https://snipplr.com/view/30064/git-ignore-global</guid>
    </item>
    <item>
      <title>(PHP) Displaying terms by facet (vocabulary) - aleprieto</title>
      <link>https://snipplr.com/view/28771/displaying-terms-by-facet-vocabulary</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 22 Feb 2010 22:14:50 UTC</pubDate>
      <guid>https://snipplr.com/view/28771/displaying-terms-by-facet-vocabulary</guid>
    </item>
    <item>
      <title>(JavaScript) Thickbox hide objects - aleprieto</title>
      <link>https://snipplr.com/view/26346/thickbox-hide-objects</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 13 Jan 2010 00:02:08 UTC</pubDate>
      <guid>https://snipplr.com/view/26346/thickbox-hide-objects</guid>
    </item>
    <item>
      <title>(SQL) MySQL find replace - aleprieto</title>
      <link>https://snipplr.com/view/20585/mysql-find-replace</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 02 Oct 2009 10:24:38 UTC</pubDate>
      <guid>https://snipplr.com/view/20585/mysql-find-replace</guid>
    </item>
    <item>
      <title>(SQL) MySQL find and replace - aleprieto</title>
      <link>https://snipplr.com/view/20584/mysql-find-and-replace</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 02 Oct 2009 10:23:07 UTC</pubDate>
      <guid>https://snipplr.com/view/20584/mysql-find-and-replace</guid>
    </item>
    <item>
      <title>(AppleScript) Shutdown Mac via terminal - aleprieto</title>
      <link>https://snipplr.com/view/19154/shutdown-mac-via-terminal</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 02 Sep 2009 01:40:36 UTC</pubDate>
      <guid>https://snipplr.com/view/19154/shutdown-mac-via-terminal</guid>
    </item>
    <item>
      <title>(AppleScript) Shutdown Mac via terminal - aleprieto</title>
      <link>https://snipplr.com/view/19153/shutdown-mac-via-terminal</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 02 Sep 2009 01:38:49 UTC</pubDate>
      <guid>https://snipplr.com/view/19153/shutdown-mac-via-terminal</guid>
    </item>
    <item>
      <title>(Apache) Drupal .htaccess for enabling clean url's - aleprieto</title>
      <link>https://snipplr.com/view/12365/drupal-htaccess-for-enabling-clean-urls</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 18 Feb 2009 20:51:58 UTC</pubDate>
      <guid>https://snipplr.com/view/12365/drupal-htaccess-for-enabling-clean-urls</guid>
    </item>
    <item>
      <title>(CSS) Estilos CSS para los nuevos comentarios de Wordpress 2.7 - aleprieto</title>
      <link>https://snipplr.com/view/11224/estilos-css-para-los-nuevos-comentarios-de-wordpress-27</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 15 Jan 2009 17:08:40 UTC</pubDate>
      <guid>https://snipplr.com/view/11224/estilos-css-para-los-nuevos-comentarios-de-wordpress-27</guid>
    </item>
    <item>
      <title>(PHP) Drupal 6: Translatable primary and secondary links with i18n module - aleprieto</title>
      <link>https://snipplr.com/view/10961/drupal-6-translatable-primary-and-secondary-links-with-i18n-module</link>
      <description>&lt;p&gt;Put this in settings.php&lt;/p&gt;</description>
      <pubDate>Tue, 06 Jan 2009 15:36:43 UTC</pubDate>
      <guid>https://snipplr.com/view/10961/drupal-6-translatable-primary-and-secondary-links-with-i18n-module</guid>
    </item>
    <item>
      <title>(PHP) Drupal theming list Views to display like menus - aleprieto</title>
      <link>https://snipplr.com/view/8126/drupal-theming-list-views-to-display-like-menus</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 01 Sep 2008 14:20:40 UTC</pubDate>
      <guid>https://snipplr.com/view/8126/drupal-theming-list-views-to-display-like-menus</guid>
    </item>
    <item>
      <title>(PHP) Menu items that are not links - aleprieto</title>
      <link>https://snipplr.com/view/8047/menu-items-that-are-not-links</link>
      <description>&lt;p&gt;The following code lets us designate "menu links" that will not actually link anywhere.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Aug 2008 20:29:19 UTC</pubDate>
      <guid>https://snipplr.com/view/8047/menu-items-that-are-not-links</guid>
    </item>
    <item>
      <title>(PHP) Separate theme for a specific node - aleprieto</title>
      <link>https://snipplr.com/view/8045/separate-theme-for-a-specific-node</link>
      <description>&lt;p&gt;If you want to use a specific node.tpl.php for a node, paste or merge this code into your template.php&lt;/p&gt;</description>
      <pubDate>Tue, 26 Aug 2008 17:31:48 UTC</pubDate>
      <guid>https://snipplr.com/view/8045/separate-theme-for-a-specific-node</guid>
    </item>
    <item>
      <title>(PHP) Customize search results - aleprieto</title>
      <link>https://snipplr.com/view/7995/customize-search-results</link>
      <description>&lt;p&gt;Allows to customize the search results page.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Aug 2008 19:47:01 UTC</pubDate>
      <guid>https://snipplr.com/view/7995/customize-search-results</guid>
    </item>
    <item>
      <title>(PHP) Non collapsible advanced search - aleprieto</title>
      <link>https://snipplr.com/view/7994/non-collapsible-advanced-search</link>
      <description>&lt;p&gt;Makes Drupal Advanced Search form non collapsible and expanded by default.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Aug 2008 19:29:52 UTC</pubDate>
      <guid>https://snipplr.com/view/7994/non-collapsible-advanced-search</guid>
    </item>
    <item>
      <title>(PHP) Related nodes to the current node by taxonomy term (2) - aleprieto</title>
      <link>https://snipplr.com/view/7969/related-nodes-to-the-current-node-by-taxonomy-term-2</link>
      <description>&lt;p&gt;Here is a simpler list format without the Term name, sorted by date, filtered for published and images, and is rendered correctly by the theme.&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:31:00 UTC</pubDate>
      <guid>https://snipplr.com/view/7969/related-nodes-to-the-current-node-by-taxonomy-term-2</guid>
    </item>
    <item>
      <title>(PHP) Related nodes to the current node by taxonomy term (1) - aleprieto</title>
      <link>https://snipplr.com/view/7968/related-nodes-to-the-current-node-by-taxonomy-term-1</link>
      <description>&lt;p&gt;Use the code below to build a custom block that shows the related nodes to the current node by taxonomy term. For example: If the current node in display has a taxonomy term "fish", a bunch of links that link to nodes that have the "fish" term is to be shown in a block on the page.&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:29:09 UTC</pubDate>
      <guid>https://snipplr.com/view/7968/related-nodes-to-the-current-node-by-taxonomy-term-1</guid>
    </item>
    <item>
      <title>(PHP) Block that displays terms in a vocabulary as a list of links - aleprieto</title>
      <link>https://snipplr.com/view/7967/block-that-displays-terms-in-a-vocabulary-as-a-list-of-links</link>
      <description>&lt;p&gt;This is a simple little block that displays a list of terms in a vocabulary as a list of links to /taxonomy/term/tid pages. Items are listed in the order set for the vocabulary. You could probably use the php sort() function to change that if desired.&#13;
&#13;
Be sure to change the $vid to reflect the vocabulary id of the vocabulary you wish to list. Also, you can change the "taxonomy/term/$term-&gt;tid" to any path you wish.&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:25:03 UTC</pubDate>
      <guid>https://snipplr.com/view/7967/block-that-displays-terms-in-a-vocabulary-as-a-list-of-links</guid>
    </item>
    <item>
      <title>(PHP) Drupal: Add node content into block depending on page ID - aleprieto</title>
      <link>https://snipplr.com/view/7966/drupal-add-node-content-into-block-depending-on-page-id</link>
      <description>&lt;p&gt;Fairly simple way to match sidebar content with the main content for several pages without the need to create multiple blocks or the hassle of putting content in a block.&#13;
&#13;
For example, your Home, About and Contact pages all have a sidebar with some accompanying content which is different for each.&#13;
&#13;
   1. Create pages (nodes) for each of the sidebar content and note the node ID.&#13;
   2. Add a block and paste in this code snippet&#13;
   3. Edit the Switch/Case part of this snippet for your nodes&#13;
   4. Enable the block for content/* and node/*&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:19:26 UTC</pubDate>
      <guid>https://snipplr.com/view/7966/drupal-add-node-content-into-block-depending-on-page-id</guid>
    </item>
    <item>
      <title>(PHP) Drupal RelatedContent module: Block with links to related content - aleprieto</title>
      <link>https://snipplr.com/view/7965/drupal-relatedcontent-module-block-with-links-to-related-content</link>
      <description>&lt;p&gt;This code snippet make use of the API to accomplish a block with links to related content.&lt;/p&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:15:20 UTC</pubDate>
      <guid>https://snipplr.com/view/7965/drupal-relatedcontent-module-block-with-links-to-related-content</guid>
    </item>
    <item>
      <title>(PHP) Drupal tip: Stripping out nested divs in views blocks - aleprieto</title>
      <link>https://snipplr.com/view/7829/drupal-tip-stripping-out-nested-divs-in-views-blocks</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 12 Aug 2008 07:22:08 UTC</pubDate>
      <guid>https://snipplr.com/view/7829/drupal-tip-stripping-out-nested-divs-in-views-blocks</guid>
    </item>
  </channel>
</rss>
