Total upload and download on any interface.

2011-06-05 1 min read bash Fedora
Something that I have been searching for a long time, finally some look inside the <a class=“zem_slink” title=“Procfs” rel=“wikipedia” href=“http://en.wikipedia.org/wiki/Procfs" _mce_href=“http://en.wikipedia.org/wiki/Procfs">/proc got me what I wanted. Hope this will save someone’s day. So far, the only option I could think of was to run conky which becomes a little heave on some of the very old laptops I have to use sometimes 🙁 1 <td> <div class="text codecolorer"> &nbsp;cat /proc/net/dev|grep eth2|awk '{print $2/1024/1024"&nbsp; "$10/1024/1024}' </div> </td> </tr> Related articles CPUSPEED Slowing you down? Continue reading

All in one solution for all the scripts of vim from vim.org

2011-03-09 9 min read bash Fedora Learning Linux Vim Tips
For quite sometime now, I was looking for some console based program which would help me get the scripts from vim.org. A simple solution would have been to do a wget for the scripts. But since there are so many scripts coming up daily and with a need to search based on script ID and name of the script, I thought better to write a script that can do all of those things. Continue reading

6 Good Web-Based FTP Clients For When You Are On The Road

2010-12-21 6 min read Linux
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a href="http://www.crunchbase.com">CrunchBase</a> </dd> </dl> 6 Good Web-Based FTP Clients For When You Are On The Road ftp clientsMost of the time, when you need to transfer files to your web hosting account or any other remote server, you might be at home on your laptop where you’ve got your favorite desktop FTP client installed. However, when you’re on the road or using a friend’s computer, a desktop FTP client may not be available. Continue reading

Adding a sub-menu in the wordpress admin menu :)

2010-07-29 2 min read Wordpress
For the impatient ones, first the code: (in wp-admin folder, open the file menu.php) and locate the code: $submenu[&#8217;edit.php&#8217;][10] = array( _x(&#8217;Add New&#8217;, &#8217;post&#8217;), &#8217;edit_posts&#8217;, &#8217;post-new.php&#8217; ); and add the below: $submenu[&#8217;edit.php&#8217;][7] = array( _x(&#8217;Pending&#8217;, &#8217;post&#8217;), &#8217;edit_posts&#8217;, &#8217;edit.php?post_status=pending&post_type=post&#8217; ); And now the explanation and why do you need this 🙂 Problem: There is no direct mechanism to access the pending posts in WP admin. I generally post through email and mark them as pending. Continue reading

Upload a video to youtube

2010-07-16 1 min read Linux Uncategorized
<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/JXJj-wy4keA/upload-a-video-to-youtube">Upload a video to youtube $ google youtube post –title "My Video" –category Education ~/myvideo.avi <a class="zem_slink freebase/guid/9202a8c04000641f800000000042acea" title="Google" rel="homepage" href="http://google.com">Google just released a new commend line tool offering all sorts of new services from the commend line. One of them is uploading a <a class="zem_slink freebase/guid/9202a8c04000641f8000000000982f58" title="YouTube" rel="homepage" href="http://www.youtube.com/">youtube video but there are plenty more google services to interact with. <a class="zem_slink freebase/guid/9202a8c04000641f8000000000054c6a" title="Uploading and downloading" rel="wikipedia" href="http://en. Continue reading

Script to download all the related videos from youtube with youtube-dl

2010-05-17 2 min read Fedora Linux Uncategorized
Lets cut the long discussion <a class="zem_slink freebase/en/short_subject" title="Short film" rel="wikipedia" href="http://en.wikipedia.org/wiki/Short_film">short and directly give you the script. The script is combination of all the posts that I did in the past about youtube <a class="zem_slink freebase/en/uploading_and_downloading" title="Uploading and downloading" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uploading_and_downloading">downloads. You need to copy all the <a class="zem_slink freebase/en/uniform_resource_locator" title="Uniform Resource Locator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL&#8217;s in a file called &#8221;~/youtube.urls&#8221; which you want to be downloaded. Or if you need to donwload the related videos, then save the html of the page and give it as the first argument for the script. Continue reading

Downloading all related videos from youtube with youtube-dl

2010-05-16 2 min read Fedora Learning Linux Uncategorized
How many time did you want to see all the videos (related) to the one you were watching on youtube but decided otherwise as the downloaded was not fast enough. Or has it happened to you that you wanted to <a class="zem_slink freebase/en/uploading_and_downloading" title="Uploading and downloading" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uploading_and_downloading">download all the related videos, in either case you can use the youtube-dl utility I blogged about some times back. First you need to get all the <a class="zem_slink freebase/en/uniform_resource_locator" title="Uniform Resource Locator" rel="wikipedia" href="http://en. Continue reading
Older posts