<?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>Geek Essential</title>
	<atom:link href="http://www.geekessential.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekessential.com</link>
	<description>Objectively finite, subjectively infinite.</description>
	<lastBuildDate>Mon, 26 Mar 2012 15:32:33 +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>search and prod gzip and tar file</title>
		<link>http://www.geekessential.com/blog/2012/03/search-and-prod-gzip-and-tar-file/</link>
		<comments>http://www.geekessential.com/blog/2012/03/search-and-prod-gzip-and-tar-file/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 15:31:27 +0000</pubDate>
		<dc:creator>beany137</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.geekessential.com/?p=190</guid>
		<description><![CDATA[I have few gzip files in my system, but they were zipped in the first place for a reason and I don't want to unzip to see the content of the file. So what to do? Just run the command below to see the content of the gzipped file. gzip -cd &#60;file&#62; &#124; more Please [...]]]></description>
			<content:encoded><![CDATA[<p>I have few gzip files in my system, but they were zipped in the first place for a reason and I don't want to unzip to see the content of the file. So what to do? Just run the command below to see the content of the gzipped file.</p>
<pre>gzip -cd &lt;file&gt; | more</pre>
<p>Please note that this is only likely to work when there is only one file in the archive. When there are more than one, then only the first file is displayed and the rest of the files are likely skipped. In which case, following should work.</p>
<pre>tar -tvf file_name</pre>
<p>Similarly, if there are tar or tar.gz files, following holds true.</p>
<h3>Task: List the contents of a tar file</h3>
<p>Use the following command:<br />
<code>$ tar -tvf file.tar</code></p>
<h3>Task: List the contents of a tar.gz file</h3>
<p>Use the following command:<br />
<code>$ tar -ztvf file.tar.gz</code></p>
<h3>Task: List the contents of a tar.bz2 file</h3>
<p>Use the following command:<br />
<code>$ tar -jtvf file.tar.bz2</code></p>
<p>Where,</p>
<ul>
<li><strong>t</strong>: List the contents of an archive</li>
<li><strong>v</strong>: Verbosely list files processed (display detailed information)</li>
<li><strong>z</strong>: Filter the archive through gzip so that we can open compressed (decompress) .gz tar file</li>
<li><strong>j</strong>: Filter archive through bzip2, use to decompress .bz2 files.</li>
<li><strong>f filename</strong>: Use archive file called filename</li>
</ul>
<p>Source: <a href="http://www.cyberciti.biz/faq/list-the-contents-of-a-tar-or-targz-file/">http://www.cyberciti.biz/faq/list-the-contents-of-a-tar-or-targz-file/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekessential.com/blog/2012/03/search-and-prod-gzip-and-tar-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scp, another way to copy&#8230;</title>
		<link>http://www.geekessential.com/blog/2011/08/scp-another-way-to-copy/</link>
		<comments>http://www.geekessential.com/blog/2011/08/scp-another-way-to-copy/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 18:29:14 +0000</pubDate>
		<dc:creator>beany137</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.geekessential.com/?p=171</guid>
		<description><![CDATA[This is somewhat obvious, but when moving files from a server to a server, security should be one concern. So you use scp. It's a simple copy tool that uses SSH to transfer data between two computers. Simply, it works similarly the way that cp works, except that you need to indicate login credential and [...]]]></description>
			<content:encoded><![CDATA[<p>This is somewhat obvious, but when moving files from a server to a server, security should be one concern. So you use scp. It's a simple copy tool that uses SSH to transfer data between two computers.</p>
<p>Simply, it works similarly the way that cp works, except that you need to indicate login credential and remote server name.</p>
<p>So to copy files from remote server to current server, a syntax would look something like ...</p>
<pre>#scp remote_user@remote_server:/remote/directory/some_file /local/directory/</pre>
<p>And to copy files from local to remote, it would look like ....</p>
<pre>#scp /local/directory/somefile remote_user@remote_server:/remote/directory/</pre>
<p>You can also use options like -r to copy directories as well.</p>
<pre>#scp -r remote_user@remote_server:/remote/directory /local/directory</pre>
<p>There are other options you can easily find from man pages...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekessential.com/blog/2011/08/scp-another-way-to-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>moving an entire mysql database&#8230;</title>
		<link>http://www.geekessential.com/blog/2011/08/moving-an-entire-mysql-database/</link>
		<comments>http://www.geekessential.com/blog/2011/08/moving-an-entire-mysql-database/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 15:56:05 +0000</pubDate>
		<dc:creator>beany137</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.geekessential.com/?p=167</guid>
		<description><![CDATA[There comes a time when it is necessary to move servers... and it's related services and databases... it was time for me to move onto bigger and better ... server that is. Over the years, we have tried out and customized few things within the web server which ended up getting big ... in the [...]]]></description>
			<content:encoded><![CDATA[<p>There comes a time when it is necessary to move servers... and it's related services and databases... it was time for me to move onto bigger and better ... server that is. Over the years, we have tried out and customized few things within the web server which ended up getting big ... in the process mysql database also gotten bit big... so to migrate from one to the other... I had to use the dumpmysql but standard usage of mysql dump resulted in whole bunch of errors including errorno: 24  which was result of large database.</p>
<p>But this can be avoided by using the flag –lock-tables=false into the command line.</p>
<pre>$mysqldump --opt -u [user.ID] -p -A --lock-tables=false &gt; [dump.filename]</pre>
<p>After that, it was easy as just moving file from one server to another using any secure method you like and using following command to restore it on to the new server...</p>
<pre>mysql -u root -p[root_password] [database_name] &lt; dumpfilename.sql</pre>
<p>Note: if no database exist in your new server [database_name] can be omitted.</p>
<p>And that's it, your new database is all new and shiny...</p>
<p>Reference: <a href="http://jamielesouef.com/linux/tip-backing-up-a-large-mysql-database-errno-24/">http://jamielesouef.com/linux/tip-backing-up-a-large-mysql-database-errno-24/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekessential.com/blog/2011/08/moving-an-entire-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>quick rsync how to&#8230;</title>
		<link>http://www.geekessential.com/blog/2011/08/quick-rsync-how-to/</link>
		<comments>http://www.geekessential.com/blog/2011/08/quick-rsync-how-to/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 13:42:18 +0000</pubDate>
		<dc:creator>beany137</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.geekessential.com/?p=158</guid>
		<description><![CDATA[Working in Linux servers sometimes makes it inevitable to use rsync to move and synchronize files from one server to another. This is where rsync excels as it does not only moving of files but also incremental synchronization between two servers. It's also great tool to backup files to a remote server when used in conjunction with [...]]]></description>
			<content:encoded><![CDATA[<p>Working in Linux servers sometimes makes it inevitable to use rsync to move and synchronize files from one server to another. This is where rsync excels as it does not only moving of files but also incremental synchronization between two servers. It's also great tool to backup files to a remote server when used in conjunction with cron to automate it. Most new installation may not have it installed on their boxes, in debian it is as easy as typing</p>
<pre>apt-get install rsync</pre>
<p>to install the latest version.</p>
<p>Once installed you'll need two servers to properly test it. First of all, as you are accessing other server you will need an account on all servers. Also, since rsync doesn't have secure transfer by default, make sure to install open-ssh on both servers to transfer files securely.</p>
<h2>Some common options are:</h2>
<ul>
<li><strong>--delete</strong> : delete files that don't exist on sender (system) (Use with caution!!!)</li>
<li><strong>-v</strong> : Verbose (try <strong>-vv</strong> for more detailed information)</li>
<li><strong>-e "ssh options"</strong> : specify the ssh as remote shell</li>
<li><strong>-a</strong> : archive mode</li>
<li><strong>-r</strong> : recurse into directories</li>
<li><strong>-z</strong> : compress file data</li>
<li><strong>progress</strong>: will show the percentage of the file copied</li>
</ul>
<h2>Example commands:</h2>
<p><strong>Copy files from local server to remote server</strong></p>
<pre>$ rsync -v -e ssh /[local folder]/[local file] [remote.user]@[remote.server]:~</pre>
<div>note: ~ indicates home directory of [remote.user]</div>
<p><strong>Copy files from remote server to local server</strong></p>
<pre>$ rsync -v -e ssh [remote.user]@[remote.server]:~/[remote.file] /[local.folder]</pre>
<p><strong>Synchronize directories from local server to remote server</strong></p>
<pre>$ rsync -r -a -v -e "ssh -l [remote.user]" [remote.server]:/[remote.directory]/ /[local]/[directory]</pre>
<p><strong>Synchronize directories from remote server to local server</strong></p>
<pre>$ rsync -r -a -v -e "ssh -l [remote.user]" [remote.server]:/[remote.directory] /[local]/[directory]</pre>
<p>There other features such as <a title="Excluding Files during rsync" href="http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/">excluding files</a> while syncing and mirroring folders. Also, this process can be easier if <a title="password less authentication with rsync" href="http://www.linux.com/learn/tutorials/271175-get-to-know-rsync" target="_blank">password less authentication</a> is set up between two servers. However, most of the basic use is covered above.</p>
<div><strong>References</strong>:</div>
<div><a href="http://www.cyberciti.biz/tips/linux-use-rsync-transfer-mirror-files-directories.html">http://www.cyberciti.biz/tips/linux-use-rsync-transfer-mirror-files-directories.html</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.geekessential.com/blog/2011/08/quick-rsync-how-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need to rename files in Windows?</title>
		<link>http://www.geekessential.com/blog/2011/06/need-to-rename-files-in-windows/</link>
		<comments>http://www.geekessential.com/blog/2011/06/need-to-rename-files-in-windows/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 16:03:49 +0000</pubDate>
		<dc:creator>beany137</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.geekessential.com/?p=149</guid>
		<description><![CDATA[Unlike some people, I like to collect. End result is whole slew of files and data that needs organizing. But when you try to use the default batch rename option in Windows7 or any other windows or DOS, it becomes really painfully tedious. Things like photos or series of files are common things that needs [...]]]></description>
			<content:encoded><![CDATA[<p>Unlike some people, I like to collect. End result is whole slew of files and data that needs organizing. But when you try to use the default batch rename option in Windows7 or any other windows or DOS, it becomes really painfully tedious. Things like photos or series of files are common things that needs renaming. So what do you do?</p>
<p>Then comes <a href="http://www.den4b.com" target="_blank">Denis Kozlov</a> and his nifty <a href="http://www.den4b.com/?x=downloads" target="_blank">renamer</a>.</p>
<p>This thing just puts all those years of trying to learn regular expression into shame. <img src='http://www.geekessential.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There are many applications that he had created as a Hobby, which also deserves a mentions are as follows.</p>
<ul>
<li><strong>Shutter</strong>: Shutter is a multifunctional shutdown utility, which has a user friendly and easy-to-use interface and supports many different Events and Actions. Events: Countdown, On Time, Winamp Stops, Low CPU Usage, User Inactive, Battery Low, Window Closes, Process Stops, Ping Stops, File Size Limit. Actions: Shutdown, Reboot, LogOff, Lock Workstation, Sleep, Hibernate, Monitor Turn Off, Mute/UnMute Master Volume, Hang Up, Alarm.</li>
<li><strong>CPUMon</strong>: CPUMon is a simple little gadget to monitor <abbr title="Central Processing Unit">CPU</abbr> performance from your desktop. It displays a real-time graph of CPU performance as well as current usage indicator. The display supports custom colors, alpha-blending, user defined update rates and more. Some of the features: transparency, alpha-blending, customizable colors, layout presets, form locking, constantly updated CPU speed for mobile processors, tray icon mode, statistics, memory usage, and much more.</li>
<li><strong>Hasher</strong>: Program emerged as a result of a BackUp Utility project break-up. Basic idea for this part of the project is to calculate hash/checksum for a file. Has a simple interface for comparing Hashes of two files dropped to the form sequentially, and it also can calculate a Hash for a string.</li>
<li><strong>Hooker</strong>: Lightweight keyboard spy. Some of the features: stealth mode, log encryption, capturing of clipboard changes and currently used process, log viewer. Public version has several limitations: program shows itself when started; stealth mode is deactivated when hot key is pressed (without password prompt).</li>
<li>Colors: Color picker that helps users easily select a desired color using various pallets. It is able to pick color from the currently displayed screen content and supports a number of different color models, i.e. <abbr title="Red, Green, Blue">RGB</abbr>, <abbr title="Hue, Saturation, Value">HSV</abbr>, <abbr title="Hue, Lightness, Saturation">HLS</abbr>, <abbr title="Cyan, Magenta, Yellow, Key">CMYK</abbr>.</li>
<li><strong>Scripter</strong>: Script execution tool based on Pascal programming language. Contains wide range of built-in functions to simplify automation of common tasks. Supports command-line execution of scripts.</li>
<li><strong>RandPass</strong>: Random password generator. Simple tool for generating random passwords based on specified character set with customizable output format.</li>
</ul>
<p>All of the applications are available to be downloaded from his website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekessential.com/blog/2011/06/need-to-rename-files-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

