<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - mattkenefick</title>
<link>http://snipplr.com/users/mattkenefick</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 18:45:19 GMT</pubDate>
<item>
<title>(JavaScript) foreach | Javascript</title>
<link>http://snipplr.com/view/43478/foreach--javascript/</link>
<description><![CDATA[ <p>I should've wrote this function a LONGGG time ago.

foreach($myArray, function($k, $v){
   console.log($k + " :: " + $v);
});</p> ]]></description>
<pubDate>Wed, 03 Nov 2010 13:36:52 GMT</pubDate>
<guid>http://snipplr.com/view/43478/foreach--javascript/</guid>
</item>
<item>
<title>(Bash) findex</title>
<link>http://snipplr.com/view/43086/findex/</link>
<description><![CDATA[ <p>Finds a string in current folder. Put this in your ~/.bashrc</p> ]]></description>
<pubDate>Thu, 28 Oct 2010 05:15:35 GMT</pubDate>
<guid>http://snipplr.com/view/43086/findex/</guid>
</item>
<item>
<title>(PHP) match_files_in_directory</title>
<link>http://snipplr.com/view/43075/matchfilesindirectory/</link>
<description><![CDATA[ <p>Returns an array of files that match a search term in a certain directory.</p> ]]></description>
<pubDate>Thu, 28 Oct 2010 02:59:22 GMT</pubDate>
<guid>http://snipplr.com/view/43075/matchfilesindirectory/</guid>
</item>
<item>
<title>(PHP) Wordpress | Get All Meta Data</title>
<link>http://snipplr.com/view/42086/wordpress--get-all-meta-data/</link>
<description><![CDATA[ <p>Gets all meta data keys/values for a particular post</p> ]]></description>
<pubDate>Tue, 12 Oct 2010 05:58:53 GMT</pubDate>
<guid>http://snipplr.com/view/42086/wordpress--get-all-meta-data/</guid>
</item>
<item>
<title>(Apache) Force WWW</title>
<link>http://snipplr.com/view/39460/force-www/</link>
<description><![CDATA[ <p>It's great because it's a drop-in code that doesn't require domain alteration. Works really well with any server too (some servers fail with other methods).</p> ]]></description>
<pubDate>Tue, 24 Aug 2010 15:07:53 GMT</pubDate>
<guid>http://snipplr.com/view/39460/force-www/</guid>
</item>
<item>
<title>(Apache) Remove Trailing Slashes, Force Index</title>
<link>http://snipplr.com/view/33368/remove-trailing-slashes-force-index/</link>
<description><![CDATA[ <p>Removes trailing slashes from URLs, forces all urls to index.php</p> ]]></description>
<pubDate>Tue, 27 Apr 2010 11:00:57 GMT</pubDate>
<guid>http://snipplr.com/view/33368/remove-trailing-slashes-force-index/</guid>
</item>
<item>
<title>(ActionScript 3) Get angle from object in 3D space</title>
<link>http://snipplr.com/view/32464/get-angle-from-object-in-3d-space/</link>
<description><![CDATA[ <p>If you have multiple objects orbiting a 3D object and you want to determine the angle of a specific object, this will help you determine what rotationX you need to set your camera to if you want to be directly behind it. 

Note: It works completely in 3d space. So if your Y, Z, X are not inversed or directly related to your comparison object, the angle will be a little off.</p> ]]></description>
<pubDate>Tue, 20 Apr 2010 11:17:54 GMT</pubDate>
<guid>http://snipplr.com/view/32464/get-angle-from-object-in-3d-space/</guid>
</item>
<item>
<title>(Bash) Linux: Remote mount drive with</title>
<link>http://snipplr.com/view/13803/linux-remote-mount-drive-with/</link>
<description><![CDATA[ <p>Very useful.</p> ]]></description>
<pubDate>Sun, 05 Apr 2009 19:14:06 GMT</pubDate>
<guid>http://snipplr.com/view/13803/linux-remote-mount-drive-with/</guid>
</item>
<item>
<title>(Bash) Linux: Find in Files</title>
<link>http://snipplr.com/view/13800/linux-find-in-files/</link>
<description><![CDATA[ <p>find . | xargs grep 'string' -sl

The -s is for summary and won't display warning messages such as grep: ./directory-name: Is a directory

The -l is for list, so we get just the filename and not all instances of the match displayed in the results.

Performing the search on the current directory I get:

./javascript_open_new_window_form.php
./excel_large_number_error.php
./linux_vi_string_substitution.php
./email_reformat.php
./online_email_reformat.php
./excel_find_question_mark.php
./linux_find_string_in_files.php
./excel_keyboard_shortcuts.php
./linux_grep.php
./md5_unique_sub_string.php
./email_reformat_token.php
./excel_password_protect.php
./mysql_date_calulation.php
./md5_string.php
./php_javascript_passing_values_to_new_window_in_url.php
./php_math_on_string/math_on_string_form.php
./guide.php
./excel_large_number_paste.php
./piping_commands_find_grep_sed.php
./google-search-for-seo-research.php
./filename_conversion_form.php
./linux_find_string_files.php

I find this useful for just quickly seeing which files contain a search time. I would normally limit the files searched with a command such as :
find . -iname '*php' | xargs grep 'string' -sl

Another common search for me, is to just look at the recently updated files:
find . -iname '*php' -mtime -1 | xargs grep 'string' -sl

would find only files edited today, whilst the following finds the files older than today:
find . -iname '*php' -mtime +1 | xargs grep 'string' -sl</p> ]]></description>
<pubDate>Sun, 05 Apr 2009 18:18:49 GMT</pubDate>
<guid>http://snipplr.com/view/13800/linux-find-in-files/</guid>
</item>
<item>
<title>(CSS) CSS Form Labels</title>
<link>http://snipplr.com/view/9505/css-form-labels/</link>
<description><![CDATA[ <p>Simple enough.</p> ]]></description>
<pubDate>Wed, 05 Nov 2008 12:31:28 GMT</pubDate>
<guid>http://snipplr.com/view/9505/css-form-labels/</guid>
</item>
<item>
<title>(PHP) PHP Class: MySQL DB Class</title>
<link>http://snipplr.com/view/6416/php-class-mysql-db-class/</link>
<description><![CDATA[ <p>I deleted the old one by accident trying to edit it.</p> ]]></description>
<pubDate>Thu, 22 May 2008 10:25:37 GMT</pubDate>
<guid>http://snipplr.com/view/6416/php-class-mysql-db-class/</guid>
</item>
<item>
<title>(PHP) PHP: Typical Index Page</title>
<link>http://snipplr.com/view/6366/php-typical-index-page/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 May 2008 17:43:27 GMT</pubDate>
<guid>http://snipplr.com/view/6366/php-typical-index-page/</guid>
</item>
<item>
<title>(PHP) PHP Class: Unzip files</title>
<link>http://snipplr.com/view/6364/php-class-unzip-files/</link>
<description><![CDATA[ <p>Unzip files with PHP.</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:26:11 GMT</pubDate>
<guid>http://snipplr.com/view/6364/php-class-unzip-files/</guid>
</item>
<item>
<title>(PHP) PHP Class: Expand MySQL File</title>
<link>http://snipplr.com/view/6363/php-class-expand-mysql-file/</link>
<description><![CDATA[ <p>Expands a MySQL / Gzipped file and executes it's queries.</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:24:33 GMT</pubDate>
<guid>http://snipplr.com/view/6363/php-class-expand-mysql-file/</guid>
</item>
<item>
<title>(JavaScript) Javascript: Keyboard Capture</title>
<link>http://snipplr.com/view/6362/javascript-keyboard-capture/</link>
<description><![CDATA[ <p>Usage:</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:23:01 GMT</pubDate>
<guid>http://snipplr.com/view/6362/javascript-keyboard-capture/</guid>
</item>
<item>
<title>(PHP) PHP Class: ImageUpload</title>
<link>http://snipplr.com/view/6361/php-class-imageupload/</link>
<description><![CDATA[ <p>Usage coming soon.</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:21:53 GMT</pubDate>
<guid>http://snipplr.com/view/6361/php-class-imageupload/</guid>
</item>
<item>
<title>(PHP) PHP Class: Paging</title>
<link>http://snipplr.com/view/6359/php-class-paging/</link>
<description><![CDATA[ <p>Paging class. Details on use to come later.</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:20:06 GMT</pubDate>
<guid>http://snipplr.com/view/6359/php-class-paging/</guid>
</item>
<item>
<title>(PHP) PHP Regex: IsValidEmail</title>
<link>http://snipplr.com/view/6355/php-regex-isvalidemail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 May 2008 13:12:06 GMT</pubDate>
<guid>http://snipplr.com/view/6355/php-regex-isvalidemail/</guid>
</item>
<item>
<title>(PHP) PHP: getMicroTime</title>
<link>http://snipplr.com/view/6354/php-getmicrotime/</link>
<description><![CDATA[ <p>Get Micro Time</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:11:23 GMT</pubDate>
<guid>http://snipplr.com/view/6354/php-getmicrotime/</guid>
</item>
<item>
<title>(PHP) PHP: Remove Common Words</title>
<link>http://snipplr.com/view/6353/php-remove-common-words/</link>
<description><![CDATA[ <p>Removes common words from strings.</p> ]]></description>
<pubDate>Tue, 20 May 2008 13:10:54 GMT</pubDate>
<guid>http://snipplr.com/view/6353/php-remove-common-words/</guid>
</item>
</channel>
</rss>