<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd">

<channel>
	<title>The Codebelay Blog &#187; command-line</title>
	<atom:link href="http://www.codebelay.com/blog/category/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codebelay.com/blog</link>
	<description>Safely Reach New Tech Heights Through Our Startup Insights</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:12:53 +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>What You Missed At WordCamp LA</title>
		<link>http://www.codebelay.com/blog/2010/09/13/what-you-missed-at-wordcamp-la/</link>
		<comments>http://www.codebelay.com/blog/2010/09/13/what-you-missed-at-wordcamp-la/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 08:33:57 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=925</guid>
		<description><![CDATA[Here&#8217;s what you missed: Installing nginx with php-fpm with varnish on the front end will make your WordPress install fly 50 times faster. If you&#8217;re using apt-get, you can just use: apt-get install php-fpm Or try this guide on how-to forge. Here&#8217;s the install process I used using PHP 5.3.3 on OS X: sudo ./configure [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s what you missed:</p>
<p>Installing nginx with php-fpm with varnish on the front end will make your WordPress install fly 50 times faster.</p>
<p>If you&#8217;re using apt-get, you can just use:<br />
apt-get install php-fpm<br />
Or <a href="http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian">try this guide</a> on how-to forge.<br />
Here&#8217;s the install process I used using PHP 5.3.3 on OS X:</p>
<div style="padding: 5px 5px 5px 5px; color: #fff; background: #000; font-family: Courier;">
<pre style="background: #000; color: #fff;">
sudo ./configure --prefix=/usr/local --enable-fpm \
  --with-fpm-user=daemon --with-fpm-group=daemon \
  --with-mcrypt --with-mysql=/usr/local/mysql --with-zlib \
  --enable-mbstring --disable-pdo --with-curl --disable-debug \
  --disable-rpath --enable-inline-optimization --with-bz2
  --with-zlib --enable-sockets --enable-sysvsem \
  --enable-sysvshm --enable-pcntl --enable-mbregex \
  --with-mhash --enable-zip --with-pcre-regex \
  --with-iconv=shared,/usr
make &#038;&#038; make install
cp sapi/fpm/php-fpm.conf /usr/local/etc/php-fpm.conf
# edit php-fpm.conf with the right paths
cp sapi/fpm/php-fpm /usr/local/sbin/php-fpm
cp init.d.php-fpm /etc/init.d/php-fpm
/etc/init.d/php-fpm start
</pre>
</div>
<p>If you get an error message it&#8217;s probably because you didn&#8217;t go through the config to set things up.</p>
<p>The next part is nginx.</p>
<div style="padding: 5px 5px 5px 5px; color: #fff; background: #000; font-family: Courier;">
<pre style="background: #000; color: #fff;">
./configure --prefix=/usr/local/nginx &#038;&#038; make &#038;&#038; make install
</pre>
</div>
<p>My conf/nginx.con looks like <a href="http://www.codebelay.com/nginx.conf.txt">this</a>. My sites-enabled/default.conf looks like <a href="http://www.codebelay.com/default.conf.txt">this</a>. My conf/fastcgi_params file is <a href="http://www.codebelay.com/fastcgi_params.txt">here</a>.</p>
<p>I just start nginx with /usr/local/nginx/sbin/nginx and I&#8217;m good to go.</p>
<p>The quote that stuck with me the most was what <a href="http://twitter.com/JoshHighland">Josh Highland</a> said about caching:</p>
<p>&#8220;You should use WordPress Cache Plugins. It&#8217;s like printing money. It&#8217;s free!&#8221;</p>
<p>For adding your own contact form, I learned about <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a>. You can ditch WuFoo if you have this configured on your WordPress.</p>
<p>There&#8217;s also <a href="http://wordpress.org/extend/plugins/pods/">Pods</a>, which is like contact-form-7 except it&#8217;s a whole framework for creating your own content types and making them show up where you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/09/13/what-you-missed-at-wordcamp-la/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commands I Use Frequently</title>
		<link>http://www.codebelay.com/blog/2010/08/26/commands-i-use-frequently/</link>
		<comments>http://www.codebelay.com/blog/2010/08/26/commands-i-use-frequently/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 04:33:44 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=894</guid>
		<description><![CDATA[Here&#8217;s a list of commands I use frequently, where the first number represents the number of times I used that command today: 86 git &#8211; the best version control software ever 59 cd &#8211; used to change directories on the command-line 54 ls &#8211; used to list files in a directory 41 vim &#8211; when [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s a list of commands I use frequently, where the first number represents the number of times I used that command today:</p>
<p>86	git &#8211; the best version control software ever<br />
59   cd &#8211; used to change directories on the command-line<br />
54	ls &#8211; used to list files in a directory<br />
41	vim &#8211; when textmate just isn&#8217;t fast enough for moving and manipulating text I use this text editor<br />
24	grep &#8211; this is great for searching through code<br />
21	sudo &#8211; I use this for stopping and starting servers and anything that requires super user access</p>
<p>I figured this out by using the following:</p>
<div style="padding: 5px 5px 5px 5px; background: #000; color: #fff">
history | cut -c8-20 | sort > commands.txt
</div>
<p>I created the following script in Perl:</p>
<div style="padding: 5px 5px 5px 5px; background: #000; color: #fff">
#!/usr/bin/env perl</p>
<p>use strict;<br />
use warnings;</p>
<p>my %h_list = ();<br />
my @sorted = ();<br />
my @listed = ();</p>
<p>open(LS, &#8220;commands.txt&#8221;);<br />
while(<LS>) {<br />
  if ($_ =~ /(\w+)/) {<br />
    $h_list{$1}++;<br />
  }<br />
}</p>
<p>close(LS);</p>
<p>foreach my $key (keys %h_list)<br />
{<br />
  push @listed, $h_list{$key} . &#8220;\t&#8221; . $key;<br />
}</p>
<p>@sorted = sort { $b <=> $a } @listed;<br />
foreach (@sorted)<br />
{<br />
  print $_ . &#8220;\n&#8221;;<br />
}</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/08/26/commands-i-use-frequently/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Script For Rails on Debian</title>
		<link>http://www.codebelay.com/blog/2010/02/20/install-script-for-rails-on-debian/</link>
		<comments>http://www.codebelay.com/blog/2010/02/20/install-script-for-rails-on-debian/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 22:11:46 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=744</guid>
		<description><![CDATA[The following works great on Rackspace&#8217;s Debian Virtual Servers and within 5 minutes you got a running rails instance. #!/bin/bash apt-get update -y apt-get upgrade -y apt-get install dlocate -y apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev -y apt-get install sqlite3 -y cd /usr/local/src wget ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz tar zxvf stable-snapshot.tar.gz cd ruby ./configure &#038;&#038; make &#038;&#038; make [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The following works great on Rackspace&#8217;s Debian Virtual Servers and within 5 minutes you got a running rails instance.</p>
<div style="color: #fff; background:#000; padding: 5px">
#!/bin/bash</p>
<p>apt-get update -y<br />
apt-get upgrade -y<br />
apt-get install dlocate -y<br />
apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev -y<br />
apt-get install sqlite3 -y<br />
cd /usr/local/src<br />
wget ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz<br />
tar zxvf stable-snapshot.tar.gz<br />
cd ruby<br />
./configure &#038;&#038; make &#038;&#038; make install<br />
ruby -v<br />
ruby -ropenssl -rzlib -rreadline -e &#8220;puts :Hello&#8221;<br />
cd /usr/local/src<br />
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz<br />
tar zxvf rubygems-1.3.5.tgz<br />
cd rubygems-1.3.5<br />
ruby setup.rb<br />
gem install rails<br />
apt-get install mysql-server mysql-client -y<br />
apt-get install libmysql-ruby libmysqlclient15-dev  -y<br />
gem install mysql &#8212; &#8211;with-mysql-include=/usr/include &#8211;with-mysql-lib=/usr/lib<br />
gem install mongrel &#8211;include-dependencies<br />
apt-get install git -y
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2010/02/20/install-script-for-rails-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git: How to Cherry Pick Commits and Package them Under a Tag</title>
		<link>http://www.codebelay.com/blog/2009/07/08/git-how-to-cherry-pick-commits-and-package-them-under-a-tag/</link>
		<comments>http://www.codebelay.com/blog/2009/07/08/git-how-to-cherry-pick-commits-and-package-them-under-a-tag/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 06:03:21 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=603</guid>
		<description><![CDATA[I&#8217;ve pretty much come to rely on git to pull me out of any bad jams in the chaotic environment I work in. One thing I&#8217;ve had to learn to do is cherry pick commits and package them under a tag in git. Here&#8217;s how to do it if you were working with my newLISP [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve pretty much come to rely on git to pull me out of any bad jams in the chaotic environment I work in.</p>
<p>One thing I&#8217;ve had to learn to do is cherry pick commits and package them under a tag in git.</p>
<p>Here&#8217;s how to do it if you were working with my newLISP project called Sitebeagle:</p>
<p>fork sitebeagle on <a href="http://github.com/barce/sitebeagle/tree/master" target="_blank">this page</a></p>
<p>cd sitebeagle</p>
<p>git fetch &#8211;tags</p>
<p>git checkout 8f5bb33a771f7811d21b8c96cec67c28818de076</p>
<p>git checkout -b sample_cherry_pick</p>
<p>git cherry-pick 22aab7</p>
<p>git cherry-pick b1334775</p>
<p>git diff sample_cherry_pick..master</p>
<p>git tag leaving_out_one_commit</p>
<p>git push origin &#8211;tags</p>
<p>At this point, you should have a tagged branch that doesn&#8217;t have the commit with the change to the &#8220;2nd file.&#8221; The diff should look exactly like this:</p>
<p>diff &#8211;git a/test.lsp b/test.lsp<br />
index 9cf1667..158b625 100755<br />
&#8212; a/test.lsp<br />
+++ b/test.lsp<br />
@@ -1,6 +1,7 @@<br />
 #!/usr/bin/newlisp</p>
<p> ; test tag test_a<br />
+; cherry pick test 2</p>
<p> (load &#8220;sitebeagle.lsp&#8221;)<br />
 (load &#8220;twitter.lsp&#8221;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/07/08/git-how-to-cherry-pick-commits-and-package-them-under-a-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doing Sysadmin on the iPhone</title>
		<link>http://www.codebelay.com/blog/2009/03/28/doing-sysadmin-on-the-iphone/</link>
		<comments>http://www.codebelay.com/blog/2009/03/28/doing-sysadmin-on-the-iphone/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 00:09:27 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[alertsite]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iSSH]]></category>
		<category><![CDATA[sitebeagle]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=527</guid>
		<description><![CDATA[For checking up on sites in the enterprise, I use Alertsite. It was suggested to me by a VP I work with at McCann, Ed Recinto. It&#8217;s been a great tool. For personal websites that I manage, I&#8217;ve been using something I rolled in newLISP, sitebeagle. Why? Because beagles are great watchdogs. Very often, most [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>For checking up on sites in the enterprise, I use <a href="http://www.alertsite.com/">Alertsite</a>. It was suggested to me by a VP I work with at McCann, Ed Recinto. It&#8217;s been a great tool.</p>
<p>For personal websites that I manage, I&#8217;ve been using something I rolled in newLISP, <a href="http://github.com/barce/sitebeagle/tree/master">sitebeagle</a>. Why? Because beagles are great watchdogs.</p>
<p>Very often, most problems can be solved with tweaking code, changing permissions, or upgrading and  apache or mysql.</p>
<p>Very often, it&#8217;s the weekend, I&#8217;m sitting in a cafe, and get an alert from Nagios or Alertsite. With <a href="http://www.zinger-soft.com/iSSH_features.html">iSSH</a>, on the iPhone, I can ssh into a LAMP server and do the work I need.</p>
<p>I can see things getting a bit more complex. What tools do you use to sysadmin from an iPhone?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/03/28/doing-sysadmin-on-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oddments: A Great Blog For Keeping Up With Drizzle and Gearman</title>
		<link>http://www.codebelay.com/blog/2009/02/26/oddments-a-great-blog-for-keeping-up-with-drizzle-and-gearman/</link>
		<comments>http://www.codebelay.com/blog/2009/02/26/oddments-a-great-blog-for-keeping-up-with-drizzle-and-gearman/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 06:39:58 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[scalability hacking]]></category>
		<category><![CDATA[alan kasindorf]]></category>
		<category><![CDATA[drizzle]]></category>
		<category><![CDATA[eric day]]></category>
		<category><![CDATA[gearman]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=521</guid>
		<description><![CDATA[Alan Kasindorf just introduced me to a great blog by Eric Day, Oddments. If you are into learning about alternatives to MySQL like Drizzle, or how to scale writes to a database using Gearman, then I wholeheartedly recommend his blog. I really like the samples of code he puts up that acts as a very [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://dormando.livejournal.com/">Alan Kasindorf</a> just introduced me to a great blog by Eric Day, <a href="http://www.oddments.org/">Oddments</a>.</p>
<p>If you are into learning about alternatives to MySQL like <a href="http://en.wikipedia.org/wiki/Drizzle_(database_server)">Drizzle</a>, or how to scale writes to a database using <a href="http://www.danga.com/gearman/">Gearman</a>, then I wholeheartedly recommend his blog.</p>
<p>I really like the samples of code he puts up that acts as a very useful, and direct tutorial to new technologies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/02/26/oddments-a-great-blog-for-keeping-up-with-drizzle-and-gearman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up a newLISP Webserver</title>
		<link>http://www.codebelay.com/blog/2009/01/22/setting-up-a-newlisp-webserver/</link>
		<comments>http://www.codebelay.com/blog/2009/01/22/setting-up-a-newlisp-webserver/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 07:45:53 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[backdoor]]></category>
		<category><![CDATA[distributed computing]]></category>
		<category><![CDATA[newlisp]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=499</guid>
		<description><![CDATA[How fast can you get on the web? With newLISP it&#8217;s about as fast as typing: newlisp -http -d 8080 -w /usr/home/www/httpdocs &#038; How fast can you create a backdoor with newLISP? newlisp -p 1234 &#038; If you telnet into port 1234 in localhost, you&#8217;ll see something that looks like this: Trying 127.0.0.1&#8230; Connected to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>How fast can you get on the web? With <a href="http://newlisp.org/">newLISP</a> it&#8217;s about as fast as typing:</p>
<div style="color: #fff; background: #000; padding: 5px;">
newlisp -http -d 8080 -w /usr/home/www/httpdocs &#038;
</div>
<p>How fast can you create a backdoor with newLISP?</p>
<div style="color: #fff; background: #000; padding: 5px;">
newlisp -p 1234 &#038;
</div>
<p>If you telnet into port 1234 in localhost, you&#8217;ll see something that looks like this:</p>
<div style="color: #fff; background: #000; padding: 5px;">
<p>Trying 127.0.0.1&#8230;<br />
Connected to localhost.<br />
Escape character is &#8216;^]&#8217;.<br />
newLISP v.10.0.0 on OSX IPv4 UTF-8.</p>
<p>></p>
</div>
<p>This opens up a lot of possibilities for distributed computing.</p>
<p>For example, you can set up a newLISP server that&#8217;s ready to respond to a newLISP client with this command:</p>
<div style="color: #fff; background: #000; padding: 5px;">
newlisp -c -d 1234
</div>
<p>Your newLISP client can have code that sends a computing problem to be solved to the server:</p>
<div style="color: #fff; background: #000; padding: 5px;">
(net-eval &#8220;localhost&#8221; 1234 &#8220;(+ 3 4)&#8221; 1000)
</div>
<p>Or let&#8217;s say you had a farm of newLISP servers:</p>
<div style="color: #fff; background: #000; padding: 5px;">
#!/usr/bin/newlisp</p>
<p>    (set &#8216;result (net-eval &#8216;(<br />
        (&#8220;192.168.1.100&#8243; 4711 {(+ 3 4)})<br />
        (&#8220;192.168.1.101&#8243; 4711 {(+ 5 6)})<br />
        (&#8220;192.168.1.102&#8243; 4711 {(+ 7 8)})<br />
        (&#8220;192.168.1.103&#8243; 4711 {(+ 9 10)})<br />
        (&#8220;192.168.1.104&#8243; 4711 {(+ 11 12)})<br />
    ) 1000))</p>
<p>    (println &#8220;result: &#8221; result)</p>
<p>    (exit)
</p></div>
<p>If the above example reminds you of <a href="http://www.danga.com/gearman/">Gearman</a>, you get +12 points.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/01/22/setting-up-a-newlisp-webserver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Infamous Zed Shaw Declares ACL Is Dead</title>
		<link>http://www.codebelay.com/blog/2009/01/22/the-infamous-zed-shaw-declares-acl-is-dead/</link>
		<comments>http://www.codebelay.com/blog/2009/01/22/the-infamous-zed-shaw-declares-acl-is-dead/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 16:39:16 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[acl is dead]]></category>
		<category><![CDATA[factor]]></category>
		<category><![CDATA[turing complete]]></category>
		<category><![CDATA[zed shaw]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=497</guid>
		<description><![CDATA[If you work with ACL, this may be the most important video you watch ever. Zed shows how ACL is not Turing complete, which explains all the problems you&#8217;ve been having with control lists. Zed Shaw &#8211; The ACL is Dead from CUSEC on Vimeo.]]></description>
			<content:encoded><![CDATA[<p></p><p>If you work with ACL, this may be the most important video you watch ever. Zed shows how ACL is not Turing complete, which explains all the problems you&#8217;ve been having with control lists.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2723800&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2723800&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/">Zed Shaw &#8211; The ACL is Dead</a> from <a href="http://vimeo.com/cusec">CUSEC</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/01/22/the-infamous-zed-shaw-declares-acl-is-dead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up An EC2 LAMP Server</title>
		<link>http://www.codebelay.com/blog/2009/01/20/setting-up-an-ec2-lamp-server/</link>
		<comments>http://www.codebelay.com/blog/2009/01/20/setting-up-an-ec2-lamp-server/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 18:12:39 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[TechBiz]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=489</guid>
		<description><![CDATA[Pre-requisites: An EC2 account. Click on the sign-up for ec2 button. Some version of *nix. Download the ec2 tools. Generated an ec2 keypair. Now we&#8217;re ready to build an EC2 LAMP Server. cd .ec2 You&#8217;ll find that a lot of ec2 stuff happens in the .ec2 directory. To list the possible servers that you can [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Pre-requisites:</p>
<ul>
<li>An EC2 account. <a href="http://aws.amazon.com/ec2/">Click on the sign-up for ec2 button</a>.</li>
<li>Some version of *nix.</li>
<li><a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351">Download</a> the ec2 tools.</li>
<li>Generated an ec2 keypair.
</ul>
<p>Now we&#8217;re ready to build an EC2 LAMP Server.</p>
<div style="background: #000; color: #fff; padding: 5px;">
cd .ec2
</div>
<p>You&#8217;ll find that a lot of ec2 stuff happens in the .ec2 directory.</p>
<p>To list the possible servers that you can set up run:</p>
<div style="background: #000; color: #fff; padding: 5px;">
ec2-describe-images -a
</div>
<p>I ran</p>
<div style="background: #000; color: #fff; padding: 5px;">
ec2-describe-images -a | wc -l
</div>
<p>and got 1477 possible servers. Some are Windows.</p>
<p>Let&#8217;s say we see this listing:</p>
<div style="background: #000; color: #fff; padding: 5px;">
IMAGE   ami-1539dc7c    level22-ec2-images/ubuntu-8.04-hardy-20080205a.manifest.xml
</div>
<p>If we want to start up the ubuntu server listed above we just type:</p>
<div style="background: #000; color: #fff; padding: 5px;">
ec2-run-instances ami-5647a33f -k ec2-keypair
</div>
<p>And then we run this command:</p>
<div style="background: #000; color: #fff; padding: 5px;">
ec2-describe-instances
</div>
<p>We should see either &#8220;pending&#8221; or the actual instance running with its FQDN listed in the 4th column. An example FQDN is this:</p>
<p>ec2-173-33-159-95.compute-1.amazonaws.com</p>
<p>And if we go to:<br />
<a href="http://ec2-173-33-159-95.compute-1.amazonaws.com/<br />
">http://ec2-173-33-159-95.compute-1.amazonaws.com/</a></p>
<p>we should see a webserver.</p>
<p>And if we ssh:</p>
<div style="background: #000; color: #fff; padding: 5px;">
ssh -i ec2-keypair ec2-173-33-159-95.compute-1.amazonaws.com
</div>
<p>we&#8217;ll get the root prompt:<br />
#~</p>
<p>That&#8217;s basically it. Now you can go in and mess around with server settings.</p>
<p>In the next blog post, we&#8217;ll look at how to save your custom server settings and set up using S3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/01/20/setting-up-an-ec2-lamp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apps That Seem to Crash WoW on OS X 10.5.5</title>
		<link>http://www.codebelay.com/blog/2008/12/14/apps-that-seem-to-crash-wow-on-os-x-1055/</link>
		<comments>http://www.codebelay.com/blog/2008/12/14/apps-that-seem-to-crash-wow-on-os-x-1055/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 22:08:05 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[crashing]]></category>
		<category><![CDATA[warcraft]]></category>
		<category><![CDATA[wow]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=413</guid>
		<description><![CDATA[I wrote this quick script to take care of apps that seem to Crash OS X 10.5.5 on my Macbook Pro. I have just 1GiB of RAM instead of the recommended 2GiB, but ever since killing the processes in the script below, I haven&#8217;t had a crash. The bad guys are: Google Updater Cross Over [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I wrote this quick script to take care of apps that seem to Crash OS X 10.5.5 on my Macbook Pro. I have just 1GiB of RAM instead of the recommended 2GiB, but ever since killing the processes in the script below, I haven&#8217;t had a crash.</p>
<p>The bad guys are:</p>
<ul>
<li>Google Updater</li>
<li>Cross Over</li>
<li>HPEventHandler</li>
<li>HP IO Classic Proxy</li>
<li>HP IO Classic Proxy 2</li>
</ul>
<p>I killed privoxy in my script below just to get more memory to run Warcraft.</p>
<div style="color: #fff; background: #000; padding: 5px;">
#!/bin/bash</p>
<p>C1=`ps ax | grep Cross | grep -v grep | cut -c3-6`<br />
echo &#8220;C1: $C1&#8243;<br />
kill -9 $C1<br />
C1=`ps ax | grep &#8220;Google Updater&#8221; | grep -v grep | cut -c3-6`<br />
echo &#8220;C1: $C1&#8243;<br />
kill -9 $C1<br />
C1=`ps ax | grep &#8220;HPEventHandler&#8221; | grep -v grep | cut -c3-6`<br />
echo &#8220;C1: $C1&#8243;<br />
kill -9 $C1<br />
C1=`ps ax | grep &#8220;HP IO Classic Proxy 2&#8243; | grep -v grep | cut -c3-6`<br />
echo &#8220;C1: $C1&#8243;<br />
kill -9 $C1<br />
C1=`ps ax | grep &#8220;HP IO Classic Proxy \-&#8221; | grep -v grep | cut -c3-6`<br />
echo &#8220;C1: $C1&#8243;<br />
kill -9 $C1<br />
C1=`ps ax | grep &#8220;privoxy&#8221; | grep -v grep | cut -c3-6`<br />
echo &#8220;C1: $C1&#8243;<br />
kill -9 $C1
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/12/14/apps-that-seem-to-crash-wow-on-os-x-1055/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.864 seconds -->

