<?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>Atrixnet Code Share and Geek Resources</title>
	<atom:link href="http://www.atrixnet.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.atrixnet.com</link>
	<description>Can you grok it?</description>
	<lastBuildDate>Wed, 31 Mar 2010 23:19:39 +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>Get remote user agent in your Catalyst App</title>
		<link>http://www.atrixnet.com/get-remote-user-agent-in-your-catalyst-app/</link>
		<comments>http://www.atrixnet.com/get-remote-user-agent-in-your-catalyst-app/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 23:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.atrixnet.com/?p=149</guid>
		<description><![CDATA[$c->request->headers->user_agent
]]></description>
			<content:encoded><![CDATA[<pre lang="perl">$c->request->headers->user_agent</perl>
]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/get-remote-user-agent-in-your-catalyst-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Truncate a table with DBIC (DBIx::Class) in your Catalyst app</title>
		<link>http://www.atrixnet.com/truncate-a-table-with-dbic-dbixclass-in-your-catalyst-app/</link>
		<comments>http://www.atrixnet.com/truncate-a-table-with-dbic-dbixclass-in-your-catalyst-app/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 19:44:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[dbic]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.atrixnet.com/?p=145</guid>
		<description><![CDATA[
$c-&#62;model&#40;'DB'&#41;-&#62;storage-&#62;dbh-&#62;do&#40;'truncate table some_table'&#41;;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #0000ff;">$c</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">model</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'DB'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">storage</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">dbh</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">do</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'truncate table some_table'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/truncate-a-table-with-dbic-dbixclass-in-your-catalyst-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The coveted .bashrc of Tommy Butler</title>
		<link>http://www.atrixnet.com/the-coveted-bashrc-of-tommy-butler/</link>
		<comments>http://www.atrixnet.com/the-coveted-bashrc-of-tommy-butler/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 11:35:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configs]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=109</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export PS1=&#34;\n[\[\e[1;37m\]\u\[\e[0m\]@\[\e[1;34m\]\H\[\e[0m\]] [\[\e[1;33m\]\d, \t\[\e[0m\]] [\[\e[1;31m\]\!\[\e[0m\]]\n\[\e[1;31m\]\[\e[0m\][\[\e[1;37m\]\w\[\e[0m\]]\n\[\e[1;37m\]\\$\[\e[0m\] &#34;
export HISTTIMEFORMAT='%F %T '
export HISTCONTROL=ignoredups
export HISTCONTROL=ignoreboth
export HISTIGNORE='pwd:ls:history:'
eval `dircolors`
alias ls='ls --color=auto'
alias dir='ls --color=auto --format=vertical'
alias ll='ls -Al'
alias la='ls -A'
alias lh='ls -Alh'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias dateclip='date&#124;xsel --clipboard'
alias tsclip='echo -n &#34;$(date +%Y-%m-%d-%H.%M.%S)&#34;&#124;xsel --clipboard'
alias tstmp='date +%Y-%m-%d-%H.%M.%S'
alias cryptclip=&#34;xsel&#124;gpg -ear ace@tommybutler.me&#124;xsel --clipboard&#34;
alias putclip=&#34;xsel --clipboard&#34;
alias getclip=&#34;xsel&#34;
alias procstat=&#34;ps -e -o pcpu,pid,cpu,nice,state,cputime,args --sort -pcpu &#124; sed '/^ [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>[\[\e[1;37m\]\u\[\e[0m\]@\[\e[1;34m\]\H\[\e[0m\]] [\[\e[1;33m\]\d, <span style="color: #000099; font-weight: bold;">\t</span>\[\e[0m\]] [\[\e[1;31m\]\!\[\e[0m\]]<span style="color: #000099; font-weight: bold;">\n</span>\[\e[1;31m\]\[\e[0m\][\[\e[1;37m\]\w\[\e[0m\]]<span style="color: #000099; font-weight: bold;">\n</span>\[\e[1;37m\]\<span style="color: #000099; font-weight: bold;">\$</span>\[\e[0m\] &quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTTIMEFORMAT</span>=<span style="color: #ff0000;">'%F %T '</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTCONTROL</span>=ignoredups
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTCONTROL</span>=ignoreboth
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTIGNORE</span>=<span style="color: #ff0000;">'pwd:ls:history:'</span>
<span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dircolors</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ls</span></span>=<span style="color: #ff0000;">'ls --color=auto'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">dir</span></span>=<span style="color: #ff0000;">'ls --color=auto --format=vertical'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll</span>=<span style="color: #ff0000;">'ls -Al'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">la</span>=<span style="color: #ff0000;">'ls -A'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">lh</span>=<span style="color: #ff0000;">'ls -Alh'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">grep</span></span>=<span style="color: #ff0000;">'grep --color=auto'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">fgrep</span></span>=<span style="color: #ff0000;">'fgrep --color=auto'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">egrep</span></span>=<span style="color: #ff0000;">'egrep --color=auto'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">dateclip</span>=<span style="color: #ff0000;">'date|xsel --clipboard'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">tsclip</span>=<span style="color: #ff0000;">'echo -n &quot;$(date +%Y-%m-%d-%H.%M.%S)&quot;|xsel --clipboard'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">tstmp</span>=<span style="color: #ff0000;">'date +%Y-%m-%d-%H.%M.%S'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">cryptclip</span>=<span style="color: #ff0000;">&quot;xsel|gpg -ear ace@tommybutler.me|xsel --clipboard&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">putclip</span>=<span style="color: #ff0000;">&quot;xsel --clipboard&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">getclip</span>=<span style="color: #ff0000;">&quot;xsel&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">procstat</span>=<span style="color: #ff0000;">&quot;ps -e -o pcpu,pid,cpu,nice,state,cputime,args --sort -pcpu | sed '/^ 0.0 /d'&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">wylie</span>=<span style="color: #ff0000;">'l=20; x=1300; y=100; d=-5;for i in `seq $x $d $y`; do beep -l $l -f $i; done'</span>
beepwhenup <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Enter host you want to ping:'</span>; <span style="color: #c20cb9; font-weight: bold;">read</span> PHOST; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$PHOST</span>&quot;</span> == <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">exit</span>; <span style="color: #000000; font-weight: bold;">fi</span>; <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #660033;">-c1</span> <span style="color: #660033;">-W2</span> <span style="color: #007800;">$PHOST</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$?&quot;</span> == <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">for</span> j <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">1</span> <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span> beep; <span style="color: #000000; font-weight: bold;">done</span>; <span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #660033;">-c1</span> <span style="color: #007800;">$PHOST</span>; <span style="color: #7a0874; font-weight: bold;">break</span>; <span style="color: #000000; font-weight: bold;">fi</span>; <span style="color: #000000; font-weight: bold;">done</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">shopt</span> <span style="color: #660033;">-s</span> checkwinsize
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #800000;">${PATH}</span>:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>tommy<span style="color: #000000; font-weight: bold;">/</span>android-sdk-linux_86<span style="color: #000000; font-weight: bold;">/</span>tools
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">vimclean</span>=<span style="color: #ff0000;">&quot;find . -iname '*sw[po]' -print -delete&quot;</span>
howmuchmem <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #007800;">PROCNAME</span>=<span style="color: #ff0000;">&quot;$@&quot;</span>; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$PROCNAME</span> IS USING $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;scale=4; (<span style="color: #007800;">$(ps axo rss,comm|grep $PROCNAME| awk '{ TOTAL += $1 } END { print TOTAL }')</span>/<span style="color: #007800;">$(free | head -n 2 | tail -n 1 | awk '{ print $2 }')</span>)*100&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">bc</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">%</span> of system RAM; <span style="color: #7a0874; font-weight: bold;">&#125;</span>;</pre></td></tr></table></div>

<p><em>updated Fri Mar 12 07:35:22 CST 2010</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/the-coveted-bashrc-of-tommy-butler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove the first N characters from each line of output (bash)</title>
		<link>http://www.atrixnet.com/remove-the-first-n-characters-from-each-line-of-output-bash/</link>
		<comments>http://www.atrixnet.com/remove-the-first-n-characters-from-each-line-of-output-bash/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 13:56:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[one-liners]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=104</guid>
		<description><![CDATA[If you want to remove the first, let&#8217;s say, 27 characters from each line of output, you would:

$ some command&#124;sed 's/^.\{27\}//'

]]></description>
			<content:encoded><![CDATA[<p>If you want to remove the first, let&#8217;s say, 27 characters from each line of output, you would:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ some <span style="color: #7a0874; font-weight: bold;">command</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/^.\{27\}//'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/remove-the-first-n-characters-from-each-line-of-output-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clone partition table from one hard drive to another (one step)</title>
		<link>http://www.atrixnet.com/clone-partition-table-from-one-hard-drive-to-another-one-step/</link>
		<comments>http://www.atrixnet.com/clone-partition-table-from-one-hard-drive-to-another-one-step/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 22:53:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[one-liners]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[sfdisk]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=100</guid>
		<description><![CDATA[
sfdisk /dev/sdb &#60;&#40;sfdisk -d /dev/sda&#124;perl -pi -e 's/sda/sdb/g'&#41;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sfdisk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>sfdisk <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-pi</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/sda/sdb/g'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/clone-partition-table-from-one-hard-drive-to-another-one-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Burn an ISO image to writable CD</title>
		<link>http://www.atrixnet.com/burn-an-iso-image-to-writable-cd/</link>
		<comments>http://www.atrixnet.com/burn-an-iso-image-to-writable-cd/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 04:51:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[cdrecord]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[wodim]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=96</guid>
		<description><![CDATA[
wodim cdimage.iso

Does life get much easier? Read up about wodim for an understanding of its origins in relation to the older `cdrecord` utility
]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wodim cdimage.iso</pre></div></div>

<p>Does life get much easier? Read up about wodim for an understanding of its origins in relation to the older `cdrecord` utility</p>
]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/burn-an-iso-image-to-writable-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>convert vdi to vmdk (virtualbox hard disk conversion to vmware hard disk format)</title>
		<link>http://www.atrixnet.com/convert-vdi-to-vmdk-virtualbox-hard-disk-conversion-to-vmware-hard-disk-format/</link>
		<comments>http://www.atrixnet.com/convert-vdi-to-vmdk-virtualbox-hard-disk-conversion-to-vmware-hard-disk-format/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 04:47:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[vboxmanage]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=93</guid>
		<description><![CDATA[Convert vdi to vmdk (virtualbox hard disk conversion to vmware hard disk format)

VBoxManage internalcommands converttoraw winxp.vdi winxp.raw &#38;&#38; qemu-img convert -O vmdk winxp.raw winxp.vmdk &#38;&#38; rm winxp.raw

Converts a .vdi file to a .vmdk file for use in a vmware virtual machine. The benefit: using this method actually works. There are others out there that claim [...]]]></description>
			<content:encoded><![CDATA[<p>Convert vdi to vmdk (virtualbox hard disk conversion to vmware hard disk format)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage internalcommands converttoraw winxp.vdi winxp.raw <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> qemu-img convert <span style="color: #660033;">-O</span> vmdk winxp.raw winxp.vmdk <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> winxp.raw</pre></div></div>

<p>Converts a .vdi file to a .vmdk file for use in a vmware virtual machine. The benefit: using this method actually works. There are others out there that claim to give you a working .vmdk by simply using the qemu-img command alone. Doing that only results in pain for you because the .vmdk file will be created with no errors, but it won&#8217;t boot either.</p>
<p>Be advised that these conversions are very disk-intensive by nature; you are probably dealing with disk images several gigabytes in size.</p>
<p>Once finished, the process of using the new .vmdk file is left as an exercise to the reader.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/convert-vdi-to-vmdk-virtualbox-hard-disk-conversion-to-vmware-hard-disk-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easiest commandline search and replace that I know</title>
		<link>http://www.atrixnet.com/easiest-command-line-search-and-replace-i-know/</link>
		<comments>http://www.atrixnet.com/easiest-command-line-search-and-replace-i-know/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 08:54:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[one-liners]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=63</guid>
		<description><![CDATA[
perl -pi -e 's/$findstr/$replacestr/g' file1 &#91;file2, file3...&#93;

It does not get much better than that.  You get the benefit of Perl&#8217;s superior regex engine (sed is nice but it just can&#8217;t compare), and oooooooo baby it&#8217;s fast!  Perl was made to process text!
]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-pi</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/$findstr/$replacestr/g'</span> file1 <span style="color: #7a0874; font-weight: bold;">&#91;</span>file2, file3...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>It does not get much better than that.  You get the benefit of Perl&#8217;s superior regex engine (sed is nice but it just can&#8217;t compare), and oooooooo baby it&#8217;s fast!  Perl was made to process text!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/easiest-command-line-search-and-replace-i-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The sacred .vimrc of Tommy Butler</title>
		<link>http://www.atrixnet.com/the-sacred-vimrc-of-tommy-butler/</link>
		<comments>http://www.atrixnet.com/the-sacred-vimrc-of-tommy-butler/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 08:50:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configs]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=61</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
:set nocompatible
:filetype plugin indent on
:syntax enable
:set background=dark
:set tabstop=3
:set shiftwidth=3
:set softtabstop=3
:set ignorecase
:set expandtab
:set modeline
:set ruler
:set showmatch
:set nohlsearch
:nnoremap &#60;f5&#62; :set invpaste paste?&#60;cr&#62;
:set pastetoggle=&#60;f5&#62;
:let perl_fold=1
:set foldmethod=syntax
:set cursorline
:set number
:set backspace=eol,indent,start
:autocmd BufWritePre * :%s/\s\+$//e
:autocmd BufReadPost * if line&#40;&#34;'\&#34;&#34;&#41; &#62; 0 &#38;&#38; line&#40;&#34;'\&#34;&#34;&#41; &#60;= line&#40;&#34;$&#34;&#41; &#124; exe &#34;normal g'\&#34;&#34; &#124; endif
&#160;
&#34; vim: set ft=vim :

- updated Fri Jan 15 05:26:47 CST [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #000000;">:</span>set nocompatible
<span style="color: #000000;">:</span>filetype plugin <span style="color: #25BB4D;">indent</span> on
<span style="color: #000000;">:</span>syntax enable
<span style="color: #000000;">:</span>set background=dark
<span style="color: #000000;">:</span>set tabstop=<span style="color: #000000; font-weight:bold;">3</span>
<span style="color: #000000;">:</span>set shiftwidth=<span style="color: #000000; font-weight:bold;">3</span>
<span style="color: #000000;">:</span>set softtabstop=<span style="color: #000000; font-weight:bold;">3</span>
<span style="color: #000000;">:</span>set ignorecase
<span style="color: #000000;">:</span>set expandtab
<span style="color: #000000;">:</span>set modeline
<span style="color: #000000;">:</span>set ruler
<span style="color: #000000;">:</span>set showmatch
<span style="color: #000000;">:</span>set nohlsearch
<span style="color: #000000;">:</span>nnoremap <span style="color: #000000;">&lt;</span>f5<span style="color: #000000;">&gt;</span> <span style="color: #000000;">:</span>set invpaste paste<span style="color: #000000;">?&lt;</span>cr<span style="color: #000000;">&gt;</span>
<span style="color: #000000;">:</span>set pastetoggle=<span style="color: #000000;">&lt;</span>f5<span style="color: #000000;">&gt;</span>
<span style="color: #000000;">:</span><span style="color: #804040;">let</span> perl_fold=<span style="color: #000000; font-weight:bold;">1</span>
<span style="color: #000000;">:</span>set foldmethod=syntax
<span style="color: #000000;">:</span>set cursorline
<span style="color: #000000;">:</span>set number
<span style="color: #000000;">:</span>set backspace=eol,<span style="color: #25BB4D;">indent</span>,start
<span style="color: #000000;">:</span><span style="color: #668080;">autocmd</span> BufWritePre <span style="color: #000000;">*</span> <span style="color: #000000;">:%</span>s<span style="color: #000000;">/</span>\s\<span style="color: #000000;">+$//</span>e
<span style="color: #000000;">:</span><span style="color: #668080;">autocmd</span> BufReadPost <span style="color: #000000;">*</span> <span style="color: #804040;">if</span> <span style="color: #25BB4D;">line</span><span style="color: #000000;">&#40;</span><span style="color: #C5A22D;">&quot;'<span style="">\&quot;</span>&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&gt;</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&amp;&amp;</span> <span style="color: #25BB4D;">line</span><span style="color: #000000;">&#40;</span><span style="color: #C5A22D;">&quot;'<span style="">\&quot;</span>&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&lt;</span>= <span style="color: #25BB4D;">line</span><span style="color: #000000;">&#40;</span><span style="color: #C5A22D;">&quot;$&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">|</span> <span style="color: #804040;">exe</span> <span style="color: #C5A22D;">&quot;normal g'<span style="">\&quot;</span>&quot;</span> <span style="color: #000000;">|</span> <span style="color: #804040;">endif</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">&quot; vim: set ft=vim :</span></pre></td></tr></table></div>

<p>- updated Fri Jan 15 05:26:47 CST 2010 (becuz it just keeps getting more and more awesome)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/the-sacred-vimrc-of-tommy-butler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup everything from your local GPG setup</title>
		<link>http://www.atrixnet.com/backup-everything-from-your-local-gpg-setup/</link>
		<comments>http://www.atrixnet.com/backup-everything-from-your-local-gpg-setup/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 08:43:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[gpg]]></category>

		<guid isPermaLink="false">http://atrixnet.com/?p=59</guid>
		<description><![CDATA[
1
2
3
gpg --export-options export-local-sigs,export-attributes,export-sensitive-revkeys --export-secret-keys --armor &#62; seckey.asc
gpg --export-options export-local-sigs,export-attributes,export-sensitive-revkeys --export --armor &#62; pubkey.asc
gpg --export-ownertrust --armor &#62; ownertrust.asc

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">gpg <span style="color: #660033;">--export-options</span> export-local-sigs,export-attributes,export-sensitive-revkeys <span style="color: #660033;">--export-secret-keys</span> <span style="color: #660033;">--armor</span> <span style="color: #000000; font-weight: bold;">&gt;</span> seckey.asc
gpg <span style="color: #660033;">--export-options</span> export-local-sigs,export-attributes,export-sensitive-revkeys <span style="color: #660033;">--export</span> <span style="color: #660033;">--armor</span> <span style="color: #000000; font-weight: bold;">&gt;</span> pubkey.asc
gpg <span style="color: #660033;">--export-ownertrust</span> <span style="color: #660033;">--armor</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ownertrust.asc</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.atrixnet.com/backup-everything-from-your-local-gpg-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
