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

New Improvements in the site and added few more features.

2010-07-11 2 min read Uncategorized

Last couple of days I have spent quite some time on the <a class="zem_slink freebase/guid/9202a8c04000641f8000000000041684" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website design and format and performance along with moving my Hosting Provider.

Here are couple of things that you would notice immediately:

  1. Site loading time is decreased substantially. I saw it loading in 5 seconds from my system.

  2. I have moved my hosting from ZNetIndia to <a class="zem_slink freebase/guid/9202a8c04000641f80000000003f4284" title="Go Daddy" rel="geolocation" href="http://maps.google.com/maps?ll=33.617409,-111.90477&spn=0.01,0.01&q=33.617409,-111.90477%20%28Go%20Daddy%29&t=h">GoDaddy. Though the users do not have any direct impact in experience but that has definitely improved the performance. I have spent quite some amount of money on this and would request the viewers to click on the <a class="zem_slink freebase/guid/9202a8c04000641f800000000042acea" title="Google" rel="homepage" href="http://google.com">Google Advertisements to help me cover it. You help is much appreciated. Other way you can help is by way of buying my photos from my <a title="My E Sop" href="http://shop.amit-agarwal.co.in" target="_blank">e-shop.

    Continue reading

Google chrome on Fedora 11 Leonidas.

2010-06-24 1 min read Fedora

Earlier I had posted a article on installing <a href="http://blog.amit-agarwal.co.in/2009/07/20/chrome-chromium-on-linux-repo/" target="_blank">chromium on Linux. Chromium is the open source version of the browser which is used by Google to develop its famous browser Chrome. Now chrome rpm is available from google site to install on F11. Here&#8217;s how to do it. First we will add a repo for google. As root user do the following:

cat «EOF >/etc/yum.repos.d/google.repo

[google]
name=Google – i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1

Continue reading

List of commands you use most often

2010-06-16 1 min read Bash Learning

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/6MxHiSiINdo/list-of-commands-you-use-most-often">List of commands you use most often

$ history | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head > /tmp/cmds | gnuplot -persist <(echo 'plot "/tmp/cmds" using 1:xticlabels(2) with boxes') Plot your most used commands with gnuplot.

  • <a href="http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/sthrs">View all commands by <a href="http://feeds2.feedburner.com/commands/by/sthrs">sthrs

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="commandlinefu.com" align="bottom" />

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

Determine what process is listening on a port on Solaris, without lsof

2010-06-08 0 min read Linux Solaris
\"Desktop
Image by Metsuke iLife via Flickr

$ for x in `ptree | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{print $1}&#8217;`; do pfiles $x | <a class="zem_slink freebase/en/grep" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep ${PORT} > /dev/null 2>&1; if [ x&#8221;$?&#8221; == &#8221;x0&#8221; ]; then ps -ef | grep $x | grep -v grep; fi; done 2> /dev/null

Continue reading
Older posts Newer posts