<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Clue Bin</title>
	<atom:link href="http://cluebin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cluebin.com</link>
	<description>Clues for the Clueless</description>
	<lastBuildDate>Wed, 21 Dec 2011 19:13:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>how to get the rss feed from twitter status updates</title>
		<link>http://cluebin.com/rss-feed-twitter-status-updates/</link>
		<comments>http://cluebin.com/rss-feed-twitter-status-updates/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 22:18:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=62</guid>
		<description><![CDATA[Need to get the RSS feed from a twitter user&#8217;s status updates? No problem! Here&#8217;s how you do it. http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=xxxxx replace xxxxx with the twitter username]]></description>
			<content:encoded><![CDATA[<p>Need to get the RSS feed from a twitter user&#8217;s status updates?  No problem!  Here&#8217;s how you do it.</p>
<blockquote><p>http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=xxxxx</p></blockquote>
<p>replace xxxxx with the twitter username</p>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/rss-feed-twitter-status-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proper 301 Redirects with Apache httpd.conf</title>
		<link>http://cluebin.com/proper-301-redirects-with-apache-httpd-conf/</link>
		<comments>http://cluebin.com/proper-301-redirects-with-apache-httpd-conf/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 13:37:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mod Rewrite]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=63</guid>
		<description><![CDATA[Let&#8217;s say you want to redirect www.yourdomain.com to yourdomain.com for SEO reasons. The best way to accomplish this is in your apache config file. Sure, you can use .htaccess, but Apache will have to literally open the file for every request. Better performance to just do it in the httpd.conf file. Here&#8217;s an example of [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you want to redirect www.yourdomain.com to yourdomain.com for SEO reasons.  The best way to accomplish this is in your apache config file.  Sure, you can use .htaccess, but Apache will have to literally open the file for every request.  Better performance to just do it in the httpd.conf file.  Here&#8217;s an example of how I add new domains to apache.</p>
<blockquote><p>
&lt;VirtualHost 216.246.34.88&gt;<br />
&lt;Directory /www/boldtwww/example.com/htdocs&gt;<br />
  AllowOverride AuthConfig FileInfo All<br />
&lt;/Directory&gt;<br />
ServerName example.com<br />
ScriptAlias /cgi-bin/ /www/boldtwww/example.com/cgi-bin/<br />
DocumentRoot /www/boldtwww/example.com/htdocs<br />
ErrorLog /var/log/httpd/example.com-error_log<br />
CustomLog /var/log/httpd/example.com-access_log combined<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 216.246.34.88&gt;<br />
&lt;Directory /www/boldtwww/example.com/htdocs&gt;<br />
  AllowOverride AuthConfig FileInfo All<br />
&lt;/Directory><br />
ServerName www.example.com<br />
RedirectPermanent / http://example.com/<br />
ScriptAlias /cgi-bin/ /www/boldtwww/example.com/cgi-bin/<br />
DocumentRoot /www/boldtwww/example.com/htdocs<br />
ErrorLog /var/log/httpd/example.com-error_log<br />
CustomLog /var/log/httpd/example.com-access_log combined<br />
&lt;/VirtualHost&gt;
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/proper-301-redirects-with-apache-httpd-conf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strip a query string variable from url</title>
		<link>http://cluebin.com/strip-a-query-string-variable-from-url/</link>
		<comments>http://cluebin.com/strip-a-query-string-variable-from-url/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 00:32:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mod Rewrite]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=60</guid>
		<description><![CDATA[Let&#8217;s say you have an old site which used to have a lot of random question marks and values in the url which you no longer need. If you are using php, your site very well may load these pages with a 200OK, possibly creating duplicate content issues. Here&#8217;s a .htaccess snippit to strip any [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have an old site which used to have a lot of random question marks and values in the url which you no longer need.</p>
<p>If you are using php, your site very well may load these pages with a 200OK, possibly creating duplicate content issues.</p>
<p>Here&#8217;s a .htaccess snippit to strip any values off an URL:</p>
<blockquote><p>RewriteCond %{QUERY_STRING} !=&#8221;"<br />
RewriteRule ^(.*)$ /$1? [R=301,L]</p></blockquote>
<p>Example:</p>
<p>http://whateverdomain.com/?postid=12334 would become http://whateverdomain.com/</p>
<p>This is very useful for stripping off tracking garbage appended by popular social sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/strip-a-query-string-variable-from-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>prepend and append multiple lines in vi</title>
		<link>http://cluebin.com/prepend-and-append-multiple-lines-in-vi/</link>
		<comments>http://cluebin.com/prepend-and-append-multiple-lines-in-vi/#comments</comments>
		<pubDate>Fri, 27 May 2011 09:26:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=48</guid>
		<description><![CDATA[vi has a powerful search and replace function. Let&#8217;s say you have a long list of keywords which you want to append and prepend text to. In this example, we will add bracket to the beginning and the end of each line. :%s/^/[ :%s/$/] It&#8217;s basically sed being invoked from within vi]]></description>
			<content:encoded><![CDATA[<p>vi has a powerful search and replace function.  Let&#8217;s say you have a long list of keywords which you want to append and prepend text to.  In this example, we will add bracket to the beginning and the end of each line.</p>
<blockquote><p>:%s/^/[<br />
:%s/$/]</p></blockquote>
<p>It&#8217;s basically sed being invoked from within vi</p>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/prepend-and-append-multiple-lines-in-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing PHP in .html Files</title>
		<link>http://cluebin.com/parsing-php-in-html-files/</link>
		<comments>http://cluebin.com/parsing-php-in-html-files/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 16:13:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=54</guid>
		<description><![CDATA[Is parsing PHP in web pages that end in .html or .htm, possible? Absolutely! If you&#8217;re hosted on an Apache webserver, just edit the .htaccess file in your documentroot. RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Apache is now parsing PHP in .html for that website.]]></description>
			<content:encoded><![CDATA[<p>Is parsing PHP in web pages that end in .html or .htm, possible? Absolutely!</p>
<p>If you&#8217;re hosted on an Apache webserver, just edit the .htaccess file in your documentroot. </p>
<blockquote><p>RemoveHandler .html .htm<br />
AddType application/x-httpd-php .php .htm .html</p></blockquote>
<p>Apache is now parsing PHP in .html for that website.</p>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/parsing-php-in-html-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create a New User with pw useradd in FreeBSD</title>
		<link>http://cluebin.com/how-to-create-a-new-user-with-pw-useradd-in-freebsd/</link>
		<comments>http://cluebin.com/how-to-create-a-new-user-with-pw-useradd-in-freebsd/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 15:15:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Adduser]]></category>
		<category><![CDATA[Shell Script]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=49</guid>
		<description><![CDATA[You can invoke &#8220;adduser&#8221; command in FreeBSD in order to create new user. Adduser will prompt you for user info like name, uid, gid, shell environment and etc. But sometime we would like to create user access through Bash script. &#8220;useradd&#8221; command is the good way to do it. In Linux, using &#8220;useradd&#8221; is pretty [...]]]></description>
			<content:encoded><![CDATA[<p>You can invoke &#8220;adduser&#8221; command in FreeBSD in order to create new user. Adduser will prompt you for user info like name, uid, gid, shell environment and etc. But sometime we would like to create user access through Bash script. &#8220;useradd&#8221; command is the good way to do it. In Linux, using &#8220;useradd&#8221; is pretty common for creating new user access. You can also use &#8220;useradd&#8221; in FreeBSD, but not directly invoke &#8220;useradd&#8221; command. Below is the sample of creating new user in FreeBSD with &#8220;useradd&#8221;. </p>
<p>Replace username with the desired username, replace Firstname Lastname with the user&#8217;s real name, and replace homedir with the user&#8217;s name.</p>
<blockquote><p># pw useradd username -c &#8216;Firstname Lastname&#8217; -d /home/homedir -s /usr/local/bin/bash</p></blockquote>
<p>The new account is created, but don&#8217;t forget to use passwd to set a pass</p>
<blockquote><p># passwd username</p></blockquote>
<p>You can run other command like &#8220;userdel&#8221;, &#8220;usermod&#8221;, &#8220;usershow&#8221;, &#8220;groupadd&#8221;, &#8220;groupdel&#8221;, &#8220;groupmod&#8221;, &#8220;lock&#8221;, &#8220;unlock&#8221; on FreeBSD by using the &#8220;pw&#8221; command. </p>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/how-to-create-a-new-user-with-pw-useradd-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh login without a password with public host key authorization</title>
		<link>http://cluebin.com/ssh-login-without-a-password-with-public-host-key-authorization/</link>
		<comments>http://cluebin.com/ssh-login-without-a-password-with-public-host-key-authorization/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 17:53:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Shell Script]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=46</guid>
		<description><![CDATA[It&#8217;s always easy to ssh login without a password with public host key authorization on any unix machine. First you’ll need to create your local public key. This is the public end of a local public / private pair that you’ll share with the remote server to identify you. ssh-keygen -t dsa (on your local [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s always easy to ssh login without a password with public host key authorization on any unix machine.</p>
<p>First you’ll need to create your local public key. This is the public end of a local public / private pair that you’ll share with the remote server to identify you.</p>
<blockquote><p>    ssh-keygen -t dsa (on your local machine)
</p></blockquote>
<p>Second you’ll need to copy this key to the remote machine using a command such as:</p>
<blockquote><p>    scp ~/.ssh/id_dsa.pub user@yourserver.com:~
</p></blockquote>
<p>Lastly, log into the remote machine via ssh (using your password for the last time!) and use this command to add the newly generated key to the list of authenticated keys:</p>
<blockquote><p>    cat id_dsa.pub >> .ssh/authorized_keys
</p></blockquote>
<p>You’ll also probably want to delete the original key as well.</p>
<blockquote><p>    rm id_dsa.pub
</p></blockquote>
<p>A copy of your key is now on the remote server as an authorized keys and any incoming ssh connection originating from the local machine will key match and connect with the host key authentication instead of having to type in a password.</p>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/ssh-login-without-a-password-with-public-host-key-authorization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Surf a Secure Tunnel via SSH on Mac OSX</title>
		<link>http://cluebin.com/http-surf-a-secure-tunnel-via-ssh-on-mac-osx/</link>
		<comments>http://cluebin.com/http-surf-a-secure-tunnel-via-ssh-on-mac-osx/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 17:47:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=44</guid>
		<description><![CDATA[Open Terminal and enter the following code: ssh -D 8080 -f -C -q -N admin@server1.cluebin.com This opens the tunnel by spawning an OpenSSH client into the background which will listen on port 8080, and will forward the traffic to server1.cluebin.com. Then, you open FireFox or your favorite brower, and in the about:config page change the [...]]]></description>
			<content:encoded><![CDATA[<p>Open Terminal and enter the following code:</p>
<blockquote><p>ssh -D 8080 -f -C -q -N admin@server1.cluebin.com</p></blockquote>
<p>This opens the tunnel by spawning an OpenSSH client into the background which will listen on port 8080, and will forward the traffic to server1.cluebin.com.</p>
<p>Then, you open FireFox or your favorite brower, and in the about:config page change the following 6 items to the following values:</p>
<blockquote><p>network.proxy.no_proxies_on : localhost, 127.0.0.1, 192.168.0.0/24, .yourcompany.com<br />
network.proxy.socks : 127.0.0.1<br />
network.proxy.socks_port : 8080<br />
network.proxy.socks.remote_dns : true<br />
network.proxy.socks_version : 5<br />
network.proxy.type : 1</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/http-surf-a-secure-tunnel-via-ssh-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install MySQL from ports on FreeBSD</title>
		<link>http://cluebin.com/install-mysql-from-ports-on-freebsd/</link>
		<comments>http://cluebin.com/install-mysql-from-ports-on-freebsd/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 22:51:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=37</guid>
		<description><![CDATA[I do this on just about every machine I roll out. Needed a handy place to keep the code: cd /usr/ports/databases/mysql51-server/ make install /usr/local/bin/mysql_install_db chown -R mysql /var/db/mysql/ chgrp -R mysql /var/db/mysql/ /usr/local/bin/mysqld_safe –user=mysql &#038; /usr/local/bin/mysqladmin -uroot password somenewpassword echo 'mysql_enable="YES"' >> /etc/rc.conf]]></description>
			<content:encoded><![CDATA[<p>I do this on just about every machine I roll out.  Needed a handy place to keep the code:</p>
<blockquote><p><code>cd /usr/ports/databases/mysql51-server/<br />
make install<br />
/usr/local/bin/mysql_install_db<br />
chown -R mysql /var/db/mysql/<br />
chgrp -R mysql /var/db/mysql/<br />
/usr/local/bin/mysqld_safe –user=mysql &#038;<br />
/usr/local/bin/mysqladmin -uroot password somenewpassword<br />
echo 'mysql_enable="YES"' >> /etc/rc.conf<br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/install-mysql-from-ports-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually 404 an URL query pattern with mod_rewrite</title>
		<link>http://cluebin.com/manually-404-an-url-query-pattern-with-mod_rewrite/</link>
		<comments>http://cluebin.com/manually-404-an-url-query-pattern-with-mod_rewrite/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 23:34:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mod Rewrite]]></category>

		<guid isPermaLink="false">http://cluebin.com/?p=27</guid>
		<description><![CDATA[Say you have an odd URL pattern which you want to get a 404 reply before it hits your CMS. Add this to your .htaccess file, and obviously replace the word something with your pattern. The line containing [OR] can be duplicated or deleted depending on if you have multiple patterns, or a single pattern. [...]]]></description>
			<content:encoded><![CDATA[<p>Say you have an odd URL pattern which you want to get a 404 reply before it hits your CMS.<br />
Add this to your .htaccess file, and obviously replace the word something with your pattern.<br />
The line containing [OR] can be duplicated or deleted depending on if you have multiple patterns, or a single pattern.</p>
<blockquote><pre>RewriteEngine On
RewriteCond %{REQUEST_URI} /something-else-optional/ [OR]
RewriteCond %{REQUEST_URI} /something/
RewriteRule .* /404.php [L]</pre>
</blockquote>
<p>and then create 404.php in your DocumentRoot, and place the following at the very top on line 1, inside php tags.</p>
<blockquote><pre>
header("HTTP/1.0 404 Not Found");
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cluebin.com/manually-404-an-url-query-pattern-with-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

