<?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 14:14:19 +0000</lastBuildDate>
    <item>
      <title>(Bash) Show Hidden Files in Mac Finder - BFTrick</title>
      <link>https://snipplr.com/view/59652/show-hidden-files-in-mac-finder</link>
      <description>&lt;p&gt;Open up your terminal and type in the following commands to show hidden files (such as a .htaccess file).&lt;/p&gt;</description>
      <pubDate>Wed, 12 Oct 2011 01:36:56 UTC</pubDate>
      <guid>https://snipplr.com/view/59652/show-hidden-files-in-mac-finder</guid>
    </item>
    <item>
      <title>(SQL) Find &amp; Replace Text With MySQL - BFTrick</title>
      <link>https://snipplr.com/view/54452/find--replace-text-with-mysql</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 27 May 2011 04:29:58 UTC</pubDate>
      <guid>https://snipplr.com/view/54452/find--replace-text-with-mysql</guid>
    </item>
    <item>
      <title>(jQuery) Jquery Scroll to top of page - BFTrick</title>
      <link>https://snipplr.com/view/47077/jquery-scroll-to-top-of-page</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 14 Jan 2011 01:55:15 UTC</pubDate>
      <guid>https://snipplr.com/view/47077/jquery-scroll-to-top-of-page</guid>
    </item>
    <item>
      <title>(jQuery) Jquery Scroll to anchor tag on page - BFTrick</title>
      <link>https://snipplr.com/view/47074/jquery-scroll-to-anchor-tag-on-page</link>
      <description>&lt;p&gt;You will want to include the jquery easing plugin: http://gsgd.co.uk/sandbox/jquery/easing/&#13;
&#13;
Add a class of 'scroll' to any element that should slide to an anchor tag. You must give the anchor tag an id equal to the name.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Jan 2011 01:45:39 UTC</pubDate>
      <guid>https://snipplr.com/view/47074/jquery-scroll-to-anchor-tag-on-page</guid>
    </item>
    <item>
      <title>(JavaScript) Slide to top of page - BFTrick</title>
      <link>https://snipplr.com/view/43515/slide-to-top-of-page</link>
      <description>&lt;p&gt;Slide / scroll to the top of the page.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Nov 2010 03:13:38 UTC</pubDate>
      <guid>https://snipplr.com/view/43515/slide-to-top-of-page</guid>
    </item>
    <item>
      <title>(Apache) Default HTAccess - BFTrick</title>
      <link>https://snipplr.com/view/42978/default-htaccess</link>
      <description>&lt;p&gt;A default HTAccess file. Uncomment any lines that you want to use.&#13;
&#13;
http://enarion.net/web/htaccess/trailing-slash/&lt;/p&gt;</description>
      <pubDate>Wed, 27 Oct 2010 00:08:26 UTC</pubDate>
      <guid>https://snipplr.com/view/42978/default-htaccess</guid>
    </item>
    <item>
      <title>(Apache) Redirect all external traffic to a temp page - BFTrick</title>
      <link>https://snipplr.com/view/40483/redirect-all-external-traffic-to-a-temp-page</link>
      <description>&lt;p&gt;This code redirects all external traffic (all traffic not belonging to a particular ip) to a temp page. This is useful for performing site maintenance.&lt;/p&gt;</description>
      <pubDate>Wed, 15 Sep 2010 00:15:53 UTC</pubDate>
      <guid>https://snipplr.com/view/40483/redirect-all-external-traffic-to-a-temp-page</guid>
    </item>
    <item>
      <title>(PHP) Print all Posted Variables - BFTrick</title>
      <link>https://snipplr.com/view/21635/print-all-posted-variables</link>
      <description>&lt;p&gt;This code will loop through any posted variables and print the name of the field as well as the value of the field.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Oct 2009 11:15:11 UTC</pubDate>
      <guid>https://snipplr.com/view/21635/print-all-posted-variables</guid>
    </item>
    <item>
      <title>(MySQL) Get random record based on weight - BFTrick</title>
      <link>https://snipplr.com/view/20485/get-random-record-based-on-weight</link>
      <description>&lt;p&gt;Must have a field named Weight.  The more Weight the more often the record is selected.  Weight should be an integer between 1 and 10.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Sep 2009 15:09:16 UTC</pubDate>
      <guid>https://snipplr.com/view/20485/get-random-record-based-on-weight</guid>
    </item>
    <item>
      <title>(MySQL) Get random record in table - BFTrick</title>
      <link>https://snipplr.com/view/14199/get-random-record-in-table</link>
      <description>&lt;p&gt;This code is useful if you have a table where some records have been deleted.  This code will favor records after large blocks of deleted records.&#13;
&#13;
1) Get max id&#13;
2) generate random number with the max id&#13;
3) Query DB with random number.&lt;/p&gt;</description>
      <pubDate>Mon, 20 Apr 2009 11:31:55 UTC</pubDate>
      <guid>https://snipplr.com/view/14199/get-random-record-in-table</guid>
    </item>
    <item>
      <title>(CSS) Min Height for IE6 - BFTrick</title>
      <link>https://snipplr.com/view/14096/min-height-for-ie6</link>
      <description>&lt;p&gt;X can be any numeric value.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Apr 2009 11:38:05 UTC</pubDate>
      <guid>https://snipplr.com/view/14096/min-height-for-ie6</guid>
    </item>
    <item>
      <title>(CSS) CSS Reset + Diagnostic + General Styles - BFTrick</title>
      <link>https://snipplr.com/view/13637/css-reset--diagnostic--general-styles</link>
      <description>&lt;p&gt;The first part resets all the browser\\\'s default styles.  The second part adds some styles back in and provides a few classes for common issues.  The third part will check your page for invalid markup.&lt;/p&gt;</description>
      <pubDate>Tue, 31 Mar 2009 12:55:09 UTC</pubDate>
      <guid>https://snipplr.com/view/13637/css-reset--diagnostic--general-styles</guid>
    </item>
  </channel>
</rss>
