<?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>Bevilacqua.us</title>
	<atom:link href="http://bevilacqua.us/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://bevilacqua.us</link>
	<description></description>
	<lastBuildDate>Sat, 26 Jun 2010 15:54:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Boeing 737 @ Atlanta B31</title>
		<link>http://bevilacqua.us/?p=163</link>
		<comments>http://bevilacqua.us/?p=163#comments</comments>
		<pubDate>Sat, 26 Jun 2010 15:54:06 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[earth]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=163</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_2094FD58-EF5E-4586-8270-425AF8C95553.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_2094FD58-EF5E-4586-8270-425AF8C95553.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=163</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Camping</title>
		<link>http://bevilacqua.us/?p=161</link>
		<comments>http://bevilacqua.us/?p=161#comments</comments>
		<pubDate>Sat, 19 Jun 2010 15:05:21 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[body]]></category>
		<category><![CDATA[earth]]></category>
		<category><![CDATA[mind]]></category>
		<category><![CDATA[spirit]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=161</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_C2A52022-562E-485D-A2CE-DD7D82B4FAA4.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_C2A52022-562E-485D-A2CE-DD7D82B4FAA4.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=161</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Here for the paneer</title>
		<link>http://bevilacqua.us/?p=159</link>
		<comments>http://bevilacqua.us/?p=159#comments</comments>
		<pubDate>Thu, 17 Jun 2010 00:16:47 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[body]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=159</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_BFEF7492-AE92-4913-9419-2DD9DDEAE5EC.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_BFEF7492-AE92-4913-9419-2DD9DDEAE5EC.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=159</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blue Dolphin Cichlids</title>
		<link>http://bevilacqua.us/?p=157</link>
		<comments>http://bevilacqua.us/?p=157#comments</comments>
		<pubDate>Wed, 16 Jun 2010 14:37:07 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[earth]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=157</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_C17BB40F-12DA-462D-88B9-463E701EE1A1.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_C17BB40F-12DA-462D-88B9-463E701EE1A1.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=157</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>True Ambient</title>
		<link>http://bevilacqua.us/?p=155</link>
		<comments>http://bevilacqua.us/?p=155#comments</comments>
		<pubDate>Wed, 16 Jun 2010 14:33:50 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[body]]></category>
		<category><![CDATA[earth]]></category>
		<category><![CDATA[mind]]></category>
		<category><![CDATA[spirit]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=155</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_47E99A7C-3757-4ED7-885D-843CFB564CB9.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/06/l_1600_1200_47E99A7C-3757-4ED7-885D-843CFB564CB9.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=155</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Backup and Rotation</title>
		<link>http://bevilacqua.us/?p=110</link>
		<comments>http://bevilacqua.us/?p=110#comments</comments>
		<pubDate>Tue, 20 Apr 2010 02:30:33 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[mind]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=110</guid>
		<description><![CDATA[
#!/bin/bash
#Simple Database Backup and Rotation Utility
#Run from crontab nightly as root
#00 0    * * *   root    /root/bin/dump-dbs.sh
&#160;
&#160;
DATE=`date +%Y%m%d-%a`
DBS=`mysql -e &#34;show databases&#34; &#124; awk '{ print $1 }' &#124; tr '\n' ' ' &#124; cut -b10-`
&#160;
&#160;
#Where to store your .sql backups
cd /root/MySQL-Backup
&#160;
&#160;
#Remove Previous Week's Backup
rm -f *-`date +%a`.sql
&#160;
&#160;
for [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#Simple Database Backup and Rotation Utility</span>
<span style="color: #666666; font-style: italic;">#Run from crontab nightly as root</span>
<span style="color: #666666; font-style: italic;">#00 0    * * *   root    /root/bin/dump-dbs.sh</span>
&nbsp;
&nbsp;
<span style="color: #007800;">DATE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d-<span style="color: #000000; font-weight: bold;">%</span>a<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">DBS</span>=<span style="color: #000000; font-weight: bold;">`</span>mysql <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;show databases&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #ff0000;">'\n'</span> <span style="color: #ff0000;">' '</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> -b10-<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#Where to store your .sql backups</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>MySQL-Backup
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#Remove Previous Week's Backup</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">*</span>-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>a<span style="color: #000000; font-weight: bold;">`</span>.sql
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$DBS</span> ;
    <span style="color: #000000; font-weight: bold;">do</span> mysqldump <span style="color: #660033;">--opt</span> <span style="color: #660033;">--allow-keywords</span> <span style="color: #660033;">--quote-names</span> <span style="color: #660033;">--result-file</span>=<span style="color: #007800;">$i</span>-<span style="color: #007800;">$DATE</span>.sql <span style="color: #007800;">$i</span>;
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=110</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List files, sizes, sorted, cleanly, reported</title>
		<link>http://bevilacqua.us/?p=104</link>
		<comments>http://bevilacqua.us/?p=104#comments</comments>
		<pubDate>Thu, 15 Apr 2010 04:26:04 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[mind]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=104</guid>
		<description><![CDATA[I found this Perl one-liner here today. It&#8217;s a work of art.

du -k &#124; sort -n &#124; perl -ne 'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024));printf  (&#34;%6.1f\t%s\t%25s  %s\n&#34;,($1/(2**(10*$m))),((&#34;K&#34;,&#34;M&#34;,&#34;G&#34;,&#34;T&#34;,&#34;P&#34;)[$m]),&#34;*&#34;x (1.5*$l),$2);}'

]]></description>
			<content:encoded><![CDATA[<p>I found this Perl one-liner <a href="http://www.cyberciti.biz/faq/find-large-files-linux/">here</a> today. It&#8217;s a work of art.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-k</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-n</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024));printf  (&quot;%6.1f\t%s\t%25s  %s\n&quot;,($1/(2**(10*$m))),((&quot;K&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;)[$m]),&quot;*&quot;x (1.5*$l),$2);}'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Desk</title>
		<link>http://bevilacqua.us/?p=85</link>
		<comments>http://bevilacqua.us/?p=85#comments</comments>
		<pubDate>Tue, 06 Apr 2010 20:54:47 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[mind]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=85</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/04/l_1600_1200_3CEFB20A-334C-441A-9C19-BB4D18A96953.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/04/l_1600_1200_3CEFB20A-334C-441A-9C19-BB4D18A96953.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=85</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ha.d/haresources &amp; bonding</title>
		<link>http://bevilacqua.us/?p=79</link>
		<comments>http://bevilacqua.us/?p=79#comments</comments>
		<pubDate>Tue, 06 Apr 2010 20:43:13 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[mind]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=79</guid>
		<description><![CDATA[
#!/bin/bash
#Show status for bonded IPs currently listed in /etc/ha.d/haresources
&#160;
#We only want the second word (seq +2) through to the final four
#words (seq -4) in our haresources
cnt=`wc -w /etc/ha.d/haresources &#124; cut -d&#34; &#34; -f1`
acnt=$&#40;echo &#34; $cnt - 4 &#34; &#124; bc -l&#41;
&#160;
addr=$&#40;for i in `seq 2 $acnt` ;
do /bin/cat /etc/ha.d/haresources &#124; cut -d&#34; &#34; -f$i &#124; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#Show status for bonded IPs currently listed in /etc/ha.d/haresources</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#We only want the second word (seq +2) through to the final four</span>
<span style="color: #666666; font-style: italic;">#words (seq -4) in our haresources</span>
<span style="color: #007800;">cnt</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-w</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ha.d<span style="color: #000000; font-weight: bold;">/</span>haresources <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">&quot; &quot;</span> -f1<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">acnt</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; <span style="color: #007800;">$cnt</span> - 4 &quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> -l<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #007800;">addr</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">2</span> <span style="color: #007800;">$acnt</span><span style="color: #000000; font-weight: bold;">`</span> ;
<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ha.d<span style="color: #000000; font-weight: bold;">/</span>haresources <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">&quot; &quot;</span> -f<span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #ff0000;">'\n'</span> <span style="color: #ff0000;">' '</span> ;
<span style="color: #000000; font-weight: bold;">done</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #007800;">y</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">for</span> x <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$addr</span>;
<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$x</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/IPaddr:://'</span> ;
<span style="color: #000000; font-weight: bold;">done</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> z <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$y</span>;
<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span> ;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Status for <span style="color: #007800;">$z</span>&quot;</span>;
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ha.d<span style="color: #000000; font-weight: bold;">/</span>resource.d<span style="color: #000000; font-weight: bold;">/</span>IPaddr2 <span style="color: #007800;">$z</span> status ;
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Completed status for <span style="color: #007800;">$acnt</span> bonded address&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=79</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Biking</title>
		<link>http://bevilacqua.us/?p=70</link>
		<comments>http://bevilacqua.us/?p=70#comments</comments>
		<pubDate>Sun, 04 Apr 2010 23:58:19 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[earth]]></category>

		<guid isPermaLink="false">http://bevilacqua.us/?p=70</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://bevilacqua.us/wp-content/uploads/2010/04/l_1600_1200_B1687133-533B-4F1B-825D-989312681683.jpeg"><img src="http://bevilacqua.us/wp-content/uploads/2010/04/l_1600_1200_B1687133-533B-4F1B-825D-989312681683.jpeg" alt="" width="300" height="225" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bevilacqua.us/?feed=rss2&amp;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
