<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>UrFix's  Blog</title>
	
	<link>http://blog.urfix.com</link>
	<description>A geek without a cause</description>
	<lastBuildDate>Sun, 29 Jan 2012 02:28:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/UrfixsBlog" /><feedburner:info uri="urfixsblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Automatically Post To Facebook From Linux Command Line</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/XeizfqehCc4/</link>
		<comments>http://blog.urfix.com/automatically-post-facebook-linux-command-line/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 02:28:51 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=526</guid>
		<description><![CDATA[Would you like to update your Facebook status via the command line? Check out fbcmd A great article written by Kenneth Hess on installing and basic usage of fbcmd here on Linux-mag fbcmd Syntax page fbcmd Commands page So how can I automate this? SIMPLE!! Well first I created a file called fbstatus.sh and filled [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/automatically-post-facebook-linux-command-line/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Fautomatically-post-facebook-linux-command-line%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Fautomatically-post-facebook-linux-command-line%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=facebook&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Would you like to update your Facebook status via the command line?<br />
Check out <a title="fbcmd" href="http://fbcmd.dtompkins.com/" target="_blank">fbcmd</a></p>
<p>A great article written by Kenneth Hess on installing and basic usage of fbcmd here on <a title="fbcmd installation" href="http://www.linux-mag.com/id/8705/" target="_blank">Linux-mag</a></p>
<p>fbcmd <a title="fbcmd syntax" href="http://fbcmd.dtompkins.com/syntax" target="_blank">Syntax page</a></p>
<p>fbcmd <a title="fbcmd command page" href="http://fbcmd.dtompkins.com/commands" target="_blank">Commands page</a></p>
<p>So how can I automate this?</p>
<p>SIMPLE!!</p>
<p>Well first I created a file called fbstatus.sh and filled it with the contents below</p>
<blockquote><p><code>#!/bin/bash<br />
CMD=`/usr/games/fortune -s drugs`<br />
fbcmd status "$CMD"</code></p></blockquote>
<p>make sure you run</p>
<blockquote><p>chmod +x fbstatus.sh</p></blockquote>
<p>then execute</p>
<blockquote><p>sh fbstatus.sh</p></blockquote>
<p>the add it to a cron job by executing</p>
<blockquote><p>crontab -e</p></blockquote>
<p>add</p>
<blockquote><p>@hourly sh ~/fbfortune.sh</p></blockquote>
<p>CTRL + o to save cron job<br />
CTRL + x to exit editor</p>
<p>The simple script grabs a short fortune file from the drug fortune-cookies<br />
saves it as a variable and sends it via fbcmd</p>
<p>Use your imagination.<br />
here is a script to post your server&#8217;s uptime via facebook using fbcmd</p>
<blockquote><p>CMD=`/usr/bin/uptime`</p>
<p>fbcmd status &#8220;$CMD&#8221;</p></blockquote>
<p>I created the fortune script because my friends were complaining that I never update my Facebook status. So now my friends will get an hourly fb update from your&#8217;s truly&#8230;. my <a title="urfix" href="http://urfix.com" target="_blank">server</a> ;)</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2Fautomatically-post-facebook-linux-command-line%2F&amp;title=Automatically%20Post%20To%20Facebook%20From%20Linux%20Command%20Line" id="wpa2a_2"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/XeizfqehCc4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/automatically-post-facebook-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/automatically-post-facebook-linux-command-line/</feedburner:origLink></item>
		<item>
		<title>Analyze Disk Usage With NCurses Disk Usage NCDU</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/4WW1um3rrBI/</link>
		<comments>http://blog.urfix.com/analyze-disk-uage-ncurses-disk-usage-ncdu/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 17:54:43 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[ncdu]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=517</guid>
		<description><![CDATA[ncdu is a text-mode ncurses-based disk usage analyzer. Useful for when you want to see where all your space is going. For a single flat directory it isn&#8217;t more elaborate than an du&#124;sort or some such thing, but this analyzes all directories below the one you specify so space consumed by files inside subdirectories is [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/analyze-disk-uage-ncurses-disk-usage-ncdu/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Fanalyze-disk-uage-ncurses-disk-usage-ncdu%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Fanalyze-disk-uage-ncurses-disk-usage-ncdu%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=ncdu&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>ncdu is a text-mode ncurses-based disk usage analyzer. Useful for when you want to see where all your space is going. For a single flat directory it isn&#8217;t more elaborate than an du|sort or some such thing, but this analyzes all directories below the one you specify so space consumed by files inside subdirectories is taken into account. This way you get the full picture. Features: file deletion, file size or size on disk and refresh as contents change. Homepage: <a href="http://dev.yorhel.nl/ncdu" rel="nofollow">http://dev.yorhel.nl/ncdu</a></p>
<p>Manual :<a title="NCDU Man page" href="http://dev.yorhel.nl/ncdu/man">http://dev.yorhel.nl/ncdu/man</a></p>
<div class="fancy-gallery gallery" id="gallery_517"><a href="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot.png" title="Screenshot"><img src="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-150x150.png" width="150" height="150" class="attachment-thumbnail" alt="Screenshot" title="Screenshot" /></a><a href="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-1.png" title="Screenshot-1"><img src="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-1-150x150.png" width="150" height="150" class="attachment-thumbnail" alt="Screenshot-1" title="Screenshot-1" /></a><a href="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-2.png" title="Screenshot-2"><img src="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-2-150x150.png" width="150" height="150" class="attachment-thumbnail" alt="Screenshot-2" title="Screenshot-2" /></a><a href="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-3.png" title="Screenshot-3"><img src="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-3-150x150.png" width="150" height="150" class="attachment-thumbnail" alt="Screenshot-3" title="Screenshot-3" /></a><a href="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-4.png" title="Screenshot-4"><img src="http://blog.urfix.com/wp-content/uploads/2012/01/Screenshot-4-150x150.png" width="150" height="150" class="attachment-thumbnail" alt="Screenshot-4" title="Screenshot-4" /></a><div class="clear"></div></div>
<p>Initially if  much space is taken up you will have to wait a while while it indexes your files. </p>
<p>This is a ncurses based application that means you have to use the keyboard to make your way around &#8211; not a mouse. The keys are fairly easy to learn and there is a very useful help screen should you need it</p>
<p>If you find a file or folder you no longer need while browsing with NCDU you can even delete it on the spot  Hopefully you will find this application as useful as I did when a stray log file gets far too large :)</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2Fanalyze-disk-uage-ncurses-disk-usage-ncdu%2F&amp;title=Analyze%20Disk%20Usage%20With%20NCurses%20Disk%20Usage%20NCDU" id="wpa2a_4"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/4WW1um3rrBI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/analyze-disk-uage-ncurses-disk-usage-ncdu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/analyze-disk-uage-ncurses-disk-usage-ncdu/</feedburner:origLink></item>
		<item>
		<title>Top 10 Linux System Monitoring Tools Every Linux Geek Should Know</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/gC8z20bYgY4/</link>
		<comments>http://blog.urfix.com/top-10-linux-system-monitoring-tools-linux-geek/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 20:49:38 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=506</guid>
		<description><![CDATA[Are you in need of monitoring a Linux server for performance? These commands provide useful information about a system's activities.]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/top-10-linux-system-monitoring-tools-linux-geek/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Ftop-10-linux-system-monitoring-tools-linux-geek%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Ftop-10-linux-system-monitoring-tools-linux-geek%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=tools&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Are you in need of monitoring a Linux server for performance? These built-in command and add-on tools provide techniques which can be used to get useful information about a system&#8217;s activities. These tools will help find the possible causes of a performance problem. The <a href="http://blog.urfix.com/25-ssh-commands-tricks/" title="Commands">commands</a> I talk about below are some of the most basic commands when it comes to system analysis and debugging server issues.</p>
<h3>top</h3>
<p><strong>Process Activity Command</strong><br />
The top program provides a awesome real-time view of your system for example actual process activity. Out the box, it displays the most CPU-intensive processes running on the Linux Machine and updates the list every five seconds.</p>
<p><img src="http://img.urfix.com/images/topoutput.png" alt="top" width="441" height="490" /></p>
<h3>vmstat</h3>
<p><strong>System Activity, Hardware and System Information</strong></p>
<blockquote><p>procs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- &#8211;system&#8211; &#8212;&#8211;cpu&#8212;&#8212;<br />
r b swpd free buff cache si so bi bo in cs us sy id wa st<br />
0 0 0 2540988 522188 5130400 0 0 2 32 4 2 4 1 96 0 0<br />
1 0 0 2540988 522188 5130400 0 0 0 720 1199 665 1 0 99 0 0<br />
0 0 0 2540956 522188 5130400 0 0 0 0 1151 1569 4 1 95 0 0<br />
0 0 0 2540956 522188 5130500 0 0 0 6 1117 439 1 0 99 0 0<br />
0 0 0 2540940 522188 5130512 0 0 0 536 1189 932 1 0 98 0 0<br />
0 0 0 2538444 522188 5130588 0 0 0 0 1187 1417 4 1 96 0 0<br />
0 0 0 2490060 522188 5130640 0 0 0 18 1253 1123 5 1 94 0 0</p></blockquote>
<h3>w</h3>
<p><strong>Find Out Who Is Logged on And What They Are Doing</strong></p>
<blockquote><p># w username<br />
# w username</p></blockquote>
<p>Sample output</p>
<blockquote><p>17:58:47 up 5 days, 20:28, 2 users, load average: 0.36, 0.26, 0.24<br />
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT<br />
root pts/0 10.1.3.145 14:55 5.00s 0.04s 0.02s vim /etc/resolv.conf<br />
root pts/1 10.1.3.145 17:43 0.00s 0.03s 0.00s w</p></blockquote>
<h3>uptime</h3>
<p><strong>How Long The System Has Been Up</strong></p>
<blockquote><p># uptime</p></blockquote>
<p>output:</p>
<blockquote><p>14:28:17 up 2 days, 3:53, 1 user, load average: 0.90, 0.46, 0.37</p></blockquote>
<h3>ps</h3>
<p><strong>Displays The Processes</strong></p>
<blockquote><p># ps -A</p></blockquote>
<p>Output:</p>
<blockquote><p>PID TTY TIME CMD<br />
1 ? 00:00:02 init<br />
2 ? 00:00:02 migration/0<br />
3 ? 00:00:01 ksoftirqd/0<br />
4 ? 00:00:00 watchdog/0<br />
5 ? 00:00:00 migration/1<br />
6 ? 00:00:15 ksoftirqd/1<br />
&#8230;.<br />
&#8230;..<br />
4881 ? 00:53:28 java<br />
4885 tty1 00:00:00 mingetty<br />
4886 tty2 00:00:00 mingetty<br />
4887 tty3 00:00:00 mingetty<br />
4888 tty4 00:00:00 mingetty<br />
4891 tty5 00:00:00 mingetty<br />
4892 tty6 00:00:00 mingetty<br />
4893 ttyS1 00:00:00 agetty<br />
12853 ? 00:00:00 cifsoplockd<br />
12854 ? 00:00:00 cifsdnotifyd<br />
14231 ? 00:10:34 lighttpd<br />
14232 ? 00:00:00 php-cgi<br />
54981 pts/0 00:00:00 vim<br />
55465 ? 00:00:00 php-cgi<br />
55546 ? 00:00:00 bind9-snmp-stat<br />
55704 pts/1 00:00:00 ps</p></blockquote>
<h3>free</h3>
<p><strong>Memory Usage</strong></p>
<blockquote><p># free</p></blockquote>
<p>Output:</p>
<blockquote><p>total used free shared buffers cached<br />
Mem: 1024768 316332 708436 0 34536 123616<br />
-/+ buffers/cache: 158180 866588<br />
Swap: 463868 176 463692</p></blockquote>
<h3>iostat</h3>
<p><strong>Average CPU Load, Disk Activity</strong><br />
The command iostat report Central Processing Unit (CPU) statistics and input/output statistics for devices, partitions and network filesystems (NFS).</p>
<blockquote><p>The command iostat report Central Processing Unit (CPU) statistics and input/output statistics for devices, partitions and network filesystems (NFS).</p></blockquote>
<p>output:</p>
<blockquote><p>Linux 2.6.18-128.1.14.el5 (www03.nixcraft.in) 06/26/2009<br />
avg-cpu: %user %nice %system %iowait %steal %idle<br />
3.50 0.09 0.51 0.03 0.00 95.86<br />
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn<br />
sda 22.04 31.88 512.03 16193351 260102868<br />
sda1 0.00 0.00 0.00 2166 180<br />
sda2 22.04 31.87 512.03 16189010 260102688<br />
sda3 0.00 0.00 0.00 1615 0</p></blockquote>
<h3>ss</h3>
<p><strong>Network Statistics</strong><br />
ss command is used to dump socket statistics.</p>
<blockquote><p>FIN-WAIT-2 0 0 10.1.10.72:www 131.142.24.171:51858<br />
ESTAB 0 0 10.1.10.72:ssh 10.1.10.157:35827<br />
ESTAB 0 0 10.1.10.72:ssh 10.1.10.157:59810<br />
ESTAB 0 0 10.1.10.72:www 131.142.24.171:51857<br />
ESTAB 0 0 10.1.10.72:www 8.22.204.204:2336<br />
FIN-WAIT-2 0 0 10.1.10.72:www 131.142.24.171:51860</p></blockquote>
<h3>iptraf</h3>
<p><strong>Real-time Network Statistics</strong><br />
<img src="http://img.urfix.com/images/iptraf2.png" alt="iptraf" width="514" height="375" /><br />
<img src="http://img.urfix.com/images/iptraf3.png" alt="iptraf" width="519" height="300" /></p>
<h3>tcpdump</h3>
<p><strong>Detailed Network Traffic Analysis</strong><br />
tcpdump is a simple command that dumps traffic on a network. You might need good understanding of TCP/IP protocol to use this tool. For example to display traffic info about DNS, enter:</p>
<blockquote><p># tcpdump -i eth1 &#8216;udp port 53&#8242;</p></blockquote>
<p>To display all HTTP session to 10.1.10.12:</p>
<blockquote><p># tcpdump -ni eth0 &#8216;dst 10.1.10.12 and tcp and port http&#8217;</p></blockquote>
        <img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/gC8z20bYgY4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/top-10-linux-system-monitoring-tools-linux-geek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/top-10-linux-system-monitoring-tools-linux-geek/</feedburner:origLink></item>
		<item>
		<title>5 Linux Commands: timeout, cpulimit,awk,tar and youtube-dl</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/rBVUQNuNlEU/</link>
		<comments>http://blog.urfix.com/5-linux-commands/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 20:11:11 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=497</guid>
		<description><![CDATA[I know how much you love random linux commands so here I&#8217;ve compiled some cool random linux commands to copy, convert, limit,kill and redirect things. Start COMMAND, and kill it if still running after 5 seconds timeout 5s COMMAND Convert Youtube videos to MP3 youtube-dl -t --extract-audio --audio-format mp3 YOUTUBE_URL_HERE youtube-dl has this functionality built [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/5-linux-commands/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2F5-linux-commands%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2F5-linux-commands%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=linux&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I know how much you love random linux commands so here I&#8217;ve compiled some cool random linux commands to copy, convert, limit,kill and redirect things.</p>
<h3>Start COMMAND, and kill it if still running after 5 seconds</h3>
<p><code>timeout 5s COMMAND</code></p>
<h3>Convert Youtube videos to MP3</h3>
<p><code>youtube-dl -t --extract-audio --audio-format mp3 YOUTUBE_URL_HERE</code><br />
youtube-dl has this functionality built in. If you&#8217;re running an older version of youtube-dl, you can update it using `youtube-dl -U` (although if you have an older version, it probably doesn&#8217;t download youtube videos anyway.)</p>
<p>youtube-dl &#8211;help will show you other options that may come in useful.</p>
<h3>Limit the cpu usage of a process</h3>
<p><code>sudo cpulimit -p pid -l 50</code><br />
This will limit the average amount of CPU it consumes.</p>
<h3>Target a specific column for pattern substitution</h3>
<p><code>awk '{gsub("foo","bar",$5)}1' file</code><br />
Awk replaces every instance of foo with bar in the 5th column only.</p>
<h3>Redirect tar extract to another directory</h3>
<p><code>tar xfz filename.tar.gz -C PathToDirectory</code><br />
The command extracting the tar contents into particular directory &#8230;</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2F5-linux-commands%2F&amp;title=5%20Linux%20Commands%3A%20timeout%2C%20cpulimit%2Cawk%2Ctar%20and%20youtube-dl" id="wpa2a_6"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/rBVUQNuNlEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/5-linux-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/5-linux-commands/</feedburner:origLink></item>
		<item>
		<title>Linux Command Line and MySQL: Awesome</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/08CYzoto7ec/</link>
		<comments>http://blog.urfix.com/linux-command-line-mysql-awesome/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 18:18:36 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=492</guid>
		<description><![CDATA[MySQL is the world&#8217;s most popular open source database. Whether you are a fast growing web property, technology ISV or large enterprise, MySQL can cost-effectively help you deliver high performance, scalable database applications. Check out this site MySQL Commands for a nice MySQL cheat sheet. UrFix.com  however has created a list of commands I use [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/linux-command-line-mysql-awesome/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Flinux-command-line-mysql-awesome%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Flinux-command-line-mysql-awesome%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=mysql&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>MySQL is the world&#8217;s most popular open source database. Whether you are a fast growing web property, technology ISV or large enterprise, MySQL can cost-effectively help you deliver high performance, scalable database applications. Check out this site<a title="MYSQL commands" href="http://www.pantz.org/software/mysql/mysqlcommands.html"> MySQL Commands</a> for a nice MySQL cheat sheet.<br />
<a title="urfix" href="http://blog.urfix.com">UrFix.com</a>  however has created a list of commands I use almost daily when monitoring and maintaining my LAMP server. I hope you find these useful&#8230;</p>
<h3>Monitor the queries being run by MySQL</h3>
<p>&nbsp;</p>
<pre>watch -n 1 mysqladmin --user= --password= processlist
</pre>
<p>Watch is a very useful command for periodically running another command &#8211; in this using mysqladmin to display the processlist. This is useful for monitoring which queries are causing your server to clog up.<br />
More info here: http://codeinthehole.com/archives/2-Monitoring-MySQL-processes.html</p>
<h3>Backup all MySQL Databases to individual files</h3>
<p>&nbsp;</p>
<pre>for I in $(mysql -e 'show databases' -s --skip-column-names);
do mysqldump $I | gzip &gt; "$I.sql.gz"; done
</pre>
<p>I put this in a cron job to run @ midnight &#8211; &#8220;lazy back up&#8221;</p>
<h3>Copy a MySQL Database to a new Server via SSH with one command</h3>
<p>&nbsp;</p>
<pre>mysqldump --add-drop-table --extended-insert --force --log-error=error.log
 -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost "mysql -uUSER -pPASS NEW_DB_NAME"
</pre>
<p>Dumps a MySQL database over a compressed SSH tunnel and uses it as input to mysql &#8211; i think that is the fastest and best way to migrate a DB to a new server!</p>
<h3>Convert all MySQL tables and fields to UTF8</h3>
<p>&nbsp;</p>
<pre>mysql --database=dbname -B -N -e "SHOW TABLES"  | awk '{print "ALTER TABLE", $1,
 "CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;"}' | mysql --database=dbname
&amp;
</pre>
<h3>Backup a remote database to your local filesystem</h3>
<p>&nbsp;</p>
<pre>ssh user@host 'mysqldump dbname | gzip' &gt;
/path/to/backups/db-backup-`date +%Y-%m-%d`.sql.gz
</pre>
<p>I have this on a daily cronjob to backup the urfix.com database from NearlyFreeSpeech.net (awesome hosts by the way) to my local drive. Note that (on my Ubuntu system at least) you need to escape the % signs on the crontab.</p>
<h3>Export MySQL query as .csv file</h3>
<p>&nbsp;</p>
<pre>echo "SELECT * FROM table; " | mysql -u root -p${MYSQLROOTPW}
databasename | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' &gt; outfile.csv
</pre>
<p>This command converts a MySQL query directly into a .csv (Comma Seperated Value)-file.</p>
<h3>Create an SSH tunnel for accessing your remote MySQL database with a local port</h3>
<p>&nbsp;</p>
<pre>ssh -CNL 3306:localhost:3306 user@urfix.com
</pre>
<h3>Count the number of queries to a MySQL server</h3>
<p>&nbsp;</p>
<pre>echo "SHOW PROCESSLIST\G" | mysql -u root -p | grep "Info:" |
awk -F":" '{count[$NF]++}END{for(i in count){printf("%d: %s\n",
count[i], i)}}' | sort -n
</pre>
<h3>dump a single table of a database to file</h3>
<p>&nbsp;</p>
<pre>mysqldump -u UNAME -p DBNAME TABLENAME&gt; FILENAME
</pre>
<p>And there you have it, a nice list of hopefully useful commands that you can inspect and learn from.</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2Flinux-command-line-mysql-awesome%2F&amp;title=Linux%20Command%20Line%20and%20MySQL%3A%20Awesome" id="wpa2a_8"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/08CYzoto7ec" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/linux-command-line-mysql-awesome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/linux-command-line-mysql-awesome/</feedburner:origLink></item>
		<item>
		<title>8 Cool Ways To Use SCP</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/Ej-crkADfjY/</link>
		<comments>http://blog.urfix.com/8-cool-scp-tricks/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 02:43:30 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=487</guid>
		<description><![CDATA[The SCP protocol is a network protocol, based on the BSD RCP protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and utilizes the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit. A client can send (upload) files to [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/8-cool-scp-tricks/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2F8-cool-scp-tricks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2F8-cool-scp-tricks%2F&amp;source=supremedialect&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<blockquote><p>The SCP protocol is a network protocol, based on the BSD RCP protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and utilizes the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit. A client can send (upload) files to a server, optionally including their basic attributes (permissions, timestamps). Clients can also request files or directories from a server (download). SCP runs over TCP port 22 by default. Like RCP, there is no RFC that defines the specifics of the protocol.</p></blockquote>
<p>SCP is an awesome tool. Learn it, Love it, Use it&#8230;.</p>
<h3>Edit a file on a remote host using vim</h3>
<pre><code>vim scp://username@host//path/to/somefile</code></pre>
<h3>Colored diff ( via vim ) on 2 remotes files on your local computer.</h3>
<pre>vimdiff scp://root@server-foo.com//etc/snmp/snmpd.conf scp://root@server-bar.com//etc/snmp/snmpd.conf</pre>
<h3>Restrict the bandwidth for the SCP command</h3>
<pre>scp -l10 user@urfix.com:/home/urfix/* .</pre>
<p>the command is obvious, I know, but maybe not everyone knows that using the parameter &#8220;-l&#8221; you can limit the use of bandwidth command scp.<br />
In this example fetch all files from the directory zutaniddu and I copy them locally using only 10 Kbs</p>
<h3>Compare a remote file with a local file</h3>
<pre>vimdiff <file> scp://[<user>@]<host>/<file></pre>
<h3>Easily scp a file back to the host you&#8217;re connecting from</h3>
<pre>mecp () { scp "$@" ${SSH_CLIENT%% *}:Desktop/; }</pre>
<p>Place in .bashrc and invoke like this: &#8220;mecp /path/to/file&#8221;, and it will copy the specified file(s) back to the desktop of the host you&#8217;re ssh&#8217;ing in from. To easily upload a file from the host you&#8217;re ssh&#8217;ing in from use this:</p>
<pre>ucp (){ scp ${SSH_CLIENT%% *}:Desktop/upload/* .; }</pre>
<h3>scp file from hostb to hostc while logged into hosta</h3>
<pre>scp user@hostb:file user@hostc:</pre>
<p>While at the command line of of hosta, scp a file from remote hostb to remote hostc. This saves the step of logging into hostb and then issuing the scp command to hostc.</p>
<h3>Copy something to multiple SSH hosts with a Bash loop</h3>
<pre>for h in host1 host2 host3 host4 ; { scp file user@$h:/destination_path/ ; }</pre>
<p>Just a quick and simple one to demonstrate Bash For loop. Copies &#8216;file&#8217; to multiple ssh hosts.</p>
<h3>scp with compression.</h3>
<pre>scp -C 10.0.0.4:/tmp/backup.sql /path/to/backup.sql</pre>
<p>-C is for compression.</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2F8-cool-scp-tricks%2F&amp;title=8%20Cool%20Ways%20To%20Use%20SCP" id="wpa2a_10"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/Ej-crkADfjY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/8-cool-scp-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/8-cool-scp-tricks/</feedburner:origLink></item>
		<item>
		<title>7 Awesome and Free Network Apps for Rooted Androids</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/m0n8LMxb1B0/</link>
		<comments>http://blog.urfix.com/7-awesome-free-network-apps-rooted-androids/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 03:07:26 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=475</guid>
		<description><![CDATA[Did you root your Android-based smartphone or tablet, thinking about it? Well I present you seven free network apps that take advantage of the superuser permissions. In the list I&#8217;ve composed , you&#8217;ll find apps that help with the network configuration and security of your device, apps to do sharing and sniffing on networks, and [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/7-awesome-free-network-apps-rooted-androids/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2F7-awesome-free-network-apps-rooted-androids%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2F7-awesome-free-network-apps-rooted-androids%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=android&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Did you root your Android-based smartphone or tablet, thinking about it? Well I present you seven free network apps that take advantage of the superuser permissions. In the list I&#8217;ve composed , you&#8217;ll find apps that help with the network configuration and security of your device, apps to do sharing and sniffing on networks, and apps that demonstrate network hacking and security risks.</p>
<h3><a href="http://droidsheep.de/" target="new">DroidSheep</a> by Andreas Koch</h3>
<p>What is this about?<br />
If you know Firesheep or Faceniff, you probably know what this is about – one-click session hijacking using your android smartphone or tablet computer.<br />
<a href="http://img.urfix.com/images/205.jpg"><img class="alignleft" src="http://img.urfix.com/images/205.jpg" alt="Droidsheep" width="256" height="426" /></a>You can use DroidSheep to demonstrate to yourself or others of how easy it is to take-over other user&#8217;s unsecured web sessions. You just open the app, agree to their disclaimer, and tap Start. You&#8217;ll start seeing the list populate once users on the network login to unsecured sites, displaying their URLs and session IDs. Then you can tap on an entry to open the site in full or mobile view, save the cookies, or export the cookies via email.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3><a href="https://market.android.com/details?id=com.funkyfresh.samba" target="new">Samba File Sharing</a> by funkyFresh</h3>
<p><a href="http://img.urfix.com/images/sambafiles.jpg"><img class="alignleft" src="http://img.urfix.com/images/sambafiles.jpg" alt="Samba file sharing" width="256" height="384" /></a></p>
<div id="doc-description-container">
<div id="doc-original-text">
<p>Access your Android device over wifi as a Windows shared folder.* Samba filesharing server for Android.<br />
* Your Android device becomes visible to other Windows (&amp; SMB compatible) computers on your network.<br />
* The &#8216;external&#8217; storage in your Android device is accessible as a network shared folder.<br />
* Copy files and folders to and from your Android device using drag and drop.<br />
* Customizable username, password, Windows workgroup name, and device network (NETBIOS) name.</p>
<p>Requirements:<br />
* Your Android device must already be rooted.<br />
* Superuser 2.3.6.2 or later installed (available on Market).</p>
</div>
</div>
<div>
<h3></h3>
<h3></h3>
<h3></h3>
<h3><a href="https://market.android.com/details?id=uk.co.mytechie.setDNS" target="new">Set DNS</a> by Mytechie</h3>
<p><a href="http://img.urfix.com/images/setdns.jpg"><img class="alignleft" src="http://img.urfix.com/images/setdns.jpg" alt="set dns" width="288" height="480" /></a></p>
<p>This app lets you easily define the name servers used by your Wi-Fi and mobile network interfaces. You can speed up browsing, enable content filtering, or bypass DNS-based filters by using a third-party DNS service. Android lets you natively change the DNS server addresses for just the Wi-Fi interface and is only available if you define static IP information. However, Set DNS lets you change both interfaces and can work when using DHCP.</p>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3><a href="https://market.android.com/details?id=lv.n3o.shark" target="new">Shark for Root</a> by Elviss Kuštans</h3>
<p><img class="alignleft" src="http://img.urfix.com/images/sharkforro.jpg" alt="shark for root" width="302" height="468" /> Traffic sniffer, works on 3G and WiFi (works on FroYo tethered mode too).his network sniffer is based on tcpdump and is basically a simple version of the popular <a href="http://www.wireshark.org/" target="new">WireShark</a> application. It captures packet information from the Wi-Fi or 3G interfaces and automatically saves them to a .pcap file on the SD card. You can input tcpdump parameters to customize the sniffing sessions. You can view the dumps on your Android if you install another app (<a href="https://market.android.com/details?id=lv.n3o.sharkreader" target="new">Shark Reader</a>) or transfer the .pcap file to another computer to open in an application such as WireShark.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3><a href="https://market.android.com/details?id=org.sshtunnel" target="new">SSH Tunnel</a> by Max Lv</h3>
<p><img class="alignleft" src="http://img.urfix.com/images/sshtunnel.jpg" alt="sshtunnel for android" width="288" height="512" /> This app helps you surf the web privately and securely, for instance, to encrypt your traffic from local eavesdroppers at Wi-Fi hotspots or to bypass filters and geographic restrictions. It&#8217;s a SSH client that can proxy the Internet connections for the entire Android system or individual apps through a SSH server. Its DNS Proxy feature can also solve the DNS pollution problem in places such as China by using the pre-defined HOSTS information from the developer&#8217;s site to counteract any DNS tampering by the authorities or ISPs.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3><a href="https://market.android.com/details?id=aws.apps.wifiKeyRecovery" target="new">WiFi Key Recovery</a> by alt236</h3>
<p><a href="http://img.urfix.com/images/wifikeyrec.jpg"><img class="alignleft" title="wifi key recovery for android" src="http://img.urfix.com/images/wifikeyrec.jpg" alt="" width="288" height="480" /></a>Android lets you modify the settings for Wi-Fi networks you&#8217;ve saved, but doesn&#8217;t show you the existing passwords, similar to Windows XP. However, this simple app reveals the login credentials for Wi-Fi networks stored on your device, useful if you forget the password to a network. It also demonstrates one of the security risks if you&#8217;re Android gets lost or stolen; someone can potentially get the credentials to log onto your home or work network.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3><a href="https://market.android.com/details?id=android.tether" target="new">Wireless Tether</a> by Müller, Lemons, Buxton</h3>
<p><a href="http://img.urfix.com/images/wirelesste.jpg"><img class="alignleft" src="http://img.urfix.com/images/wirelesste.jpg" alt="wireless tether for android" width="192" height="288" /></a>This lets you share your Android&#8217;s Internet connection with other computers or devices equipped with Wi-Fi or Bluetooth. It&#8217;s great if your Android version or mobile service provider doesn&#8217;t support tethering. For most Android devices, this app&#8217;s Wi-Fi sharing creates an ad-hoc (peer-to-peer) network. Some devices support the regular infrastructure-mode, which appears to look like a real Wi-Fi router or access point to the other devices. For either mode, it takes care of handing out IP addresses to clients via DHCP.</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2F7-awesome-free-network-apps-rooted-androids%2F&amp;title=7%20Awesome%20and%20Free%20Network%20Apps%20for%20Rooted%20Androids" id="wpa2a_12"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/m0n8LMxb1B0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/7-awesome-free-network-apps-rooted-androids/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/7-awesome-free-network-apps-rooted-androids/</feedburner:origLink></item>
		<item>
		<title>How To Enable Facebook Timeline Today – And A Preview TOO</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/auLowCuhTqs/</link>
		<comments>http://blog.urfix.com/enable-facebook-timeline-today-preview/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 02:01:31 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook timeline]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=465</guid>
		<description><![CDATA[This morning Facebook announced Timeline, an awesome look at everything that has  happened in your Facebook lifespan. It’s like a story book of your online life. Facebook is enabling Timeline early for open graph developers. As a reader of UrFix Blog you&#8217;ll learn how to get started today. 1. Log into Facebook 2. Enable developer [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/enable-facebook-timeline-today-preview/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Fenable-facebook-timeline-today-preview%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Fenable-facebook-timeline-today-preview%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=facebook,facebook+timeline&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This morning Facebook announced Timeline, an awesome look at everything that has  happened in your Facebook lifespan. It’s like a story book of your online life.</p>
<p>Facebook is enabling Timeline early for open graph developers. As a reader of <a href="http://blog.urfix.com">UrFix Blog</a> you&#8217;ll learn how to get started today.</p>
<p><strong>1.</strong> Log into Facebook</p>
<p><strong>2.</strong> Enable developer mode, if you haven’t already. To do this, type “developer” into the Facebook search box, click the first result (it should be an app made by Facebook with a few hundred thousand users), and add the app.</p>
<p><img title="add-developer" src="http://tctechcrunch2011.files.wordpress.com/2011/09/add-developer.png?w=577&amp;h=337" alt="" width="488" height="285" /></p>
<p><strong>3.</strong> Jump into <a href="https://developers.facebook.com/apps">the developer app</a> (if Facebook doesn’t put you there automatically, it should be in your left-hand tool bar)</p>
<p><strong>4.</strong> Create a new app (don’t worry — you wont actually be submitting this for anyone else to see/use). Give your shiny new app any display name and namespace you see fit. Read through and agree to the Platform Privacy agreement. This is the step you need to be verified for.</p>
<p><strong>5.</strong> Ensure you’re in your new app’s main settings screen. You should see your app’s name near the top of the page</p>
<p><strong>6.</strong> Look for the “Open Graph” header, and click the “Get Started using open graph” link.</p>
<p>Create a test action for your app, like “read” a “book”, or “eat” a “sandwich”<br />
<strong>7.</strong> This should drop you into an action type configuration page. Change a few of the default settings (I changed the past tense of “read” to “redd” — again, only you can see this unless you try and submit your application to the public directory), and click through all three pages of settings</p>
<p><strong>8.</strong> Wait 2-3 minutes</p>
<p><strong>9.</strong> Go back to your Facebook homescreen. An invite to try Timeline should be waiting at the top of the page</p>
<p>Only developers and yourself will be able to see your new profile till September 29th.</p>
<p><a href="http://blog.urfix.com/wp-content/uploads/2011/09/developer.jpg"><img title="developer" src="http://blog.urfix.com/wp-content/uploads/2011/09/developer-300x134.jpg" alt="" width="300" height="134" /></a></p>
<p>&nbsp;</p>
<p>here is what mine looks like</p>
<p><a href="http://blog.urfix.com/wp-content/uploads/2011/09/head.jpg"><img class="alignnone size-medium wp-image-467" title="Facebook Timeline Header" src="http://blog.urfix.com/wp-content/uploads/2011/09/head-300x193.jpg" alt="" width="300" height="193" /></a></p>
<p><a href="http://blog.urfix.com/wp-content/uploads/2011/09/middle.jpg"><img class="alignnone size-medium wp-image-468" title="facebook timeline profile" src="http://blog.urfix.com/wp-content/uploads/2011/09/middle-300x194.jpg" alt="" width="300" height="194" /></a></p>
<p><a href="http://blog.urfix.com/wp-content/uploads/2011/09/bottom.jpg"><img class="alignnone size-medium wp-image-469" title="bottom of facebook timeline profile" src="http://blog.urfix.com/wp-content/uploads/2011/09/bottom-300x194.jpg" alt="" width="300" height="194" /></a></p>
<p>and even a map of places I&#8217;ve check in&#8230;.</p>
<p><a href="http://blog.urfix.com/wp-content/uploads/2011/09/map.jpg"><img class="alignnone size-medium wp-image-470" title="map of facebook timeline" src="http://blog.urfix.com/wp-content/uploads/2011/09/map-300x193.jpg" alt="" width="300" height="193" /></a></p>
<p>Have fun, and remember this is still in beta so you are bound to find a bug or two.</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2Fenable-facebook-timeline-today-preview%2F&amp;title=How%20To%20Enable%20Facebook%20Timeline%20Today%20%26%238211%3B%20And%20A%20Preview%20TOO" id="wpa2a_14"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/auLowCuhTqs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/enable-facebook-timeline-today-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/enable-facebook-timeline-today-preview/</feedburner:origLink></item>
		<item>
		<title>Firefox 6 Is Out With A Few Changes</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/6UefNNx_J4Q/</link>
		<comments>http://blog.urfix.com/firefox-6/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 15:55:58 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=458</guid>
		<description><![CDATA[http://www.mozilla.com/en-US/firefox/new/ Firefox 6 is officially out, however the final build for all the platforms are now available for download from the official FTP channels. Much like the previous release, the changelog for Firefox 6 is quite flimsy, and the new build doesn’t feature any major new user facing feature. This is of course the side-effect [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/firefox-6/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Ffirefox-6%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Ffirefox-6%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=firefox&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="Firefox 6" href="http://www.mozilla.com/en-US/firefox/new/">http://www.mozilla.com/en-US/firefox/new/</a><br />
Firefox 6 is officially out, however the final build for all the platforms are now available for download from the official FTP channels. Much like the previous release, the changelog for Firefox 6 is quite flimsy, and the new build doesn’t feature any major new user facing feature. This is of course the side-effect of following a rapid release cycle. While it makes it easier for Mozilla to stick to the schedule, it also makes version numbers insignificant and immaterial. GHacks reported yesterday that Mozilla is planning on hiding the version number from normal users by removing it from the ‘About’ box. Of course, that would be an incredibly lame and stupid way to tackle the issue. The sensible thing for Mozilla would be to label these releases as minor version updates, and have one or two scheduled major updates per year that will actually deliver new features. Anyways, there is no point in blaming Mozilla alone. Google is the one who started this madness with their Chrome release cycle.</p>
<p><center><br />
<a href="http://blog.urfix.com/wp-content/uploads/2011/08/Untitled.jpg"><img class="alignnone size-medium wp-image-459" title="Untitled" src="http://blog.urfix.com/wp-content/uploads/2011/08/Untitled-300x225.jpg" alt="" width="300" height="225" /></a></center>Coming back to Firefox 6, the biggest piece of new feature is that the address bar now highlights the domain of the website you are currently browsing. The site identity blocker has also received a minor facelift to make it sleeker than before. There are also a few behind the scenes improvements such as the support for WebSockets, improved Scratchpad, a new Web Developer menu item, an improved Web Console, and reduced browser startup time when using Panaroma.</p>
<p>There are as many as 1,300 changes in Firefox 6. However, almost all of them are bug fixes. When it comes to delivering new features, Firefox 6 disappoints, once again. If you have used Firefox 5, or even Firefox 4, you already know what to expect. If you liked either of those two releases, you will like Firefox 6. If you didn’t, then Firefox 6 will not change your opinion.</p>
<p>source http://techie-buzz.com/browsers/firefox-6-review.html</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2Ffirefox-6%2F&amp;title=Firefox%206%20Is%20Out%20With%20A%20Few%20Changes" id="wpa2a_16"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/6UefNNx_J4Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/firefox-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/firefox-6/</feedburner:origLink></item>
		<item>
		<title>16 Cool Ass Random Linux Stuff</title>
		<link>http://feedproxy.google.com/~r/UrfixsBlog/~3/AsCtfT1n3lg/</link>
		<comments>http://blog.urfix.com/cool-ass-random-linux-stuff/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 03:09:50 +0000</pubDate>
		<dc:creator>Isaiah</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://blog.urfix.com/?p=446</guid>
		<description><![CDATA[$ echo &#8220;Hello world&#8221; Hello world Urfix has compiled a sweet ass list of random stuff you can do from the command line. Hope you enjoy. Fry: Make up some feelings and tell her you have them. 1 Multiple variable assignments from command output in BASH read day month year &#60;&#60;&#60; $(date +'%d %m %y') [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.urfix.com/cool-ass-random-linux-stuff/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.urfix.com%2Fcool-ass-random-linux-stuff%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.urfix.com%2Fcool-ass-random-linux-stuff%2F&amp;source=supremedialect&amp;style=normal&amp;hashtags=command+line&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>$ echo &#8220;Hello world&#8221;<br />
Hello world</p>
<p>Urfix has compiled a sweet ass list of random stuff you can do from the command line. Hope you enjoy.</p>
<blockquote><p>Fry: Make up some feelings and tell her you have them.</p></blockquote>
<h3>1 Multiple variable assignments from command output in BASH</h3>
<pre>read day month year &lt;&lt;&lt; $(date +'%d %m %y')</pre>
<p>This version uses read instead of eval.</p>
<h3>2 Generate an XKCD #936 style 4 word password</h3>
<pre>shuf -n4 /usr/share/dict/words | tr -d '\n'</pre>
<p>4 random words are better than one obfuscated word</p>
<p>http://xkcd.com/936/</p>
<h3>3 All IP connected to my host</h3>
<pre>netstat -lantp | grep ESTABLISHED |awk '{print $5}' | awk -F: '{print $1}' | sort -u</pre>
<p>find all computer connected to my host through TCP connection.</p>
<h3>4 Ask for a password, the passwd-style</h3>
<pre>read -s -p"Password: " USER_PASSWORD_VARIABLE; echo</pre>
<p>You can ask repeatedly for a non-blank password using this function:<br />
function read_password() {<br />
while [ ! -n "$USER_PASSWORD" ]; do<br />
read -s -p&#8221;Password: &#8221; USER_PASSWORD<br />
if [ ! -n "$USER_PASSWORD" ]; then<br />
echo &#8220;ERROR: You must specify a valid password, please try again&#8221;<br />
fi<br />
echo<br />
done<br />
}<br />
Also you can set a time out (in seconds) to write the password<br />
read -t 10 -s -p&#8221;Password: &#8221; USER_PASSWORD_VARIABLE<br />
if [ ! $? -eq 0 ]; then<br />
echo &#8220;Time out!&#8221;<br />
fi</p>
<h3>5 Check syntax for all PHP files in the current directory and all subdirectories</h3>
<pre>find . -name \*.php -exec php -l "{}" \;</pre>
<h3>6mkdir &#038; cd into it as single command</h3>
<pre>mkdir /home/foo/doc/bar &#038;&#038; cd $_</pre>
<p>The biggest advantage of this over the functions is that it is portable.</p>
<h3>7 Merge PDFs into single file</h3>
<pre>gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf input1.pdf input2.pdf ...</pre>
<h3>8 Create a QR code image in MECARD format</h3>
<pre>qrencode -o myqr.png 'MECARD:N:Daprophet,Isaiah;TEL:8881234567;EMAIL:isaiah.daprophet@urfix.com;;'</pre>
<p>Add the QR code image on your webpage, business card ., etc, so people can scan it and quick add to their Contact Address Book. Tested on iPhone with QRreader.</p>
<h3>9 Chmod all directories (excluding files)</h3>
<pre>find public_html/ -type d -exec chmod 755 {} +</pre>
<p>+ at the end means that many filenames will be passed to every chmod call, thus making it faster. And find own {} makes sure that it will work with spaces and other characters in filenames.</p>
<h3>10 List only the directories</h3>
<pre>find . -maxdepth 1 -type d | sort</pre>
<h3>11 copy with progress bar &#8211; rsync</h3>
<pre>rsync -rv <src> <dst> --progress</pre>
<p>-r for recursive (if you want to copy entire directories)<br />
src for the source file (or wildcards)<br />
dst for the destination<br />
&#8211;progress to show a progress bar</p>
<h3>12 Find all files of a type and copy them elsewhere while keeping intact their full directory structure using find and cpio</h3>
<pre>find . -iname "*.flac" | cpio -pdm /Volumes/Music/FLAC</pre>
<p>.flac is the filetype.<br />
/Volumes/Music/FLAC is the destination.</p>
<h3>13 Share a screen session</h3>
<pre>screen -x <screen_id></pre>
<h3>14 Backup entire system through SSH</h3>
<pre>ssh -C USER@HOST tar -c --exclude /proc --exclude /sys / | tar -x</pre>
<h3>15 Find the package a command belongs to on debian-based distros</h3>
<pre>apt-file search iostat</pre>
<h3>16 View files opened by a program on startup and shutdown</h3>
<pre>sudo lsof -rc command >> /tmp/command.txt</pre>
<p>Run this before you run a command in order to see what the command does as it starts.<br />
The -c flag is useful here as the PID is unknown before startup.<br />
All config files, libraries, logs, ports, etc used by the command as it starts up, (and shuts down) will be captured at 1s intervals and written to a file.<br />
Useful for debugging etc.</p>
        <p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.urfix.com%2Fcool-ass-random-linux-stuff%2F&amp;title=16%20Cool%20Ass%20Random%20Linux%20Stuff" id="wpa2a_18"><img src="http://blog.urfix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/UrfixsBlog/~4/AsCtfT1n3lg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.urfix.com/cool-ass-random-linux-stuff/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://blog.urfix.com/cool-ass-random-linux-stuff/</feedburner:origLink></item>
	</channel>
</rss>

