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.wikipedia.org/wiki/Uploading_and_downloading">Download it here: <a href="http://code.google.com/p/googlecl/">http://code.google.com/p/googlecl/

Continue reading

concatenate compressed and uncompressed logs

2010-07-15 1 min read Bash Fedora Linux

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/iwFUyltYgjM/concatenate-compressed-and-uncompressed-logs">concatenate compressed and uncompressed logs

$ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/guid/9202a8c04000641f800000000001abd9" title="Gzip" rel="homepage" href="http://www.gzip.org/">zcat {} ; -or -name 'access.log' -exec cat {} ; This command allows you to stream your log files, including gziped files, into one stream which can be piped to <a class="zem_slink freebase/guid/9202a8c04000641f800000000000584b" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk or some other command for analysis.

Note: if your version of &#8217;find&#8217; supports it, use:

Continue reading

Using tput to save, clear and restore the terminal contents

2010-06-17 1 min read Linux

Using tput to save, clear and restore the terminal contents $ tput smcup; echo &#8221;Doing some things…&#8221;; sleep 2; tput rmcup Very useful for interactive scripts where you would like to return the terminal contents to its original state before the script was run. This would be similar to how vi exits and returns you to your original terminal screen.

Save and clear the terminal contents with:

tput smcup

Continue reading

Google Profiles Turn Into OpenIDs

2010-06-14 0 min read Linux
\"Image
Image via CrunchBase

As part of its push to go more social, <a class="zem_slink freebase/guid/9202a8c04000641f800000000042acea" title="Google" rel="homepage" href="http://google.com">Google has been attempting to unify its various account profiles into one Google Profile. And now it’s more useful. Google’s <a href="http://www.crunchbase.com/person/brad-fitzpatrick">Brad Fitzpatrick has just <a href="http://twitter.com/bradfitz/status/6059279144">tweeted out that Google Profiles can now be used as OpenIDs.

Continue reading

10 Wordpress Traffic Builder Plugins That Work

2010-05-26 2 min read Uncategorized

This article covers several useful <a class="zem_slink freebase/en/wordpress" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress traffic builder <a class="zem_slink freebase/en/plugin" title="Plug-in (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Plug-in_%28computing%29">plugins. The most important aspect of owning a <a class="zem_slink freebase/en/website" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website is the amount of visitors you receive. I’m referring to your website’s traffic, which can be very hard to generate in the beginning stages. It’s essential that you <a href="http://www.makeuseof.com/tag/6-websites-to-track-a-websites-traffic/">track your website’s traffic to see where you’re at.

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. So, here&#8217;s the scrit:

Continue reading

They own your CPU (and so so in Windows and Mac, too)

2010-05-16 1 min read Firefox Linux

Click: &#8221;I laugh — LAUGH! — when a tech journalist writes something to the effect of, &#8221;for lightweight tasks such as Web browsing,&#8221; when you know, and I know, that there ain&#8217;t nothing light about using present-day Web browser on present-day Web pages filled with Javascript, Flash and enough CSS to fill a book.&#8221;

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-22-030-35-OP-HW-SW">http://linuxtoday.com/news_story.php3?ltsn=2009-10-22-030-35-OP-HW-SW<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.noupe.com/jquery/35-fresh-useful-jquery-plugins.html">35 Fresh and Useful jQuery Plugins (noupe.com) <li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5376222/firefox-36-beta-scheduled-for-next-week">Firefox 3.6 Beta Scheduled for Next Week [Updates] (lifehacker.com) <li class="zemanta-article-ul-li"><a href="http://www.wisdump.com/web-experience/3-nifty-browsing-features/">3 nifty browsing features that should be on every site (wisdump.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/4094c4e7-74b7-4826-9095-0306e76f7c8e/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e9.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">

Continue reading
Older posts Newer posts