<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - aleprieto</title>
<link>http://snipplr.com/users/aleprieto</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 19:46:02 GMT</pubDate>
<item>
<title>(Bash) Git ignore global</title>
<link>http://snipplr.com/view/30064/git-ignore-global/</link>
<description><![CDATA[ <p>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.

First add a common ignore file to the GIT configuration, in this case stored in the users home directory called .gitignore

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.</p> ]]></description>
<pubDate>Sat, 20 Mar 2010 22:01:42 GMT</pubDate>
<guid>http://snipplr.com/view/30064/git-ignore-global/</guid>
</item>
<item>
<title>(PHP) Displaying terms by facet (vocabulary)</title>
<link>http://snipplr.com/view/28771/displaying-terms-by-facet-vocabulary/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 22 Feb 2010 22:14:50 GMT</pubDate>
<guid>http://snipplr.com/view/28771/displaying-terms-by-facet-vocabulary/</guid>
</item>
<item>
<title>(JavaScript) Thickbox hide objects</title>
<link>http://snipplr.com/view/26346/thickbox-hide-objects/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 13 Jan 2010 00:02:08 GMT</pubDate>
<guid>http://snipplr.com/view/26346/thickbox-hide-objects/</guid>
</item>
<item>
<title>(SQL) MySQL find replace</title>
<link>http://snipplr.com/view/20585/mysql-find-replace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 02 Oct 2009 10:24:38 GMT</pubDate>
<guid>http://snipplr.com/view/20585/mysql-find-replace/</guid>
</item>
<item>
<title>(SQL) MySQL find and replace</title>
<link>http://snipplr.com/view/20584/mysql-find-and-replace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 02 Oct 2009 10:23:07 GMT</pubDate>
<guid>http://snipplr.com/view/20584/mysql-find-and-replace/</guid>
</item>
<item>
<title>(AppleScript) Shutdown Mac via terminal</title>
<link>http://snipplr.com/view/19154/shutdown-mac-via-terminal/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Sep 2009 01:40:36 GMT</pubDate>
<guid>http://snipplr.com/view/19154/shutdown-mac-via-terminal/</guid>
</item>
<item>
<title>(AppleScript) Shutdown Mac via terminal</title>
<link>http://snipplr.com/view/19153/shutdown-mac-via-terminal/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Sep 2009 01:38:49 GMT</pubDate>
<guid>http://snipplr.com/view/19153/shutdown-mac-via-terminal/</guid>
</item>
<item>
<title>(Apache) Drupal .htaccess for enabling clean url's</title>
<link>http://snipplr.com/view/12365/drupal-htaccess-for-enabling-clean-urls/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 18 Feb 2009 20:51:58 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/11224/estilos-css-para-los-nuevos-comentarios-de-wordpress-27/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 15 Jan 2009 17:08:40 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/10961/drupal-6-translatable-primary-and-secondary-links-with-i18n-module/</link>
<description><![CDATA[ <p>Put this in settings.php</p> ]]></description>
<pubDate>Tue, 06 Jan 2009 15:36:43 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/8126/drupal-theming-list-views-to-display-like-menus/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 01 Sep 2008 14:20:40 GMT</pubDate>
<guid>http://snipplr.com/view/8126/drupal-theming-list-views-to-display-like-menus/</guid>
</item>
<item>
<title>(PHP) Menu items that are not links</title>
<link>http://snipplr.com/view/8047/menu-items-that-are-not-links/</link>
<description><![CDATA[ <p>The following code lets us designate "menu links" that will not actually link anywhere.</p> ]]></description>
<pubDate>Tue, 26 Aug 2008 20:29:19 GMT</pubDate>
<guid>http://snipplr.com/view/8047/menu-items-that-are-not-links/</guid>
</item>
<item>
<title>(PHP) Separate theme for a specific node</title>
<link>http://snipplr.com/view/8045/separate-theme-for-a-specific-node/</link>
<description><![CDATA[ <p>If you want to use a specific node.tpl.php for a node, paste or merge this code into your template.php</p> ]]></description>
<pubDate>Tue, 26 Aug 2008 17:31:48 GMT</pubDate>
<guid>http://snipplr.com/view/8045/separate-theme-for-a-specific-node/</guid>
</item>
<item>
<title>(PHP) Customize search results</title>
<link>http://snipplr.com/view/7995/customize-search-results/</link>
<description><![CDATA[ <p>Allows to customize the search results page.</p> ]]></description>
<pubDate>Sat, 23 Aug 2008 19:47:01 GMT</pubDate>
<guid>http://snipplr.com/view/7995/customize-search-results/</guid>
</item>
<item>
<title>(PHP) Non collapsible advanced search</title>
<link>http://snipplr.com/view/7994/non-collapsible-advanced-search/</link>
<description><![CDATA[ <p>Makes Drupal Advanced Search form non collapsible and expanded by default.</p> ]]></description>
<pubDate>Sat, 23 Aug 2008 19:29:52 GMT</pubDate>
<guid>http://snipplr.com/view/7994/non-collapsible-advanced-search/</guid>
</item>
<item>
<title>(PHP) Related nodes to the current node by taxonomy term (2)</title>
<link>http://snipplr.com/view/7969/related-nodes-to-the-current-node-by-taxonomy-term-2/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:31:00 GMT</pubDate>
<guid>http://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)</title>
<link>http://snipplr.com/view/7968/related-nodes-to-the-current-node-by-taxonomy-term-1/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:29:09 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/7967/block-that-displays-terms-in-a-vocabulary-as-a-list-of-links/</link>
<description><![CDATA[ <p>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.

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->tid" to any path you wish.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:25:03 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/7966/drupal-add-node-content-into-block-depending-on-page-id/</link>
<description><![CDATA[ <p>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.

For example, your Home, About and Contact pages all have a sidebar with some accompanying content which is different for each.

   1. Create pages (nodes) for each of the sidebar content and note the node ID.
   2. Add a block and paste in this code snippet
   3. Edit the Switch/Case part of this snippet for your nodes
   4. Enable the block for content/* and node/*</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:19:26 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/7965/drupal-relatedcontent-module-block-with-links-to-related-content/</link>
<description><![CDATA[ <p>This code snippet make use of the API to accomplish a block with links to related content.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:15:20 GMT</pubDate>
<guid>http://snipplr.com/view/7965/drupal-relatedcontent-module-block-with-links-to-related-content/</guid>
</item>
</channel>
</rss>