<?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>Ubi panis ibi patria &#187; *nix</title>
	<atom:link href="http://blog.ericmalloy.net/category/nix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ericmalloy.net</link>
	<description>notes from the road by Eric Malloy</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:17:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>comment out/affect mulitple lines in vi</title>
		<link>http://blog.ericmalloy.net/2011/12/comment-outaffect-mulitple-lines-in-vi/</link>
		<comments>http://blog.ericmalloy.net/2011/12/comment-outaffect-mulitple-lines-in-vi/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 13:16:42 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Carpal Tunnel]]></category>
		<category><![CDATA[Half An Hour]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[Linkedin]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[Slashes]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[Writing Scripts]]></category>

		<guid isPermaLink="false">http://blog.ericmalloy.net/?p=2773</guid>
		<description><![CDATA[Ever wanted to comment out multiple lines of code while writing shell scripts in vi, but didn&#8217;t want to pound your keyboard for half an hour doing it?
(I#Escape j.j.j.j. = carpal tunnel)
Here&#8217;s the nerdy way to do it:
:.,+N-1 s/^/#/g
Where N-1 is the number of lines minus one that you want to comment out, and s/^/#/g [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to comment out multiple lines of code while writing shell scripts in vi, but didn&#8217;t want to pound your keyboard for half an hour doing it?</p>
<p>(I#Escape j.j.j.j. = carpal tunnel)</p>
<p>Here&#8217;s the nerdy way to do it:</p>
<p>:.,+N-1 s/^/#/g</p>
<p>Where N-1 is the number of lines minus one that you want to comment out, and s/^/#/g is the regular expression (the pattern between the first two slashes is what you want to replace, in this case the beginning of the line, and the pattern between the last two slashes is what you want to replace it with).</p>
<p>For example, if you&#8217;re a bad coder like me and want to comment out 500 lines of code, you would do:</p>
<p>:.,+499 s/^/#/g</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ericmalloy.net/2011/12/comment-outaffect-mulitple-lines-in-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux-3.1.x power regression issues i915 core-i5,i7</title>
		<link>http://blog.ericmalloy.net/2011/11/linux-3-1-x-power-regression-issues-i915-core-i5i7/</link>
		<comments>http://blog.ericmalloy.net/2011/11/linux-3-1-x-power-regression-issues-i915-core-i5i7/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 07:13:35 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[5w]]></category>
		<category><![CDATA[Ac97 Codec]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[Background Ratio]]></category>
		<category><![CDATA[Bash Script]]></category>
		<category><![CDATA[Bus Pci]]></category>
		<category><![CDATA[Bus Usb]]></category>
		<category><![CDATA[Echo 1]]></category>
		<category><![CDATA[Echo 5]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Hda]]></category>
		<category><![CDATA[Host Host]]></category>
		<category><![CDATA[Host Link]]></category>
		<category><![CDATA[i915]]></category>
		<category><![CDATA[Kernel 2]]></category>
		<category><![CDATA[Kernel Parameters]]></category>
		<category><![CDATA[Kernel Patch]]></category>
		<category><![CDATA[Linkedin]]></category>
		<category><![CDATA[Linux Kernel]]></category>
		<category><![CDATA[linux-3]]></category>
		<category><![CDATA[Lvds]]></category>
		<category><![CDATA[Management Policy]]></category>
		<category><![CDATA[Ondemand]]></category>
		<category><![CDATA[power consumption]]></category>
		<category><![CDATA[Power Management]]></category>
		<category><![CDATA[powertop]]></category>
		<category><![CDATA[Rc6]]></category>
		<category><![CDATA[Sysctl]]></category>
		<category><![CDATA[System Cpu]]></category>
		<category><![CDATA[thinkpad x220]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[X Power]]></category>

		<guid isPermaLink="false">http://blog.ericmalloy.net/?p=1716</guid>
		<description><![CDATA[there&#8217;s been a lot of talk about the power regression issues with the linux-3.x kernel on the new intel sandy bridge core i3,5,7 chipsets.
after spending several hours with this issue on a new thinkpad x220 laptop, i&#8217;ll share a solution thanks to the peeps over at #fedora-qa
***UPDATE &#8211; Kernel patch now available at LKML &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>there&#8217;s been a lot of talk about the power regression issues with the linux-3.x kernel on the new intel sandy bridge core i3,5,7 chipsets.</p>
<p>after spending several hours with this issue on a new thinkpad x220 laptop, i&#8217;ll share a solution thanks to the peeps over at #fedora-qa</p>
<p>***UPDATE &#8211; Kernel patch now available at LKML &#8211; <a href="https://lkml.org/lkml/2011/11/10/467" target="_blank">https://lkml.org/lkml/2011/11/10/467</a>   (i&#8217;ll report my results with this when I get a chance to build the patch rpm, i&#8217;ll post) As of now I&#8217;m still having issues with the iwlagn module.</p>
<p>fyi , i&#8217;m running fedora 16 RC5 x86_64 but these kernel parameters apply to any distro</p>
<p>you&#8217;ll want to pass the following parameters at runtime or at boot, however you like  :</p>
<p>pcie_aspm=force power_save=3 i915.i915_enable_fbc=1 i915.i915_enable_rc6=1 i915.lvds_downclock=1</p>
<p>then generate a new grub2 (or 1.xx) config file and reinstall grub to your mba on the disk.</p>
<p>my results were pretty good. idle 70% lcd brightness from 16W to 7.5W average and 5.76W baseline. I&#8217;ve yet to tell but it seems at about 16 hour battery life.</p>
<p>you&#8217;ll also want irqbalance installed to take best advantage of power management balance, distribution and usage over the processors</p>
<p>finally, i use this bash script at runtime so further fine tune my acpi power usage</p>
<p>#!/bin/bash<br />
echo 1 > /sys/module/snd_hda_intel/parameters/power_save</p>
<p>for i in /sys/class/scsi_host/host?/link_power_management_policy; do<br />
    echo min_power > $i<br />
done</p>
<p>for i in /sys/bus/usb/devices/*/power/autosuspend; do<br />
    echo 1 > $i<br />
done</p>
<p>for i in /sys/bus/{pci,i2c}/devices/*/power/control; do<br />
    echo auto > $i<br />
done</p>
<p>echo 1 > /sys/devices/system/cpu/sched_mc_power_savings</p>
<p>echo 5 > /proc/sys/vm/laptop_mode<br />
echo 0 > /proc/sys/kernel/nmi_watchdog<br />
#echo Y > /sys/module/snd_ac97_codec/parameters/power_save<br />
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings<br />
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor<br />
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs<br />
echo 60 > /proc/sys/vm/dirty_ratio<br />
echo 20 > /proc/sys/vm/dirty_background_ratio<br />
echo 1500 > /proc/sys/vm/dirty_expire_centisecs<br />
for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done<br />
# those sysctl&#8217;s are only available if you have an AHCI compatible SATA<br />
# controler and use kernel > 2.6.24-rc2 (or use Kristen ALPM patchset) :<br />
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy<br />
echo min_power > /sys/class/scsi_host/host1/link_power_management_policy<br />
echo 1 > /sys/module/snd_hda_intel/parameters/power_save<br />
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller<br />
ifconfig em1 down<br />
ifconfig virbr0 down<br />
/etc/init.d/libvirtd stop<br />
rmmod bluetooth<br />
hdparm -B 1 -S 12 /dev/sda > /dev/null<br />
echo 1 > /proc/sys/vm/swappiness<br />
service atd stop &#038;> /dev/null<br />
service cron stop &#038;> /dev/null<br />
service anacron stop &#038;> /dev/null</p>
<p>Want to monitor your power usage with dstat? Try this</p>
<p>dstat -t -c &#8211;power &#8211;top-cpu &#8211;top-io &#8211;top-bio &#8211;top-latency &#8211;top-cputime &#8211;power &#8211;battery-remain 10</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ericmalloy.net/2011/11/linux-3-1-x-power-regression-issues-i915-core-i5i7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dealing with a sd2f file</title>
		<link>http://blog.ericmalloy.net/2011/08/dealing-with-a-sd2f-file/</link>
		<comments>http://blog.ericmalloy.net/2011/08/dealing-with-a-sd2f-file/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 14:31:45 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Audacity]]></category>
		<category><![CDATA[Export Format]]></category>
		<category><![CDATA[File Point]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Linkedin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac Os]]></category>
		<category><![CDATA[Raw Data]]></category>
		<category><![CDATA[Toast Mac]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://blog.ericmalloy.net/?p=1323</guid>
		<description><![CDATA[it took me a while to find out (on google) how to deal with a sd2f audio file. I figured I&#8217;d share the solution with others
I wanted to listen to a sd2f audio while. Further investigation revealed this is a &#8216;Toast&#8217; File for Mac. I don&#8217;t run Mac OS, I run Linux
1- Download + Install [...]]]></description>
			<content:encoded><![CDATA[<p>it took me a while to find out (on google) how to deal with a sd2f audio file. I figured I&#8217;d share the solution with others</p>
<p>I wanted to listen to a sd2f audio while. Further investigation revealed this is a &#8216;Toast&#8217; File for Mac. I don&#8217;t run Mac OS, I run Linux</p>
<p>1- Download + Install  audacity<br />
    &#8211; yum install -y audacity<br />
    &#8211; apt-get install audacity<br />
2. Open the file<br />
    &#8211; Point File -> Import Raw Data<br />
3. Export the file<br />
    &#8211; Point, File -> Export<br />
    &#8211; Select your audio export format of choice.<br />
    &#8211; Done.</p>
<p><a href="http://blog.ericmalloy.net/wp-content/uploads/2011/08/Screenshot-08152011-092449-AM.png"><img src="http://blog.ericmalloy.net/wp-content/uploads/2011/08/Screenshot-08152011-092449-AM-300x118.png" alt="" title="audacity" width="300" height="118" class="aligncenter size-medium wp-image-1324" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ericmalloy.net/2011/08/dealing-with-a-sd2f-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php-fpm /nGINX on CentOS-5.6-RELEASE</title>
		<link>http://blog.ericmalloy.net/2011/06/php-fpm-nginx-on-centos-5-6-release/</link>
		<comments>http://blog.ericmalloy.net/2011/06/php-fpm-nginx-on-centos-5-6-release/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 03:44:37 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Bzip2]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Fpm]]></category>
		<category><![CDATA[Freetype]]></category>
		<category><![CDATA[Gcc]]></category>
		<category><![CDATA[Inquiring Minds]]></category>
		<category><![CDATA[Libjpeg]]></category>
		<category><![CDATA[Libpng]]></category>
		<category><![CDATA[Libxml2]]></category>
		<category><![CDATA[Lightning]]></category>
		<category><![CDATA[Linkedin]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Package Names]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[Server Check]]></category>
		<category><![CDATA[Sqlite]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://blog.ericmalloy.net/?p=1236</guid>
		<description><![CDATA[We&#8217;ve skeeet enterprise baby &#8230; Want to be on your way to a load balanced lightning fast cached-up wordpress server with very little resources? Check up on this!

We dig RedHat, package names are standard and not as confusing as Debian/Ubuntu. This new standard world is new to us. Ridin` with the King!
yum install openssl-devel curl-devel [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve skeeet enterprise baby &#8230; Want to be on your way to a load balanced lightning fast cached-up wordpress server with very little resources? Check up on this!</p>
<p><a href="http://blog.ericmalloy.net/wp-content/uploads/2011/06/Don-King.jpg"><img src="http://blog.ericmalloy.net/wp-content/uploads/2011/06/Don-King.jpg" alt="" title="Don King" width="500" height="637" class="aligncenter size-full wp-image-1237" /></a></p>
<p>We dig RedHat, package names are standard and not as confusing as Debian/Ubuntu. This new standard world is new to us. Ridin` with the King!</p>
<p>yum install openssl-devel curl-devel curl libjpeg-devel libjpeg libpng libmcrypt mysql++-devel freetype-devel freetype t1lib-devel t1lib t1utils libc-client-devel libc-client bzip2-devel bzip2-libs libevent-devel libevent gd-devel gd-progs gd libxml2-devel libxml2 expat-devel expat sqlite-devel sqlite libjpeg-devel libpng-devel libmcrypt-devel<br />
mysql-devel gcc pcre-devel redhat-lsb-graphics libexif ImageMagick</p>
<p>Now follow rest of directions <a href="http://blog.ericmalloy.net/2010/10/optimizing-webservers-for-php-wordpress-wordcamp-2010/">here</a>: . You will need to build libmemcached from source, however. I will post further instructions later for all inquiring minds.</p>
<p>But for sho` , if you are running x_86_64 you will need to use the &#8211;with-libdir=lib64 when you configure php, other-wise you haz problems with libmysqlclient (script won&#8217;t know where to find mySQL)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ericmalloy.net/2011/06/php-fpm-nginx-on-centos-5-6-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>adapter missing in exported vm?</title>
		<link>http://blog.ericmalloy.net/2010/06/adapter-missing-in-exported-vm/</link>
		<comments>http://blog.ericmalloy.net/2010/06/adapter-missing-in-exported-vm/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 02:40:52 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Internetworking]]></category>
		<category><![CDATA[Asprin]]></category>
		<category><![CDATA[D 70]]></category>
		<category><![CDATA[Export Image]]></category>
		<category><![CDATA[Image Name]]></category>
		<category><![CDATA[Linkedin]]></category>
		<category><![CDATA[Mac Address]]></category>
		<category><![CDATA[Ovf]]></category>
		<category><![CDATA[Udev]]></category>
		<category><![CDATA[Virtual Mac]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://blog.ericmalloy.net/?p=319</guid>
		<description><![CDATA[I&#8217;m adding this to my checklist when exporting a virtual machine via virtualbox.
on the guest image,

become superuser
echo &#8220;&#8221; &#62; /etc/udev/rules.d/70-persistent-net.rules
shutdown -r now
open up the 70 persistent net rules again. change eth1 to eth0
shutdown -h now
go ahead and export (VBoxManage export $image_name -o $image_name.ovf)

For me, this saved a lot of asprin when importing VM on a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m adding this to my checklist when exporting a virtual machine via <a href="http://virtualbox.org">virtualbox</a>.</p>
<p>on the guest image,</p>
<ol>
<li>become superuser</li>
<li>echo &#8220;&#8221; &gt; /etc/udev/rules.d/70-persistent-net.rules</li>
<li>shutdown -r now</li>
<li>open up the 70 persistent net rules again. change eth1 to eth0</li>
<li>shutdown -h now</li>
<li>go ahead and export (VBoxManage export $image_name -o $image_name.ovf)</li>
</ol>
<p>For me, this saved a lot of asprin when importing VM on a new machine. This permits udev to assign the first available eth adpater to your machines virtual mac address.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ericmalloy.net/2010/06/adapter-missing-in-exported-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setup a webserver with nginx fcgi for debian/ubuntu</title>
		<link>http://blog.ericmalloy.net/2009/06/setup-an-unmanaged-vps/</link>
		<comments>http://blog.ericmalloy.net/2009/06/setup-an-unmanaged-vps/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 18:38:31 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Internetworking]]></category>
		<category><![CDATA[Fcgi]]></category>
		<category><![CDATA[Memcache Nginx]]></category>
		<category><![CDATA[Newbies]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx debian]]></category>
		<category><![CDATA[Nginx Debian Fpm]]></category>
		<category><![CDATA[Virtual Private Server]]></category>
		<category><![CDATA[Virtual Server]]></category>
		<category><![CDATA[Vps]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Xcache Nginx]]></category>

		<guid isPermaLink="false">http://ericmalloy.net/?p=31</guid>
		<description><![CDATA[this was the BEST guide i&#8217;ve found EVER for setting up nginx with FCGI, postfix, wordpress, rewrites, and securing your installation&#8230;. it was also based on an install for a linode slice&#8230; ( i also use linode )
thanks a lot to guvnr he really put a lot of work into this&#8230;
great thorough tutorial
 Set Up [...]]]></description>
			<content:encoded><![CDATA[<p>this was the BEST guide i&#8217;ve found EVER for setting up nginx with FCGI, postfix, wordpress, rewrites, and securing your installation&#8230;. it was also based on an install for a linode slice&#8230; ( i also use <a href="http://linode.com" target="_blank">linode )</a></p>
<p>thanks a lot to guvnr he really put a lot of work into this&#8230;</p>
<p>great thorough tutorial</p>
<h2 id="topH2"><a href="http://www.guvnr.com/web/web-dev/vps-virtual-private-server-vs-shared-vs-dedicated/" target="_blank"> Set Up Unmanaged VPS (4 Newbies) &#8211; Part 1: VPS (Virtual Private Server) vs Shared vs Dedicated</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://blog.ericmalloy.net/2009/06/setup-an-unmanaged-vps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

