<?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>Johnathan Kong</title>
	<atom:link href="http://www.johnathankong.ca/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnathankong.ca</link>
	<description></description>
	<lastBuildDate>Sat, 28 May 2011 16:01:23 +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>Mark files as ignored</title>
		<link>http://www.johnathankong.ca/2011/05/28/mark-files-as-ignored/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/mark-files-as-ignored/#comments</comments>
		<pubDate>Sat, 28 May 2011 16:01:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=137</guid>
		<description><![CDATA[To mark files as ignore when doing a git add, create a .gitignore file in the directory and add the files that you want to be ignored. 1 echo &#34;&#60;files&#62;&#34; &#62; .gitignore]]></description>
			<content:encoded><![CDATA[<p>To mark files as ignore when doing a git add, create a .gitignore file in the directory and add the files that you want to be ignored.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="" style="font-family:monospace;">echo &quot;&lt;files&gt;&quot; &gt; .gitignore</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/mark-files-as-ignored/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install a LAMP development on Ubuntu</title>
		<link>http://www.johnathankong.ca/2011/05/28/install-a-lamp-development-on-ubuntu/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/install-a-lamp-development-on-ubuntu/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:59:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=134</guid>
		<description><![CDATA[1 sudo apt-get install lamp-server^]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="" style="font-family:monospace;">sudo apt-get install lamp-server^</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/install-a-lamp-development-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change host name of server</title>
		<link>http://www.johnathankong.ca/2011/05/28/change-host-name-of-server/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/change-host-name-of-server/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:58:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=131</guid>
		<description><![CDATA[how to change the host name of an ubuntu server 1 2 3 echo &#34;&#60;name&#62;&#34; &#62; /etc/hostname hostname -F /etc/hostname vi /etc/hosts &#40;add hostname to 127.0.0.1&#41; If you are running on a linode server, you will have to edit your /etc/default/dhcpcd and comment out the SET_HOSTNAME=&#8217;yes&#8217;]]></description>
			<content:encoded><![CDATA[<p>how to change the host name of an ubuntu server</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="" style="font-family:monospace;">echo &quot;&lt;name&gt;&quot; &gt; /etc/hostname
hostname -F /etc/hostname
vi /etc/hosts <span class="br0">&#40;</span>add hostname to 127.0.0.1<span class="br0">&#41;</span></pre></td></tr></table></div>

<p>If you are running on a linode server, you will have to edit your /etc/default/dhcpcd and comment out the SET_HOSTNAME=&#8217;yes&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/change-host-name-of-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a User</title>
		<link>http://www.johnathankong.ca/2011/05/28/adding-a-user/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/adding-a-user/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:55:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=127</guid>
		<description><![CDATA[Add a user using the gitosis 1 2 3 4 get user to create a public key &#40;ssh-keygen -t rsa &#40;cmd works in the git bash for windows&#41;&#41; copy key do gitosis-admin/keydir rename key to username add user to gitosis under the proper groups]]></description>
			<content:encoded><![CDATA[<p>Add a user using the gitosis</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="" style="font-family:monospace;">get user to create a public key <span class="br0">&#40;</span>ssh-keygen -t rsa <span class="br0">&#40;</span>cmd works in the git bash for windows<span class="br0">&#41;</span><span class="br0">&#41;</span>
copy key do gitosis-admin/keydir
rename key to username
add user to gitosis under the proper groups</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/adding-a-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a repo</title>
		<link>http://www.johnathankong.ca/2011/05/28/creating-a-repo/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/creating-a-repo/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:52:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=124</guid>
		<description><![CDATA[How to create a repo from any server. Before this step, you will have to edit your gitosis file to ensure that this repo exists in the &#8220;writable&#8221; and the user has permissions (put is name in the &#8220;members&#8221;). 1 2 3 4 5 6 7 8 Create a repo directory if you don't have [...]]]></description>
			<content:encoded><![CDATA[<p>How to create a repo from any server. Before this step, you will have to edit your gitosis file to ensure that this repo exists in the &#8220;writable&#8221; and the user has permissions (put is name in the &#8220;members&#8221;).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="" style="font-family:monospace;">Create a repo directory if you don't have one already
Change to the directory
git init
git remote add origin git@&lt;your server&gt;:&lt;your repo&gt;.git
add/edit the files
git add *
git commit -m &quot;&lt;message&gt;&quot;
git push origin master</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/creating-a-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing gitosis.conf</title>
		<link>http://www.johnathankong.ca/2011/05/28/editing-gitosis-conf/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/editing-gitosis-conf/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:45:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=119</guid>
		<description><![CDATA[This file is really easy to do, but I just wanted to have a reference as to the layout of the file 1 2 3 &#91;group &#60;group name&#62;&#93; members = &#60;members that have access. These are the names of your public key files &#40;.pub&#41;&#62; writable = &#60;repos that are part of the group that the [...]]]></description>
			<content:encoded><![CDATA[<p>This file is really easy to do, but I just wanted to have a reference as to the layout of the file</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="" style="font-family:monospace;"><span class="br0">&#91;</span>group &lt;group name&gt;<span class="br0">&#93;</span>
members = &lt;members that have access. These are the names of your public key files <span class="br0">&#40;</span>.pub<span class="br0">&#41;</span>&gt;
writable = &lt;repos that are part of the group that the members have access to&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/editing-gitosis-conf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git and Gitosis Quick Setup guide</title>
		<link>http://www.johnathankong.ca/2011/05/28/git-and-gitosis-quick-setup-guide/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/git-and-gitosis-quick-setup-guide/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:42:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=115</guid>
		<description><![CDATA[Had a hell of a time getting this to work. Here are my exact deployment steps to get git up and running. 1 2 3 4 5 6 7 8 9 10 apt-get install git-core apt-get install gitosis sudo adduser git sudo mkdir /home/git/.ssh sudo chown -R git:git /home/git/.ssh sudo chmod 700 !$ ssh-keygen -t [...]]]></description>
			<content:encoded><![CDATA[<p>Had a hell of a time getting this to work. Here are my exact deployment steps to get git up and running.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="" style="font-family:monospace;">apt-get install git-core
apt-get install gitosis
sudo adduser git
sudo mkdir /home/git/.ssh
sudo chown -R git:git /home/git/.ssh
sudo chmod <span style="">700</span> !$
ssh-keygen -t rsa
cp ~/.ssh/id_rsa.pub /tmp/my_key.pub
sudo -H -u git gitosis-init &lt; /tmp/my_key.pub
git clone git@localhost:gitosis-admin.git</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/git-and-gitosis-quick-setup-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove a staged file during a creation of a new repo</title>
		<link>http://www.johnathankong.ca/2011/05/28/remove-a-staged-file-during-a-creation-of-a-new-repo/</link>
		<comments>http://www.johnathankong.ca/2011/05/28/remove-a-staged-file-during-a-creation-of-a-new-repo/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:38:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=111</guid>
		<description><![CDATA[1 git rm --cached &#91;filename&#93;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="" style="font-family:monospace;">git rm --cached <span class="br0">&#91;</span>filename<span class="br0">&#93;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/05/28/remove-a-staged-file-during-a-creation-of-a-new-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset identity</title>
		<link>http://www.johnathankong.ca/2011/04/17/reset-identity/</link>
		<comments>http://www.johnathankong.ca/2011/04/17/reset-identity/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 02:31:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=107</guid>
		<description><![CDATA[1 ALTER TABLE tablename AUTO_INCREMENT = 1]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> tablename <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span> <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/04/17/reset-identity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import CSV into table</title>
		<link>http://www.johnathankong.ca/2011/04/17/import-csv-into-table/</link>
		<comments>http://www.johnathankong.ca/2011/04/17/import-csv-into-table/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 02:30:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.johnathankong.ca/?p=105</guid>
		<description><![CDATA[The easiest way that I&#8217;ve found to import a csv file into a table is to create a table that has the exact columns as the file, then run the following command: 1 2 3 4 LOAD DATA LOCAL INFILE '&#60;full path with file name&#62;' INTO TABLE import FIELDS TERMINATED BY ',' ENCLOSED BY '&#34;' [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest way that I&#8217;ve found to import a csv file into a table is to create a table that has the exact columns as the file, then run the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">LOCAL</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'&lt;full path with file name&gt;'</span> 
<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> import 
<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span>
<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.johnathankong.ca/2011/04/17/import-csv-into-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

