<?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>mavRIK ™</title>
	<atom:link href="http://troymccall.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://troymccall.com</link>
	<description>a killer, no filler</description>
	<lastBuildDate>Thu, 17 Dec 2009 02:14:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Vim me now (edit files via SSH) so I can FTP</title>
		<link>http://troymccall.com/2009/12/vim-me-now-edit-files-via-ssh-so-i-can-ftp/</link>
		<comments>http://troymccall.com/2009/12/vim-me-now-edit-files-via-ssh-so-i-can-ftp/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 22:55:13 +0000</pubDate>
		<dc:creator>tm</dc:creator>
				<category><![CDATA[snippets]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://troymccall.com/?p=43</guid>
		<description><![CDATA[I recently have been migrating my hosting accounts from mediatemple [they suck, no link] to slicehost [http://www.slicehost.com] . Slicehost sets you up with any linux distro you want and you handle the rest. In other words, I don&#8217;t know what the hell I&#8217;m doing. I&#8217;m not used to having to manage packages, etc. And I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>I recently have been migrating my hosting accounts from mediatemple [they suck, no link] to slicehost [<a href="http://www.slicehost.com">http://www.slicehost.com</a>] . Slicehost sets you up with any linux distro you want and you handle the rest. </p>
<p>In other words, I don&#8217;t know what the hell I&#8217;m doing. I&#8217;m not used to having to manage packages, etc. And I&#8217;ve found myself constantly having to rebuild my 8.04 VM. All you got is SSH, who ya gonna call?</p>
<p>The goal here is to FTP so open Terminal or Putty [<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a>]<br />
and <code><strong> ssh root@ipaddress</strong></code></p>
<p>We need to install an FTP Service</p>
<pre>
<code> sudo apt-get install vsftpd </code></pre>
<p>Now we want to make some changes to the FTP config</p>
<p>If you&#8217;re running Windows you&#8217;re going to need Cygwin [<a href="http://www.cygwin.com/setup.exe">http://www.cygwin.com/setup.exe</a>]</p>
<p>install Vim [<a href="http://www.vim.org/download.php#pc">http://www.vim.org/download.php#pc</a>]  or MacVim [<a href="http://code.google.com/p/macvim/">http://code.google.com/p/macvim/</a>] </p>
<p>now open Vim (not gVim)</p>
<pre>
<code>:e scp://root@ipaddress//etc/vsftpd.conf</code></pre>
<p>now we can configure the FTP settings inside Vim</p>
<p>The Vim command for inserting text is <code><strong>i</strong></code><br />
<br />
Turn anonymous access off (if you want)</p>
<pre><code>anonymous_enable=NO</code></pre>
<p>uncomment these lines so you can log in with server account</p>
<pre><code>#local_enable=YES</code>
<code>#write_enable=YES</code></pre>
<p>Hit the escape key to exit out of insert mode in Vim<br />
then type <code><strong>:wq</strong></code> to save and close Vim</p>
<p>go back to Terminal or Putty and start the FTP service </p>
<pre><code>sudo /etc/init.d/vsftpd start </code></pre>
<p>You&#8217;re done!</p>
<p>Kinda</p>
]]></content:encoded>
			<wfw:commentRss>http://troymccall.com/2009/12/vim-me-now-edit-files-via-ssh-so-i-can-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Binary Outbreak</title>
		<link>http://troymccall.com/2009/10/binary-outbreak/</link>
		<comments>http://troymccall.com/2009/10/binary-outbreak/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 09:24:57 +0000</pubDate>
		<dc:creator>tm</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[lastfm]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://troymccall.com/?p=14</guid>
		<description><![CDATA[I haven&#8217;t updated in forever. 1st things 1st: I&#8217;m in the process of making the nerd(gasm) switch from eMacs to Vim. [see: http://code.google.com/p/macvim/] Vim is O RLY? scary, even as an experienced eMacs user. I&#8217;ll put documentation in my docs section with hints and tricks that I&#8217;ve learned over the next few weeks. You IDE [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t updated in forever. </p>
<p>1st things 1st: I&#8217;m in the process of making the nerd(gasm) switch from eMacs to Vim.<br />
[see: <a href="http://code.google.com/p/macvim/">http://code.google.com/p/macvim/</a>]</p>
<p>Vim is <em><strong>O RLY? </strong></em>scary, even as an experienced eMacs user. I&#8217;ll put documentation in my docs section with hints and tricks that I&#8217;ve learned over the next few weeks. You IDE kiddies can put up or shut up. </p>
<p>2ndly: Dropbox [see: <a href="http://www.getdropbox.com">http://www.getdropbox.com</a>] is the best thing to happen to me since bit-torrents. Everyone can use it. Backup your important files online, sync files across multiple computers, and even access them online (and a effing public folder)!</p>
<p>3rd: Last.fm [see: <a href="http://www.last.fm/user/troyxmccall">http://www.last.fm/user/troyxmccall</a>] is the greatest social music site. Bump Pandora, join this, download the scrobbler and add me. Now.</p>
]]></content:encoded>
			<wfw:commentRss>http://troymccall.com/2009/10/binary-outbreak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean up your windows servers</title>
		<link>http://troymccall.com/2009/10/clean-up-your-windows-servers/</link>
		<comments>http://troymccall.com/2009/10/clean-up-your-windows-servers/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 02:54:18 +0000</pubDate>
		<dc:creator>tm</dc:creator>
				<category><![CDATA[snippets]]></category>
		<category><![CDATA[delete old files]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://troymccall.com/?p=3</guid>
		<description><![CDATA[Wrote a little VB script this AM. Try it if you like. Set a batch script to run it once a week. Set fso = CreateObject("Scripting.FileSystemObject") 'root folder you want to delete from BE CAREFUL Set f = fso.GetFolder("E:\foldername") Set colSubFolders = f.SubFolders For Each objFolder in colSubFolders ShowFiles objFolder Next Sub ShowFiles(Fld) Set k [...]]]></description>
			<content:encoded><![CDATA[<p>Wrote a little VB script this AM. Try it if you like. Set a batch script to run it once a week.</p>
<pre>
<code>
Set fso = CreateObject("Scripting.FileSystemObject")
'root folder you want to delete from BE CAREFUL
Set f = fso.GetFolder("E:\foldername")
Set colSubFolders = f.SubFolders

For Each objFolder in colSubFolders
ShowFiles objFolder
Next

Sub ShowFiles(Fld)
Set k = fso.GetFolder(Fld)
Set s = k.SubFolders
Set kf = k.Files

For Each objFile In kf
'delete files older than a year
If objFile.DateLastModified &amp;lt; date - 365 Then
WScript.Echo objFile &amp;amp; " " &amp;amp; objFile.DateLastModified
fso.Deletefile(objFile)
End If

Next

For Each SubFolder In s
ShowFiles SubFolder
Next
End Sub
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://troymccall.com/2009/10/clean-up-your-windows-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
