<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/favorites/basicmagic/tags/Bash</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 09 Jan 2009 00:01:49 GMT</pubDate>
<item>
<title>(Bash) Return list of modules for each Drupal multisite - basicmagic</title>
<link>http://snipplr.com/view/9074/return-list-of-modules-for-each-drupal-multisite/</link>
<description><![CDATA[ <p>A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.</p> ]]></description>
<pubDate>Fri, 17 Oct 2008 07:24:23 GMT</pubDate>
<guid>http://snipplr.com/view/9074/return-list-of-modules-for-each-drupal-multisite/</guid>
</item>
<item>
<title>(Bash) Using wget or curl to download web sites for archival - basicmagic</title>
<link>http://snipplr.com/view/8841/using-wget-or-curl-to-download-web-sites-for-archival/</link>
<description><![CDATA[ <p>This will start at the specified URL and recursively download pages up to 3 links away from the original page, but only pages which are in the directory of the URL you specified (emacstips/) or one of its subdirectories.

wget will also rewrite the links in the pages it downloaded to make your downloaded copy a useful local copy, and it will download all page prerequisites (e.g. images, stylesheets, and the like).

The last two options -nH --cut-dirs=1 control where wget places the output. If you omitted those two options, wget would, for example, download http://web.psung.name/emacstips/index.html and place it under a subdirectory web.psung.name/emacstips of the current directory. With only -nH ("no host directory") wget would write that same file to a subdirectory emacstips. And with both options wget would write that same file to the current directory. In general, if you want to reduce the number of extraneous directories created, change cut-dirs to be the number of leading directories in your URL.</p> ]]></description>
<pubDate>Sat, 04 Oct 2008 20:24:43 GMT</pubDate>
<guid>http://snipplr.com/view/8841/using-wget-or-curl-to-download-web-sites-for-archival/</guid>
</item>
<item>
<title>(Bash) File per Table - basicmagic</title>
<link>http://snipplr.com/view/7750/file-per-table/</link>
<description><![CDATA[ <p>Exports all tables in a given DB one per file.</p> ]]></description>
<pubDate>Wed, 06 Aug 2008 16:58:33 GMT</pubDate>
<guid>http://snipplr.com/view/7750/file-per-table/</guid>
</item>
<item>
<title>(Bash) OsX position your Dock on top - basicmagic</title>
<link>http://snipplr.com/view/4250/osx-position-your-dock-on-top/</link>
<description><![CDATA[ <p>Paste this code into terminal and you will notice the change after you've logged your user back in</p> ]]></description>
<pubDate>Mon, 03 Dec 2007 01:46:10 GMT</pubDate>
<guid>http://snipplr.com/view/4250/osx-position-your-dock-on-top/</guid>
</item>
<item>
<title>(Bash) expand tar.gz files - basicmagic</title>
<link>http://snipplr.com/view/3864/expand-targz-files/</link>
<description><![CDATA[ <p>One shot verbose expansion.</p> ]]></description>
<pubDate>Tue, 09 Oct 2007 02:28:59 GMT</pubDate>
<guid>http://snipplr.com/view/3864/expand-targz-files/</guid>
</item>
<item>
<title>(Bash) periodic (Mac OS X Maintenance Scripts) - basicmagic</title>
<link>http://snipplr.com/view/3572/periodic-mac-os-x-maintenance-scripts/</link>
<description><![CDATA[ <p>"...UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script.

If your Mac is shut down or in sleep mode during these hours, the maintenance scripts will not run. This results in log files that will grow over time, consuming free space on your Mac OS X startup disk.

If your Mac is shut down or left in sleep mode overnight, you need to invoke these maintenance routines manually on a regular basis. That is, unless you plan on devoting a large portion of your hard drive to the files cleaned-up by these routines!"</p> ]]></description>
<pubDate>Sun, 26 Aug 2007 07:25:40 GMT</pubDate>
<guid>http://snipplr.com/view/3572/periodic-mac-os-x-maintenance-scripts/</guid>
</item>
<item>
<title>(Bash) Rails on Mac - basicmagic</title>
<link>http://snipplr.com/view/3307/rails-on-mac/</link>
<description><![CDATA[ <p>Setting up rails on a new Mac.  You need to install Xcode first.</p> ]]></description>
<pubDate>Mon, 16 Jul 2007 23:11:09 GMT</pubDate>
<guid>http://snipplr.com/view/3307/rails-on-mac/</guid>
</item>
<item>
<title>(Bash) Compress Images using convert (ImageMagick) in a bulk - basicmagic</title>
<link>http://snipplr.com/view/2822/compress-images-using-convert-imagemagick-in-a-bulk/</link>
<description><![CDATA[ <p>- lowQ/ is the output directory
- pass quality level from 1 to 100</p> ]]></description>
<pubDate>Fri, 08 Jun 2007 00:53:13 GMT</pubDate>
<guid>http://snipplr.com/view/2822/compress-images-using-convert-imagemagick-in-a-bulk/</guid>
</item>
<item>
<title>(Bash) Rename Multiple Files in Bash Using Regular Expressions - basicmagic</title>
<link>http://snipplr.com/view/2736/rename-multiple-files-in-bash-using-regular-expressions/</link>
<description><![CDATA[ <p>This small, bash script will loop though the specified files and rename them according to a sed regular expression. In this example, I'm renaming a bunch of .avi movie files.</p> ]]></description>
<pubDate>Sat, 26 May 2007 07:28:35 GMT</pubDate>
<guid>http://snipplr.com/view/2736/rename-multiple-files-in-bash-using-regular-expressions/</guid>
</item>
<item>
<title>(Bash) wget with username and password - basicmagic</title>
<link>http://snipplr.com/view/2687/wget-with-username-and-password/</link>
<description><![CDATA[ <p>This is how to connect to a secure site with wget.  The Cygwin manpage is quite confusing on this issue.</p> ]]></description>
<pubDate>Tue, 22 May 2007 11:08:00 GMT</pubDate>
<guid>http://snipplr.com/view/2687/wget-with-username-and-password/</guid>
</item>
<item>
<title>(Bash) Nice Bash prompt - basicmagic</title>
<link>http://snipplr.com/view/2369/nice-bash-prompt/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 Mar 2007 16:38:09 GMT</pubDate>
<guid>http://snipplr.com/view/2369/nice-bash-prompt/</guid>
</item>
<item>
<title>(Bash) mysqldump2mail - basicmagic</title>
<link>http://snipplr.com/view/2353/mysqldump2mail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 18 Mar 2007 13:01:46 GMT</pubDate>
<guid>http://snipplr.com/view/2353/mysqldump2mail/</guid>
</item>
<item>
<title>(Bash) Character to Hex - basicmagic</title>
<link>http://snipplr.com/view/2336/character-to-hex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 15 Mar 2007 08:15:37 GMT</pubDate>
<guid>http://snipplr.com/view/2336/character-to-hex/</guid>
</item>
<item>
<title>(Bash) List/Search Packages installed - basicmagic</title>
<link>http://snipplr.com/view/2313/listsearch-packages-installed/</link>
<description><![CDATA[ <p>List all packages that are installed in your system</p> ]]></description>
<pubDate>Tue, 13 Mar 2007 08:13:34 GMT</pubDate>
<guid>http://snipplr.com/view/2313/listsearch-packages-installed/</guid>
</item>
</channel>
</rss>