<?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>kubicle</title>
	<atom:link href="http://www.kubicle.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kubicle.com</link>
	<description></description>
	<lastBuildDate>Mon, 24 Oct 2011 13:36:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>vimrc setting for Python</title>
		<link>http://www.kubicle.com/archives/vimrc-setting-for-python/</link>
		<comments>http://www.kubicle.com/archives/vimrc-setting-for-python/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 13:35:49 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=479</guid>
		<description><![CDATA[
&#34; configure expanding of tabs for various file types
au BufRead,BufNewFile *.py set expandtab
au BufRead,BufNewFile Makefile* set noexpandtab

&#34; --------------------------------------------------------------------------------
&#34; configure editor with tabs and nice stuff...
&#34; --------------------------------------------------------------------------------
set expandtab           &#34; enter spaces when tab is pressed
set textwidth=120       &#34; break lines when [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/vimrc-setting-for-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schedule cronjob every second time it runs</title>
		<link>http://www.kubicle.com/archives/schedule-cronjob-every-second-time-it-runs/</link>
		<comments>http://www.kubicle.com/archives/schedule-cronjob-every-second-time-it-runs/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 15:00:49 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux cronjob]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=475</guid>
		<description><![CDATA[I needed a way to run a cronjob every other Saturday.  You could alter this for other scenarios as long as you set the correct schedule in your crontab.
0 3 * * 6 /root/scripts/MYSCRIPT.sh
The first time cron runs, it should detect that no file is present (in this case &#8220;/tmp/cron_control&#8221;), which in turn creates [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/schedule-cronjob-every-second-time-it-runs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git command</title>
		<link>http://www.kubicle.com/archives/git-command/</link>
		<comments>http://www.kubicle.com/archives/git-command/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 17:31:29 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=468</guid>
		<description><![CDATA[Track remote branch
bash# git fetch
bash# git branch --track previously_created_branch origin/previously_created_branch
]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/git-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to backup all MySQL databases using Python</title>
		<link>http://www.kubicle.com/archives/how-to-backup-all-mysql-databases-using-python/</link>
		<comments>http://www.kubicle.com/archives/how-to-backup-all-mysql-databases-using-python/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 20:21:31 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python mysql]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=456</guid>
		<description><![CDATA[
#!/usr/bin/env python
import ConfigParser
import os
import time

username = &#039;dbuser&#039;
password = &#039;dbpassword&#039;
hostname = &#039;localhost&#039;

filestamp = time.strftime(&#039;%Y-%m-%d&#039;)

# Get a list of databases with :
database_list_command=&#34;mysql -u%s -p%s -h %s --silent -N -e &#039;show databases&#039;&#34; % (username, password, hostname)
for database in os.popen(database_list_command).readlines():
    database = database.strip()

    if database == &#039;information_schema&#039;:
       [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/how-to-backup-all-mysql-databases-using-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How we use Puppet to inventory our servers.</title>
		<link>http://www.kubicle.com/archives/how-we-use-puppet-to-inventory-our-servers/</link>
		<comments>http://www.kubicle.com/archives/how-we-use-puppet-to-inventory-our-servers/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 18:02:50 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=409</guid>
		<description><![CDATA[I think every sysadmin can relate to this, you&#8217;re in the kitchen getting a cup of coffee and your boss happens to walk in.  You spend a couple of minutes having small talk but as soon as you&#8217;re done he drops the bomb.  &#8220;Hey, could you send me a list of all the [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/how-we-use-puppet-to-inventory-our-servers/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>exec of init (/sbin/init) failed</title>
		<link>http://www.kubicle.com/archives/exec-of-init-sbininit-failed/</link>
		<comments>http://www.kubicle.com/archives/exec-of-init-sbininit-failed/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 18:44:36 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=393</guid>
		<description><![CDATA[One fine day I get an email from an engineer.  Apparently he removed glibc, no idea what he was doing but I was asked to somehow rebuild the box and preserve data.  The problem was, we weren&#8217;t able to log into the system.  Single user mode didn&#8217;t work either so now I&#8217;m [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/exec-of-init-sbininit-failed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to modify and repackage an RPM</title>
		<link>http://www.kubicle.com/archives/how-to-modify-and-repackage-an-rpm/</link>
		<comments>http://www.kubicle.com/archives/how-to-modify-and-repackage-an-rpm/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 16:16:21 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=383</guid>
		<description><![CDATA[Having to install any software and then configuring it so that it fits into your environment can be a pain in the butt. Especially if you have to roll it out to hundreds of servers.  One such software is nagios&#8217; nrpe client. After every install, I had to modify the nrpe.conf file to allow [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/how-to-modify-and-repackage-an-rpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using tcpdump</title>
		<link>http://www.kubicle.com/archives/using-tcpdump/</link>
		<comments>http://www.kubicle.com/archives/using-tcpdump/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 18:13:38 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tcpdump]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=374</guid>
		<description><![CDATA[To view incoming and outgoing packets on port 80
tcpdump -i eth0 tcp port 80
To view outbound traffic over port 80
tcpdump -i eth1 tcp dst port 80 and src host 192.168.0.10
To suppress verbose output, you just want to view source/destination
tcpdump -q -i eth1 tcp dst port 80 and src host 192.168.0.10
]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/using-tcpdump/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Large file transfer using netcat</title>
		<link>http://www.kubicle.com/archives/large-file-transfer-using-netcat/</link>
		<comments>http://www.kubicle.com/archives/large-file-transfer-using-netcat/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 20:44:52 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netcat]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=367</guid>
		<description><![CDATA[I didn&#8217;t feel like setting up a NFS share and ftp access within the organization is just plain stupid if you ask me. scp is cool but also lots of overhead.
netcat is the shit.
client -> serverA
target -> serverB
On my client (where I want to send files from), I connect to serverB via port 11223

tar -cz [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/large-file-transfer-using-netcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS and browser detection with javascript</title>
		<link>http://www.kubicle.com/archives/os-and-browser-detection-with-javascript/</link>
		<comments>http://www.kubicle.com/archives/os-and-browser-detection-with-javascript/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:03:47 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript css]]></category>

		<guid isPermaLink="false">http://www.kubicle.com/?p=357</guid>
		<description><![CDATA[
var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) &#124;&#124; &#34;An unknown browser&#34;;
		this.version = this.searchVersion(navigator.userAgent)
			&#124;&#124; this.searchVersion(navigator.appVersion)
			&#124;&#124; &#34;an unknown version&#34;;
		this.OS = this.searchString(this.dataOS) &#124;&#124; &#34;an unknown OS&#34;;
	},
	searchString: function (data) {
		for (var i=0;i&#60;data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch &#124;&#124; data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if [...]]]></description>
		<wfw:commentRss>http://www.kubicle.com/archives/os-and-browser-detection-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

