<?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>terminal &#8211; Accidents Happen</title>
	<atom:link href="https://ah.thameera.com/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>https://ah.thameera.com</link>
	<description>In the dark</description>
	<lastBuildDate>Wed, 11 Oct 2017 15:49:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">56521109</site>	<item>
		<title>Splitting a text file into two</title>
		<link>https://ah.thameera.com/splitting-a-text-file-into-two/</link>
					<comments>https://ah.thameera.com/splitting-a-text-file-into-two/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Wed, 11 Oct 2017 15:49:35 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=592</guid>

					<description><![CDATA[Today I was trying to open a text file with a Node.js script and failed, apparently because it exceeded Node&#8217;s maximum buffer size. The most straight-forward solution was to split the file in half and open the two new files separately. How do you split a text file by two, though? With a quick hack [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Today I was trying to open a text file with a Node.js script and failed, apparently because it exceeded Node&#8217;s maximum buffer size. The most straight-forward solution was to split the file in half and open the two new files separately.</p>
<p>How do you split a text file by two, though? With a quick hack using <code>head</code> and <code>tail</code> of course.</p>
<blockquote><p>
<code>head -n 1000 input-file &gt; output1<br />
tail -n +1001 input-file &gt; output2</code>
</p></blockquote>
<p>The <code>+</code> in the <code>tail</code> command tells it to count lines from the top, instead of from the bottom which is the usual case of <code>tail</code>.</p>
<p>Source: <a href="https://unix.stackexchange.com/questions/163399/split-a-file-into-two">unix.stackexchange</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/splitting-a-text-file-into-two/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">592</post-id>	</item>
		<item>
		<title>Installing rupa/z</title>
		<link>https://ah.thameera.com/installing-rupaz/</link>
					<comments>https://ah.thameera.com/installing-rupaz/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Sat, 26 Oct 2013 03:44:10 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[utils]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=489</guid>

					<description><![CDATA[z is a command-line tool that would make jumping around your favorite directories much, much faster. It sits in the background and monitors where you cd to often, like a creep. 😯 And whenever you need to change to that ~/pictures/lol/cats directory, all you have to type in is z cats and you&#8217;ll be there. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="https://github.com/rupa/z"><code>z</code></a> is a command-line tool that would make jumping around your favorite directories much, much faster. It sits in the background and monitors where you <code>cd</code> to often, like a creep.   <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f62f.png" alt="😯" class="wp-smiley" style="height: 1em; max-height: 1em;" />  And whenever you need to change to that <code>~/pictures/lol/cats</code> directory, all you have to type in is <code>z cats</code> and you&#8217;ll be there. How it achieves this feat is by overriding the default <code>cd</code>&#8216;s functionality with a custom shell function. Bad, bad z.  <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f608.png" alt="😈" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>
<p>Install <a href="https://github.com/rupa/z">rupa/z</a> somewhere in your <code>$PATH</code>, say <code>~/bin</code>.</p>
<blockquote><p><code>cd ~/bin<br />
curl -O https://raw.githubusercontent.com/rupa/z/master/z.sh<br />
chmod +x z.sh<br />
source z.sh</code></p></blockquote>
<p>You might get a &#8216;no such file or directory&#8217; error the first time, just ignore that. <code>z</code> works in both bash and zsh. You might need to add the <code>source ~/bin/z.sh</code> line in your <code>.bashrc</code> or <code>.zshrc</code> so it starts up with your shell session.</p>
<p><strong>Update:</strong></p>
<p>Optionally, you can install the z man page as well. Jump to a directory in your MANPATH (you can find these using the command <code>man -w</code>) and download the man file.</p>
<blockquote><p><code>cd /usr/local/man/man1<br />
sudo curl -O https://raw.githubusercontent.com/rupa/z/master/z.1</code></p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/installing-rupaz/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">489</post-id>	</item>
		<item>
		<title>Chocolatey brings package management to Windows</title>
		<link>https://ah.thameera.com/chocolatey-brings-package-management-to-windows/</link>
					<comments>https://ah.thameera.com/chocolatey-brings-package-management-to-windows/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Thu, 13 Sep 2012 16:15:59 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chocolatey]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://noisythameera.wordpress.com/?p=90</guid>

					<description><![CDATA[Chocolatey is the topic in the town these days. When it comes to installing software, Windows is far behind most Linux distributions. Chocolatey is a package manager like apt-get on Debian and Ubuntu. Install it by entering the command @powershell -NoProfile -ExecutionPolicy unrestricted -Command &#8220;iex ((new-object net.webclient).DownloadString(&#8216;http://bit.ly/psChocInstall&#8217;))&#8221; &#38;&#38; SET PATH=%PATH%;%systemdrive%chocolateybin (yes, in a Windows command [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://chocolatey.org/" target="_blank">Chocolatey</a> is the topic in the town these days. When it comes to installing software, Windows is far behind most Linux distributions. Chocolatey is a package manager like <em>apt-get</em> on Debian and Ubuntu. Install it by entering the command</p>
<blockquote><p>@powershell -NoProfile -ExecutionPolicy unrestricted -Command &#8220;iex ((new-object net.webclient).DownloadString(&#8216;http://bit.ly/psChocInstall&#8217;))&#8221; &amp;&amp; SET PATH=%PATH%;%systemdrive%chocolateybin </p></blockquote>
<p>(yes, in a Windows command prompt) and you&#8217;re good to go. The list of available packages can be found <a href="http://chocolatey.org/packages" target="_blank">here</a>. There&#8217;s no huge list of apps like in <em>apt-get</em> as yet though. If you want to install, say, <a href="http://www.ultrapico.com/Expresso.htm" target="_blank">expresso</a>, just type </p>
<pre>cinst expresso</pre>
<p>in the command prompt. It&#8217;s said Chocolatey works in Cygwin as well, but I&#8217;m yet to try that out.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/chocolatey-brings-package-management-to-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">90</post-id>	</item>
	</channel>
</rss>
