<?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 16:44:30 +0000</lastBuildDate>
    <item>
      <title>(Other) Harry Potter characters fixture - berkes</title>
      <link>https://snipplr.com/view/37093/harry-potter-characters-fixture</link>
      <description>&lt;p&gt;Just a funny, yet usefull fixture for testing users in a rails app.&#13;
Using "somewhat real" fixtures, will keep testing both fun and realistic. &#13;
Knowing that "Crabbe_ugly_nick" failed, is a lot easier to communicate then knowing "user_t_x01 failed"&lt;/p&gt;</description>
      <pubDate>Sun, 11 Jul 2010 01:17:04 UTC</pubDate>
      <guid>https://snipplr.com/view/37093/harry-potter-characters-fixture</guid>
    </item>
    <item>
      <title>(PHP) If a 'bin' exists in the user home, then add that to the PATH. - berkes</title>
      <link>https://snipplr.com/view/29590/if-a-bin-exists-in-the-user-home-then-add-that-to-the-path</link>
      <description>&lt;p&gt;Put this line in your .bashrc. &#13;
If the user has a directory named 'bin' then that will be added to the PATH.&#13;
All scripts in that path (wich are executable) will be available as commands to that user.&lt;/p&gt;</description>
      <pubDate>Thu, 11 Mar 2010 03:16:36 UTC</pubDate>
      <guid>https://snipplr.com/view/29590/if-a-bin-exists-in-the-user-home-then-add-that-to-the-path</guid>
    </item>
    <item>
      <title>(PHP) Routine to update and set variables in Drupal using hook_update - berkes</title>
      <link>https://snipplr.com/view/29499/routine-to-update-and-set-variables-in-drupal-using-hookupdate</link>
      <description>&lt;p&gt;Drupal allows hook_update_N to run any sort of code. Most of the time, however, people only use this to alter the database scheme. &#13;
But you can use it for much more. Like setting variables, creating nodes, importing views and so on. &#13;
This code shows how to set a series of variables in Drupal.&#13;
&#13;
When you deploy this code, running update.php will set all the variables as in the listing.&#13;
&#13;
I typically catch this in a module called 'projectname_meta'. So this function would go in projectname_meta.install, and will be called from projectname_meta_install and projectname_meta_update_5002, for example.&lt;/p&gt;</description>
      <pubDate>Tue, 09 Mar 2010 09:00:47 UTC</pubDate>
      <guid>https://snipplr.com/view/29499/routine-to-update-and-set-variables-in-drupal-using-hookupdate</guid>
    </item>
    <item>
      <title>(PHP) Howto run your own functions on any forms submission. - berkes</title>
      <link>https://snipplr.com/view/28546/howto-run-your-own-functions-on-any-forms-submission</link>
      <description>&lt;p&gt;By using hook_form_alter, you can add your own callback functions to any Drupal form. &#13;
These functions will be called when Drupal validates the form and when Drupal submits it.&#13;
&#13;
In example below, a module called 'simple_checkout' adds its own handlers to a form called 'ideal_payment_api_issuer_form'. That latter is generated by another module, but we can fill our own tables and run our own validation *in addition to those by the originating module*.&lt;/p&gt;</description>
      <pubDate>Thu, 18 Feb 2010 09:19:37 UTC</pubDate>
      <guid>https://snipplr.com/view/28546/howto-run-your-own-functions-on-any-forms-submission</guid>
    </item>
    <item>
      <title>(Bash) Commandline oneliner to get your public IP adress - berkes</title>
      <link>https://snipplr.com/view/27675/commandline-oneliner-to-get-your-public-ip-adress</link>
      <description>&lt;p&gt;Use wget and sed to get your public IP adress (instead of firing up firefox and visting whatismyip.com). Usefull in scripts where you need your public IP adres.&#13;
&#13;
There are probably better ways, maybe even a GNUtool that I missed?&lt;/p&gt;</description>
      <pubDate>Thu, 04 Feb 2010 05:58:52 UTC</pubDate>
      <guid>https://snipplr.com/view/27675/commandline-oneliner-to-get-your-public-ip-adress</guid>
    </item>
    <item>
      <title>(PHP) make a tarball of only the changed directories in a git repos, since last tag. - berkes</title>
      <link>https://snipplr.com/view/27536/make-a-tarball-of-only-the-changed-directories-in-a-git-repos-since-last-tag</link>
      <description>&lt;p&gt;make a tarball of only the changed directories in a git repos, since last tag.&#13;
