<?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 22:28:27 +0000</lastBuildDate>
    <item>
      <title>(Bash) Rescue any exception in Ruby - cczona</title>
      <link>https://snipplr.com/view/59991/rescue-any-exception-in-ruby</link>
      <description>&lt;p&gt;From the Pickaxe, 4th edition, p. 352:&#13;
&#13;
A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue every exception, use this:&lt;/p&gt;</description>
      <pubDate>Thu, 20 Oct 2011 14:59:24 UTC</pubDate>
      <guid>https://snipplr.com/view/59991/rescue-any-exception-in-ruby</guid>
    </item>
    <item>
      <title>(Bash) List the keyboard shortcuts for your *nix\'s builtin functions - cczona</title>
      <link>https://snipplr.com/view/58479/list-the-keyboard-shortcuts-for-your-nixs-builtin-functions</link>
      <description>&lt;p&gt;See also http://www.gnu.org/software/bash/manual/bashref.html#Bindable-Readline-Commands for the standard bindings and more detailed explanation of what they do.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Sep 2011 07:34:29 UTC</pubDate>
      <guid>https://snipplr.com/view/58479/list-the-keyboard-shortcuts-for-your-nixs-builtin-functions</guid>
    </item>
    <item>
      <title>(Bash) Import exported/dumped Subversion repository - cczona</title>
      <link>https://snipplr.com/view/56673/import-exporteddumped-subversion-repository</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 16 Jul 2011 04:09:27 UTC</pubDate>
      <guid>https://snipplr.com/view/56673/import-exporteddumped-subversion-repository</guid>
    </item>
    <item>
      <title>(Bash) Undoing (reverse merging) changes/versions in Subversion - cczona</title>
      <link>https://snipplr.com/view/45271/undoing-reverse-merging-changesversions-in-subversion</link>
      <description>&lt;p&gt;[See also: http://snipplr.com/view/12048]&#13;
&#13;
Oops, didn't mean to commit that?  Undo it easily:&lt;/p&gt;</description>
      <pubDate>Sat, 04 Dec 2010 12:24:25 UTC</pubDate>
      <guid>https://snipplr.com/view/45271/undoing-reverse-merging-changesversions-in-subversion</guid>
    </item>
    <item>
      <title>(Bash) Count files recursively - cczona</title>
      <link>https://snipplr.com/view/43752/count-files-recursively</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 08 Nov 2010 19:15:32 UTC</pubDate>
      <guid>https://snipplr.com/view/43752/count-files-recursively</guid>
    </item>
    <item>
      <title>(Bash) Extract/export graphics from Flash *.swf file - cczona</title>
      <link>https://snipplr.com/view/38104/extractexport-graphics-from-flash-swf-file</link>
      <description>&lt;p&gt;Examples borrowed from http://ubuntuforums.org/showthread.php?t=966877 (comment 3)&lt;/p&gt;</description>
      <pubDate>Sat, 31 Jul 2010 04:20:31 UTC</pubDate>
      <guid>https://snipplr.com/view/38104/extractexport-graphics-from-flash-swf-file</guid>
    </item>
    <item>
      <title>(Bash) Identify version of Flash plugin required by an *.swf file - cczona</title>
      <link>https://snipplr.com/view/38103/identify-version-of-flash-plugin-required-by-an-swf-file</link>
      <description>&lt;p&gt;requires swftools&lt;/p&gt;</description>
      <pubDate>Sat, 31 Jul 2010 04:05:00 UTC</pubDate>
      <guid>https://snipplr.com/view/38103/identify-version-of-flash-plugin-required-by-an-swf-file</guid>
    </item>
    <item>
      <title>(Bash) Strip EXIF headers from the commandline - cczona</title>
      <link>https://snipplr.com/view/18477/strip-exif-headers-from-the-commandline</link>
      <description>&lt;p&gt;After ImageMagick is installed, you will have /usr/bin/mogrify available. The mogrify command can be used to strip Exif data from images.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Aug 2009 22:38:32 UTC</pubDate>
      <guid>https://snipplr.com/view/18477/strip-exif-headers-from-the-commandline</guid>
    </item>
    <item>
      <title>(Bash) Install ClamAV from source on OS X - cczona</title>
      <link>https://snipplr.com/view/7793/install-clamav-from-source-on-os-x</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 10 Aug 2008 02:52:37 UTC</pubDate>
      <guid>https://snipplr.com/view/7793/install-clamav-from-source-on-os-x</guid>
    </item>
    <item>
      <title>(Bash) Point subversion working copy to moved repository URL - cczona</title>
      <link>https://snipplr.com/view/6855/point-subversion-working-copy-to-moved-repository-url</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:48:01 UTC</pubDate>
      <guid>https://snipplr.com/view/6855/point-subversion-working-copy-to-moved-repository-url</guid>
    </item>
    <item>
      <title>(Bash) Combine PDFs with Ghostscript - cczona</title>
      <link>https://snipplr.com/view/6507/combine-pdfs-with-ghostscript</link>
      <description>&lt;p&gt;There's a GUI tool, called Combine PDF, which purports to do the same thing.  But the output loses text searchability.  Whereas this method preserves searchability.&#13;
&#13;
NOTE: you may need to do 'sudo port install ghostscript' first&lt;/p&gt;</description>
      <pubDate>Fri, 30 May 2008 15:36:24 UTC</pubDate>
      <guid>https://snipplr.com/view/6507/combine-pdfs-with-ghostscript</guid>
    </item>
    <item>
      <title>(Bash) Add paths to Ruby 'require' - cczona</title>
      <link>https://snipplr.com/view/6192/add-paths-to-ruby-require</link>
      <description>&lt;p&gt;Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:&lt;/p&gt;</description>
      <pubDate>Mon, 12 May 2008 17:52:58 UTC</pubDate>
      <guid>https://snipplr.com/view/6192/add-paths-to-ruby-require</guid>
    </item>
    <item>
      <title>(Bash) Dig, without the cruft - cczona</title>
      <link>https://snipplr.com/view/6040/dig-without-the-cruft</link>
      <description>&lt;p&gt;If you pass the +short option to dig, it will give you a really short and sweet answer - just the IP address.&#13;
&#13;
    $ dig fosswire.com +short&#13;
    208.113.149.33&lt;/p&gt;</description>
      <pubDate>Tue, 29 Apr 2008 04:03:42 UTC</pubDate>
      <guid>https://snipplr.com/view/6040/dig-without-the-cruft</guid>
    </item>
    <item>
      <title>(Bash) Customize SSH config for every login - cczona</title>
      <link>https://snipplr.com/view/6000/customize-ssh-config-for-every-login</link>
      <description>&lt;p&gt;Changing default settings&#13;
&#13;
The defaults for the ssh-related commands can be altered for each account in a configuration file ~/.ssh/config (there is also a system-wide file, usually /etc/ssh/ssh_config). Each entry starts with a Host keyword. You can use wildcards to match all the appropriate systems:&#13;
&#13;
    * ? matches any single character&#13;
    * * matches any sequence of zero or more characters&#13;
&#13;
Usual keywords include (defaults in parenthesis):&#13;
&#13;
Compression yes/no (no)&#13;
    Controls whether compression is used on the connection. &#13;
CompressionLevel 1-9 (6)&#13;
    Level of compression: 1 is fastest, 9 is slowest (achieves best compression). Compression is good for slow links (saves bandwidth) and fast machines. &#13;
FallBackToRsh yes/no (yes)&#13;
    If a secure connection to the remote system cannot be established the commands can try unsecure connections (a warning will be displayed if this happens). On highly secure systems this could be disabled in the system-wide configuration. &#13;
KeepAlive yes/no (yes)&#13;
    Controls whether TCP keepalive messages are used. When enabled it is possible to detect network outages and automatically close your connections (which is good). However, if you are connected over a dialup link that automatically dials when there is traffic, you will want to turn this off to avoid unnecessarily bringing up the line. &#13;
User account (local account)&#13;
    Specify the remote account name. Add this to avoid having to use the -l option when issuing commands. &#13;
&#13;
&#13;
For a complete list of options see sshd_config(5): http://netbsd.gw.com/cgi-bin/man-cgi?sshd_config+5&#13;
&#13;
NOTE: Host can alternately set an alias name for a Hostname&lt;/p&gt;</description>
      <pubDate>Fri, 25 Apr 2008 14:02:30 UTC</pubDate>
      <guid>https://snipplr.com/view/6000/customize-ssh-config-for-every-login</guid>
    </item>
    <item>
      <title>(Bash) What records does this nameserver have for a given domain? - cczona</title>
      <link>https://snipplr.com/view/5890/what-records-does-this-nameserver-have-for-a-given-domain</link>
      <description>&lt;p&gt;Use 'host NAME SERVER' where:&#13;
&#13;
* 'NAME' is some base domain name you want to know more about&#13;
* 'SERVER' is the IP address of a nameserver to be queried (typically you'll want to use one of the nameserver for the name you're inquiring about)&lt;/p&gt;</description>
      <pubDate>Wed, 16 Apr 2008 16:27:22 UTC</pubDate>
      <guid>https://snipplr.com/view/5890/what-records-does-this-nameserver-have-for-a-given-domain</guid>
    </item>
    <item>
      <title>(Bash) Use shopt to reference bash paths as variables - cczona</title>
      <link>https://snipplr.com/view/5714/use-shopt-to-reference-bash-paths-as-variables</link>
      <description>&lt;p&gt;Check out the bash command 'shopt -s cdable_vars' From the man bash page:  If set, an argument to the cd builtin command that is not a directory is assumed to be the name of a variable whose value is the directory to change to.&lt;/p&gt;</description>
      <pubDate>Sat, 05 Apr 2008 18:48:37 UTC</pubDate>
      <guid>https://snipplr.com/view/5714/use-shopt-to-reference-bash-paths-as-variables</guid>
    </item>
    <item>
      <title>(Bash) Which version of Linux is this? - cczona</title>
      <link>https://snipplr.com/view/5690/which-version-of-linux-is-this</link>
      <description>&lt;p&gt;(EDITED: Originally I had this snip using 'cat /proc/version'.  But have since replaced it with a more reliable  -- and specific -- method)&#13;
&#13;
If you need still more info (or are on a BSD), see 'uname', 'dpkg-architecture'&lt;/p&gt;</description>
      <pubDate>Thu, 03 Apr 2008 21:14:02 UTC</pubDate>
      <guid>https://snipplr.com/view/5690/which-version-of-linux-is-this</guid>
    </item>
    <item>
      <title>(Bash) Parallels bridged networking with Ubuntu Server - cczona</title>
      <link>https://snipplr.com/view/5689/parallels-bridged-networking-with-ubuntu-server</link>
      <description>&lt;p&gt;If Ubuntu Server fails to resolve hostnames or find a network connection via Parallels 3 bridged networking, it may be attempting to use the wrong network interface.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Apr 2008 17:51:29 UTC</pubDate>
      <guid>https://snipplr.com/view/5689/parallels-bridged-networking-with-ubuntu-server</guid>
    </item>
    <item>
      <title>(Bash) 1440x900 (24 bit) display resolution for Ubuntu Server - cczona</title>
      <link>https://snipplr.com/view/5688/1440x900-24-bit-display-resolution-for-ubuntu-server</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 03 Apr 2008 17:23:42 UTC</pubDate>
      <guid>https://snipplr.com/view/5688/1440x900-24-bit-display-resolution-for-ubuntu-server</guid>
    </item>
    <item>
      <title>(Bash) MacPorts fixer-upper - cczona</title>
      <link>https://snipplr.com/view/5394/macports-fixerupper</link>
      <description>&lt;p&gt;Forces a recalcitrant port to install by *uninstalling* it completely first&lt;/p&gt;</description>
      <pubDate>Wed, 12 Mar 2008 20:33:25 UTC</pubDate>
      <guid>https://snipplr.com/view/5394/macports-fixerupper</guid>
    </item>
    <item>
      <title>(Bash) shopt (shell options) - cczona</title>
      <link>https://snipplr.com/view/5393/shopt-shell-options</link>
      <description>&lt;p&gt;//for options available, see:&#13;
http://www.ss64.com/bash/shopt.html&lt;/p&gt;</description>
      <pubDate>Wed, 12 Mar 2008 20:31:38 UTC</pubDate>
      <guid>https://snipplr.com/view/5393/shopt-shell-options</guid>
    </item>
    <item>
      <title>(Bash) Apache 'Forbidden' error on Mac ~/Sites files - cczona</title>
      <link>https://snipplr.com/view/4665/apache-forbidden-error-on-mac-sites-files</link>
      <description>&lt;p&gt;When Apache under OS X throws 'Forbidden' errors on files under the ~/Sites path, and the error log report 'Permission denied: access to /somefile/blah failed because search permissions are missing on a component of the path', check a missing Other Execute permission along the entire path.&#13;
&#13;
"If you want someone to have access to a file in a particular folder, that user must have "search" permission (the "x") on all of the folders along the path from the top of the drive down to the folder where the file is. And then the file itself must have "read" permission for that user. And if you want someone to be able to see what files are in a particular folder, that folder must have "read" permission for that user."&lt;/p&gt;</description>
      <pubDate>Sat, 19 Jan 2008 14:36:23 UTC</pubDate>
      <guid>https://snipplr.com/view/4665/apache-forbidden-error-on-mac-sites-files</guid>
    </item>
    <item>
      <title>(Bash) check swap memory usage - cczona</title>
      <link>https://snipplr.com/view/4407/check-swap-memory-usage</link>
      <description>&lt;p&gt;To find out how much swap you are using at any given time.&#13;
If there's more than 1 swapfile you could benefit from more RAM.&lt;/p&gt;</description>
      <pubDate>Sat, 22 Dec 2007 01:48:47 UTC</pubDate>
      <guid>https://snipplr.com/view/4407/check-swap-memory-usage</guid>
    </item>
    <item>
      <title>(Bash) GOTCHA: bash/sh handling of unclosed quotes - cczona</title>
      <link>https://snipplr.com/view/4396/gotcha-bashsh-handling-of-unclosed-quotes</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 21 Dec 2007 17:45:49 UTC</pubDate>
      <guid>https://snipplr.com/view/4396/gotcha-bashsh-handling-of-unclosed-quotes</guid>
    </item>
  </channel>
</rss>
