<?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>sudo -s &#187; Linux</title>
	<atom:link href="http://sudoers.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://sudoers.org</link>
	<description>Got root?</description>
	<lastBuildDate>Mon, 08 Aug 2011 20:35:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Git configs</title>
		<link>http://sudoers.org/2011/08/git-configs/</link>
		<comments>http://sudoers.org/2011/08/git-configs/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 16:45:19 +0000</pubDate>
		<dc:creator>limed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://sudoers.org/?p=84</guid>
		<description><![CDATA[Because  I never seem to remember them Global git ignore My info Colorized outputs]]></description>
			<content:encoded><![CDATA[<p>Because  I never seem to remember them</p>
<p>Global git ignore</p>
<pre class="brush: plain; title: ; notranslate">
echo &quot;.DS_Store&quot; &gt;&gt; ~/.gitignore
git config --global core.excludesfile ~/.gitignore
</pre>
<p>My info</p>
<pre class="brush: plain; title: ; notranslate">
git config --global user.name &quot;Your Name Comes Here&quot;
git config --global user.email you@yourdomain.example.com
</pre>
<p>Colorized outputs</p>
<pre class="brush: plain; title: ; notranslate">
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sudoers.org/2011/08/git-configs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sudo while in vim</title>
		<link>http://sudoers.org/2011/07/sudo-while-in-vim/</link>
		<comments>http://sudoers.org/2011/07/sudo-while-in-vim/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 11:05:37 +0000</pubDate>
		<dc:creator>limed</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sudoers.org/?p=40</guid>
		<description><![CDATA[Ever had a time when you opened a file in vim and edited a bunch of stuff without realizing that its read-only, well this solves you from exiting out of the file and reopening the file with sudo]]></description>
			<content:encoded><![CDATA[<p>Ever had a time when you opened a file in vim and edited a bunch of stuff without realizing that its read-only, well this solves you from exiting out of the file and reopening the file with sudo</p>
<pre class="brush: plain; pad-line-numbers: true; title: ; notranslate">:w !sudo tee %</pre>
]]></content:encoded>
			<wfw:commentRss>http://sudoers.org/2011/07/sudo-while-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove duplicate file</title>
		<link>http://sudoers.org/2009/04/how-to-remove-duplicate-file/</link>
		<comments>http://sudoers.org/2009/04/how-to-remove-duplicate-file/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:16:13 +0000</pubDate>
		<dc:creator>limed</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sudoers.org/?p=25</guid>
		<description><![CDATA[Taken from shell-fu OUTF=rem-duplicates.sh; echo "#! /bin/sh" &#62; $OUTF; find "$@" -type f -print0 &#124; xargs -0 -n1 md5sum &#124; sort --key=1,32 &#124; uniq -w 32 -d --all-repeated=separate &#124; sed -r 's/^[0-9a-f]*( )*//;s/([^a-zA-Z0-9./_-])/\\\1/g;s/(.+)/#rm \1/' &#62;&#62; $OUTF; chmod a+x $OUTF; ls -l $OUTF]]></description>
			<content:encoded><![CDATA[<p>Taken from shell-fu</p>
<blockquote><p><code>OUTF=rem-duplicates.sh;<br />
echo "#! /bin/sh" &gt; $OUTF;<br />
find "$@" -type f -print0 |<br />
xargs -0 -n1 md5sum |<br />
sort --key=1,32 | uniq -w 32 -d --all-repeated=separate |<br />
sed -r 's/^[0-9a-f]*( )*//;s/([^a-zA-Z0-9./_-])/\\\1/g;s/(.+)/#rm \1/' &gt;&gt; $OUTF;<br />
chmod a+x $OUTF; ls -l $OUTF</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sudoers.org/2009/04/how-to-remove-duplicate-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing permissions for all directories in folder</title>
		<link>http://sudoers.org/2008/12/changing-permissions-for-all-directories-in-folder/</link>
		<comments>http://sudoers.org/2008/12/changing-permissions-for-all-directories-in-folder/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 06:57:22 +0000</pubDate>
		<dc:creator>limed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://sudoers.org/?p=13</guid>
		<description><![CDATA[Ever run into a situation where you have a mixture of both files and folders in a directory and you only need to change the permission of the folder? Naturally the first thing that comes to mind is to do something like this But what happens if your folders have spaces? Using find that way [...]]]></description>
			<content:encoded><![CDATA[<p>Ever run into a situation where you have a mixture of both files and folders in a directory and you only need to change the permission of the folder? Naturally the first thing that comes to mind is to do something like this</p>
<pre class="brush: plain; title: ; notranslate">find . -type d -print | xargs chmod 755</pre>
<p>But what happens if your folders have spaces? Using find that way will not escape the spaces instead the solution to this is to use find but in a slightly different manner</p>
<pre class="brush: plain; title: ; notranslate">find . -type d -print0 | xargs -0 chmod 755</pre>
<p>The -print0 tells find to terminate with zero so that whitespaces are recognized and the same goes for xargs as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://sudoers.org/2008/12/changing-permissions-for-all-directories-in-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taken from Shell-fu</title>
		<link>http://sudoers.org/2008/12/taken-from-shell-fu/</link>
		<comments>http://sudoers.org/2008/12/taken-from-shell-fu/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 22:20:59 +0000</pubDate>
		<dc:creator>limed</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://sudoers.org/?p=9</guid>
		<description><![CDATA[This is taken from shell-fu.org still a pretty handy one liner though This will delete any packages that are not installed anymore which still has configuration files on the box]]></description>
			<content:encoded><![CDATA[<p>This is taken from shell-fu.org still a pretty handy one liner though</p>
<pre class="brush: plain; title: ; notranslate">aptitude search ~c | awk '{ print $2 }' | xargs aptitude -y purge</pre>
<p>This will delete any packages that are not installed anymore which still has configuration files on the box</p>
]]></content:encoded>
			<wfw:commentRss>http://sudoers.org/2008/12/taken-from-shell-fu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>deborphan and for loops</title>
		<link>http://sudoers.org/2008/12/deborphan-and-for-loops/</link>
		<comments>http://sudoers.org/2008/12/deborphan-and-for-loops/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 18:29:59 +0000</pubDate>
		<dc:creator>limed</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://sudoers.org/?p=7</guid>
		<description><![CDATA[deborphan is a package in debian that list orphaned libraries in debian. Handy for removing libraries that is no longer needed on a server. The problem with deborphan is that it only lists packages that are orphaned but doesnt remove them, so I do this: I love BASH]]></description>
			<content:encoded><![CDATA[<p>deborphan is a package in debian that list orphaned libraries in debian. Handy for removing libraries that is no longer needed on a server. The problem with deborphan is that it only lists packages that are orphaned but doesnt remove them, so I do this:</p>
<pre class="brush: plain; title: ; notranslate">
 for i in `deborphan`; do sudo aptitude remove $i; done
</pre>
<p>I love BASH <img src='http://sudoers.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sudoers.org/2008/12/deborphan-and-for-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