replace {tagname_last} with any name you siwh to give the tarball&#13;
replace {tagname_previous} with a git reference (like a tag) from which you want to zip the changes.&lt;/p&gt;</description>
      <pubDate>Tue, 02 Feb 2010 02:26:20 UTC</pubDate>
      <guid>https://snipplr.com/view/27536/make-a-tarball-of-only-the-changed-directories-in-a-git-repos-since-last-tag</guid>
    </item>
    <item>
      <title>(PHP) Remove Drupal's search block "search this site" label. - berkes</title>
      <link>https://snipplr.com/view/27483/remove-drupals-search-block-search-this-site-label</link>
      <description>&lt;p&gt;Wizzlern, a Dutch Drupal trainer, has a Dutch article online on how to remove the "search this site" label in the Drupal search-block.&lt;/p&gt;</description>
      <pubDate>Mon, 01 Feb 2010 09:41:26 UTC</pubDate>
      <guid>https://snipplr.com/view/27483/remove-drupals-search-block-search-this-site-label</guid>
    </item>
    <item>
      <title>(Bash) print a list of bookmarks on delicous in a certain tag. - berkes</title>
      <link>https://snipplr.com/view/27440/print-a-list-of-bookmarks-on-delicous-in-a-certain-tag</link>
      <description>&lt;p&gt;Simple wget - grep - sed pipe to print a list of bookmarks on delicous in a certain tag.&#13;
Replace {USERNAME} with your username. &#13;
Replace {TAG} with the tag you want a list of urls for.&lt;/p&gt;</description>
      <pubDate>Sun, 31 Jan 2010 15:59:52 UTC</pubDate>
      <guid>https://snipplr.com/view/27440/print-a-list-of-bookmarks-on-delicous-in-a-certain-tag</guid>
    </item>
    <item>
      <title>(Bash) Oneliner to add a public key to a remote servers authorized-keys - berkes</title>
      <link>https://snipplr.com/view/27074/oneliner-to-add-a-public-key-to-a-remote-servers-authorizedkeys</link>
      <description>&lt;p&gt;Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives.&#13;
You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh server.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Jan 2010 03:13:59 UTC</pubDate>
      <guid>https://snipplr.com/view/27074/oneliner-to-add-a-public-key-to-a-remote-servers-authorizedkeys</guid>
    </item>
    <item>
      <title>(Bash) Simple rsync backupscript. - berkes</title>
      <link>https://snipplr.com/view/26876/simple-rsync-backupscript</link>
      <description>&lt;p&gt;This script pulls in files with [rsync](http://samba.anu.edu.au/rsync/), storing them locally with hardlinks for unchanged, and real files for changed -files.&#13;
&#13;
* KEY=$HOME/.ssh/id_dsa_passwdless -- an id_rtsa key without a password. --adding this to remote authorized keys must be done with care: you will prbably want to whitelist one IP-adress.&#13;
* RHOST=ssh.example.com -- the host where to connect to using ssh, or rsync.&#13;
* RUSER=example-username -- the username on the host. Must have _read_ access in the SOURCE dit (see below).&#13;
* LPATH=$HOME/Archive/example-com/ -- where to place the backups&#13;
* RPATH=/var/www/example-com/ -- the to-be-backuped dir. &#13;
&#13;
You probably want to add this as script (`backup_example-com.sh`) in `~/bin`, or any other directory available in `$PATH`. And then add it to crontab.&#13;
&#13;
See a howto here: http://troy.jdmz.net/rsync/index.html&lt;/p&gt;</description>
      <pubDate>Fri, 22 Jan 2010 16:05:54 UTC</pubDate>
      <guid>https://snipplr.com/view/26876/simple-rsync-backupscript</guid>
    </item>
    <item>
      <title>(Apache) Drupal on PCextreme - berkes</title>
      <link>https://snipplr.com/view/26523/drupal-on-pcextreme</link>
      <description>&lt;p&gt;http://pcextreme.nl is one of the Best hosters for Drupal in Netherlands. &#13;
But they require one change to the .htaccess in order to run.&lt;/p&gt;</description>
      <pubDate>Fri, 15 Jan 2010 15:00:51 UTC</pubDate>
      <guid>https://snipplr.com/view/26523/drupal-on-pcextreme</guid>
    </item>
    <item>
      <title>(PHP) Target=_blank in Drupal link - berkes</title>
      <link>https://snipplr.com/view/26499/targetblank-in-drupal-link</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 15 Jan 2010 07:17:14 UTC</pubDate>
      <guid>https://snipplr.com/view/26499/targetblank-in-drupal-link</guid>
    </item>
    <item>
      <title>(SQL) move Drupal tags from one vocabulary into another - berkes</title>
      <link>https://snipplr.com/view/26126/move-drupal-tags-from-one-vocabulary-into-another</link>
      <description>&lt;p&gt;I had several vocabularies but wanted to merge them into one. &#13;
A simple query does this for you.&#13;
&#13;
The vocabulary_id where I wanted to merge all the tags into is 3&#13;
The vocabulary_id where the tags are to be merged from is 7, 8 and 12&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jan 2010 04:41:13 UTC</pubDate>
      <guid>https://snipplr.com/view/26126/move-drupal-tags-from-one-vocabulary-into-another</guid>
    </item>
    <item>
      <title>(Other) vim search and replace - berkes</title>
      <link>https://snipplr.com/view/24568/vim-search-and-replace</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 10 Dec 2009 14:49:49 UTC</pubDate>
      <guid>https://snipplr.com/view/24568/vim-search-and-replace</guid>
    </item>
    <item>
      <title>(Bash) Run Archivemail on all your IMAP folders. - berkes</title>
      <link>https://snipplr.com/view/24111/run-archivemail-on-all-your-imap-folders</link>
      <description>&lt;p&gt;Change 'username' (twice!) with your imap username,'password'with your imap password, and 'example.com' (twice!) with the url of your imap mailserver.&#13;
&#13;
Works on: Ubuntu with Evolution, sqlite3 and archivemail installed. &#13;
Evolution is required because evolution stores the available folders in IMAP. &#13;
sqlite3 is requird to extract those available folders and recurse trough them.&#13;
&#13;
This command looks up all the available folders in your imap box, recurses trough them and runs archivemail to archive all the online mail. &#13;
&#13;
NOTE: remove the -n (dy-run) flag to actually archive the items.&#13;
NOTE: remove the -v (verbose) flag to be less verbose.&#13;
&#13;
TODO: option to purge empty directories.&#13;
TODO: store username, password and mailserverURL in a $VAR.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Dec 2009 04:49:15 UTC</pubDate>
      <guid>https://snipplr.com/view/24111/run-archivemail-on-all-your-imap-folders</guid>
    </item>
    <item>
      <title>(PHP) Track block/views/cck etc changes in RCS and migrate with Drupal updates. - berkes</title>
      <link>https://snipplr.com/view/20886/track-blockviewscck-etc-changes-in-rcs-and-migrate-with-drupal-updates</link>
      <description>&lt;p&gt;Takes a .sql file and runs trough that, each line as an update_sql. &#13;
Very usefull to track and migrate your blocks/views/cck etc changes.&lt;/p&gt;</description>
      <pubDate>Fri, 09 Oct 2009 09:08:00 UTC</pubDate>
      <guid>https://snipplr.com/view/20886/track-blockviewscck-etc-changes-in-rcs-and-migrate-with-drupal-updates</guid>
    </item>
    <item>
      <title>(Bash) Store Drupal blockconfiguration in SVN. - berkes</title>
      <link>https://snipplr.com/view/14095/store-drupal-blockconfiguration-in-svn</link>
      <description>&lt;p&gt;A common Drupal problem: how to save e.g. your blocks configuration without dragging an X Gig database around. &#13;
&#13;
A simple command that dumps a table in a way that it can be inserted into SVN. &#13;
Every row is dumped as a single line, and they are sorted. Minimising the differences.&#13;
&#13;
This example dumps the data for blocks.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Apr 2009 10:59:17 UTC</pubDate>
      <guid>https://snipplr.com/view/14095/store-drupal-blockconfiguration-in-svn</guid>
    </item>
    <item>
      <title>(CSS) Goodlooking Required textfield - berkes</title>
      <link>https://snipplr.com/view/10754/goodlooking-required-textfield</link>
      <description>&lt;p&gt;Grab http://blog.kissmetrics.com/common/images/required.png as example for a required image .&#13;
&#13;
NOTE: You probably don't want to use this trcik, but rather go for the defacto standard of a red asterisk to mark something required. An asterisk is language-independant and recognisable.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Dec 2008 03:53:16 UTC</pubDate>
      <guid>https://snipplr.com/view/10754/goodlooking-required-textfield</guid>
    </item>
    <item>
      <title>(Bash) Return list of modules for each Drupal multisite - berkes</title>
      <link>https://snipplr.com/view/9074/return-list-of-modules-for-each-drupal-multisite</link>
      <description>&lt;p&gt;A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Oct 2008 07:24:23 UTC</pubDate>
      <guid>https://snipplr.com/view/9074/return-list-of-modules-for-each-drupal-multisite</guid>
    </item>
    <item>
      <title>(PHP) Drupal function to return contents of a databasetable (for Debugging) - berkes</title>
      <link>https://snipplr.com/view/7637/drupal-function-to-return-contents-of-a-databasetable-for-debugging</link>
      <description>&lt;p&gt;Drupal helper function to debug a table. Returns the contents and some explanation of a database table in a rendered format (HTML table).&#13;
&#13;
**NOTE** You REALLY do not want to put this function behind any kind of menu_callback and/or on other pages. Use it for debugging only: Because we return any contents, regardless of permissions and so forth, you potentially open up your site to data mining and or session hijacking!&lt;/p&gt;</description>
      <pubDate>Fri, 01 Aug 2008 12:02:21 UTC</pubDate>
      <guid>https://snipplr.com/view/7637/drupal-function-to-return-contents-of-a-databasetable-for-debugging</guid>
    </item>
    <item>
      <title>(PHP) Allow per-region template overrides. - berkes</title>
      <link>https://snipplr.com/view/5042/allow-perregion-template-overrides</link>
      <description>&lt;p&gt;A per-region override. &#13;
ogt_blocks is ran for a region, if a region contains blocks, we search for a theme function named theme_region_regionname(). If exists, we run that, else we just return the concatenated blocks for that region.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Feb 2008 09:18:37 UTC</pubDate>
      <guid>https://snipplr.com/view/5042/allow-perregion-template-overrides</guid>
    </item>
    <item>
      <title>(PHP) Easy debug variable to find what vars are available in a tpl.php file - berkes</title>
      <link>https://snipplr.com/view/5039/easy-debug-variable-to-find-what-vars-are-available-in-a-tplphp-file</link>
      <description>&lt;p&gt;An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Feb 2008 03:30:30 UTC</pubDate>
      <guid>https://snipplr.com/view/5039/easy-debug-variable-to-find-what-vars-are-available-in-a-tplphp-file</guid>
    </item>
    <item>
      <title>(Bash) Remove all tables with a certain pattern from the database - berkes</title>
      <link>https://snipplr.com/view/4890/remove-all-tables-with-a-certain-pattern-from-the-database</link>
      <description>&lt;p&gt;This script removes (DROPS) all tables that start with foo_. Usefull if you had some CMS or application that (ab)uses table prefixing, and want to clean 0ut your database.&#13;
&#13;
NOTE: the data is remove FOREVER! So take good casre: make backups and all the likes. Try on a test-database first!&lt;/p&gt;</description>
      <pubDate>Mon, 04 Feb 2008 04:18:22 UTC</pubDate>
      <guid>https://snipplr.com/view/4890/remove-all-tables-with-a-certain-pattern-from-the-database</guid>
    </item>
    <item>
      <title>(PHP) Override specific links in theme_links based on their class. - berkes</title>
      <link>https://snipplr.com/view/4560/override-specific-links-in-themelinks-based-on-their-class</link>
      <description>&lt;p&gt;Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme.&#13;
&#13;
From here on, you can add theme functions like your_theme_name_links_comment_add(), whom will render the specific links with the comment_add class.&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jan 2008 09:44:47 UTC</pubDate>
      <guid>https://snipplr.com/view/4560/override-specific-links-in-themelinks-based-on-their-class</guid>
    </item>
    <item>
      <title>(PHP) Assure hooks in a Drupal module are ran before the others. - berkes</title>
      <link>https://snipplr.com/view/4449/assure-hooks-in-a-drupal-module-are-ran-before-the-others</link>
      <description>&lt;p&gt;Sets a module's weight to the lowest number. This assures that your module is ran before all other modules. Userfull if you want your implementation of a hook to be ran first.&#13;
Add this to your .install file. Replace your_modulename with the name of your module.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:14:27 UTC</pubDate>
      <guid>https://snipplr.com/view/4449/assure-hooks-in-a-drupal-module-are-ran-before-the-others</guid>
    </item>
    <item>
      <title>(PHP) Print errors to screen on default php5 in Drupal - berkes</title>
      <link>https://snipplr.com/view/4440/print-errors-to-screen-on-default-php5-in-drupal</link>
      <description>&lt;p&gt;Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Jan 2008 03:52:03 UTC</pubDate>
      <guid>https://snipplr.com/view/4440/print-errors-to-screen-on-default-php5-in-drupal</guid>
    </item>
    <item>
      <title>(Bash) Automatically remove all nonexsiting files in the current dir from svn - berkes</title>
      <link>https://snipplr.com/view/4409/automatically-remove-all-nonexsiting-files-in-the-current-dir-from-svn</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 22 Dec 2007 09:53:42 UTC</pubDate>
      <guid>https://snipplr.com/view/4409/automatically-remove-all-nonexsiting-files-in-the-current-dir-from-svn</guid>
    </item>
    <item>
      <title>(Bash) Automatically add all new files in the current dir. - berkes</title>
      <link>https://snipplr.com/view/4408/automatically-add-all-new-files-in-the-current-dir</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 22 Dec 2007 09:52:34 UTC</pubDate>
      <guid>https://snipplr.com/view/4408/automatically-add-all-new-files-in-the-current-dir</guid>
    </item>
    <item>
      <title>(PHP) Drupal - Unset (not include) all core stylesheets - Theme variable overrides. - berkes</title>
      <link>https://snipplr.com/view/3756/drupal--unset-not-include-all-core-stylesheets--theme-variable-overrides</link>
      <description>&lt;p&gt;Removes the core, and node styles from the $style variable. &#13;
&#13;
You most morbably already defined _phptemplate_variables($hook, $vars), in that case just add the two lines there.&#13;
_sympal_theme.. is the name of the theme where we use this.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Sep 2007 09:27:05 UTC</pubDate>
      <guid>https://snipplr.com/view/3756/drupal--unset-not-include-all-core-stylesheets--theme-variable-overrides</guid>
    </item>
    <item>
      <title>(PHP) Drupal - Shorten a string - general API - berkes</title>
      <link>https://snipplr.com/view/3647/drupal--shorten-a-string--general-api</link>
      <description>&lt;p&gt;Shortens a string, and adds a span with a title of the full string. &#13;
Function is useful for listings where you don't want wraping; or for places where a long string liek a username can break the layout.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:05:02 UTC</pubDate>
      <guid>https://snipplr.com/view/3647/drupal--shorten-a-string--general-api</guid>
    </item>
    <item>
      <title>(PHP) Drupal - Theme table with columstriping - berkes</title>
      <link>https://snipplr.com/view/3607/drupal--theme-table-with-columstriping</link>
      <description>&lt;p&gt;This snipped adds columnstriping to cells. It works fine for most cases, but will behave strange when combined with colspan. &#13;
Cells get an additional class 'even-col'  or 'odd-col'&lt;/p&gt;</description>
      <pubDate>Thu, 30 Aug 2007 11:49:19 UTC</pubDate>
      <guid>https://snipplr.com/view/3607/drupal--theme-table-with-columstriping</guid>
    </item>
    <item>
      <title>(PHP) Put classes around your body - berkes</title>
      <link>https://snipplr.com/view/3423/put-classes-around-your-body</link>
      <description>&lt;p&gt;Put classes around your bodyy, to allow different colors for seperate pages and areas on your site.&#13;
IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be&#13;
body.about-us&#13;
Requires phptemplate&lt;/p&gt;</description>
      <pubDate>Mon, 30 Jul 2007 12:48:46 UTC</pubDate>
      <guid>https://snipplr.com/view/3423/put-classes-around-your-body</guid>
    </item>
    <item>
      <title>(PHP) Drupal formalter for a separate teaser field - berkes</title>
      <link>https://snipplr.com/view/2865/drupal-formalter-for-a-separate-teaser-field</link>
      <description>&lt;p&gt;A form alter to gove Drupal a separate teaser field.&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jun 2007 13:12:08 UTC</pubDate>
      <guid>https://snipplr.com/view/2865/drupal-formalter-for-a-separate-teaser-field</guid>
    </item>
    <item>
      <title>(PHP) Form alter to force exposed views filters to fllow filter options - berkes</title>
      <link>https://snipplr.com/view/2674/form-alter-to-force-exposed-views-filters-to-fllow-filter-options</link>
      <description>&lt;p&gt;callback in a form alter to enforce an exposed filter to use only the options set in filter. Works for selectlists only.&lt;/p&gt;</description>
      <pubDate>Sat, 19 May 2007 07:18:22 UTC</pubDate>
      <guid>https://snipplr.com/view/2674/form-alter-to-force-exposed-views-filters-to-fllow-filter-options</guid>
    </item>
    <item>
      <title>(PHP) Per node type flag. - berkes</title>
      <link>https://snipplr.com/view/2436/per-node-type-flag</link>
      <description>&lt;p&gt;A form alter implementation to create variables to flag certain features per node type. E.g. Show foo on blogs only: example_blog == 1;&lt;/p&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:08:34 UTC</pubDate>
      <guid>https://snipplr.com/view/2436/per-node-type-flag</guid>
    </item>
    <item>
      <title>(PHP) link images to their own node. - berkes</title>
      <link>https://snipplr.com/view/2306/link-images-to-their-own-node</link>
      <description>&lt;p&gt;This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O.&#13;
&#13;
The template snippet  links the images to their own node.&lt;/p&gt;</description>
      <pubDate>Mon, 12 Mar 2007 11:30:43 UTC</pubDate>
      <guid>https://snipplr.com/view/2306/link-images-to-their-own-node</guid>
    </item>
    <item>
      <title>(SQL) Remove all tables from a database - berkes</title>
      <link>https://snipplr.com/view/1949/remove-all-tables-from-a-database</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 08 Jan 2007 11:50:57 UTC</pubDate>
      <guid>https://snipplr.com/view/1949/remove-all-tables-from-a-database</guid>
    </item>
    <item>
      <title>(SQL) Count amout of nodeviews in a year - berkes</title>
      <link>https://snipplr.com/view/1923/count-amout-of-nodeviews-in-a-year</link>
      <description>&lt;p&gt;Counts the total amout of nodeviews between now and a year ago (the last 31536000 seconds).&lt;/p&gt;</description>
      <pubDate>Thu, 04 Jan 2007 07:23:08 UTC</pubDate>
      <guid>https://snipplr.com/view/1923/count-amout-of-nodeviews-in-a-year</guid>
    </item>
    <item>
      <title>(PHP) image_attach theme image in the node - berkes</title>
      <link>https://snipplr.com/view/1796/imageattach-theme-image-in-the-node</link>
      <description>&lt;p&gt;This snippet is for use with image_attach, a small contributed module that uses image module to create nice thumbs in any node type. &#13;
The template snippet makes the images show up larger in the body node, and instead of linking to itself, it links to the attached image node.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Dec 2006 08:03:03 UTC</pubDate>
      <guid>https://snipplr.com/view/1796/imageattach-theme-image-in-the-node</guid>
    </item>
    <item>
      <title>(Bash) Move all mails with a certain subject into a backup dir. - berkes</title>
      <link>https://snipplr.com/view/1795/move-all-mails-with-a-certain-subject-into-a-backup-dir</link>
      <description>&lt;p&gt;Move all mails with a certain subject (in this case starting with the word "Undelivered" into a backup dir.&#13;
It is by no means a mail filter, I needed it to clean out the maildirectory after a HDD crash wich caused over 1000000 (one million) local bouces and thus Undelivered mails and stuff.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Dec 2006 04:05:42 UTC</pubDate>
      <guid>https://snipplr.com/view/1795/move-all-mails-with-a-certain-subject-into-a-backup-dir</guid>
    </item>
    <item>
      <title>(SQL) list of users that never logged in - berkes</title>
      <link>https://snipplr.com/view/1743/list-of-users-that-never-logged-in</link>
      <description>&lt;p&gt;Grab all users that never logged in.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Nov 2006 02:22:36 UTC</pubDate>
      <guid>https://snipplr.com/view/1743/list-of-users-that-never-logged-in</guid>
    </item>
    <item>
      <title>(PHP) Get admin menuID - berkes</title>
      <link>https://snipplr.com/view/1741/get-admin-menuid</link>
      <description>&lt;p&gt;menu_get_item does not return a menu ID.&lt;/p&gt;</description>
      <pubDate>Tue, 28 Nov 2006 11:35:09 UTC</pubDate>
      <guid>https://snipplr.com/view/1741/get-admin-menuid</guid>
    </item>
  </channel>
</rss>
