Get the most favourite commands from commandlinefu

2010-05-12 1 min read Bash

For those of you who don’t know, commandlinefu should be one place you should watch to learn new things for command line. Everyday a lot of people post commands to better the previously posted commands. If you want to get the best voted commands from the archieves of commandlinefu then you can use the command:

curl -O &#8221;<a rel="nofollow" href="http://www.commandlinefu.com/commands/browse/sort-by-votes/plaintext/%5B0-2400:25%5D">http://www.commandlinefu.com/commands/browse/sort-by-votes/plaintext/[0-2400:25]&#8221;

Suggested by Dynetrekk ****<a href="http://www.commandlinefu.com/commands/view/2740/get-all-these-commands-in-a-text-file-with-description" target="_blank">here.

Walk through the flower.

2010-05-11 1 min read Photo

Here&#8217;s one of the photos that I took in last few days of the 2009. I like to call it Walk through the flower. Its a super macro of the inside of flower.

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/01/DSCF7409.jpg"><img class="size-medium wp-image-1477" title="Walk through the flower." src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/DSCF7409-300x224.jpg" alt="Walk through the flower." width="300" height="224" />

Pretty soon you you would be able to buy this photo on <a href="http://shop.amit-agarwal.co.in">http://shop.amit-agarwal.co.in

Firefox 4.0 mockups for LInux/Windows and Mac

2010-05-11 1 min read Firefox
https://wiki.mozilla.org/Firefox/Projects/3.7_and_4.0_Theme_and_UI_Revamp
The link above will take you to the Mozilla wiki for the UI and theme mockups for the Firefox 4.0 release. Quite interesting but what I did not like is that the Linux mockup looks more like chrome. Not sure why mozilla would want to do that 🙂
  • Tabs-on-top: Defaut tabs to top of UI.
  • Hiding the Menu Bar: Hide the menu bar and add Page and Tools buttons.

The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee-gnome v0.9<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.engadget.com/2010/05/10/mozilla-shares-tentative-vision-for-firefox-4/">Mozilla shares tentative vision for Firefox 4 (engadget.com) <li class="zemanta-article-ul-li"><a href="http://news.slashdot.org/story/10/05/11/1222211/Mozilla-Reveals-Firefox-4-Plans?from=rss">Mozilla Reveals Firefox 4 Plans (news.slashdot.org) <li class="zemanta-article-ul-li"><a href="http://www.techmeme.com/100511/p7">Mozilla&#8217;s Plans for Firefox 4: Faster, Sleeker Interface & Better Privacy Controls (Frederic Lardinois/ReadWriteWeb) (techmeme.com) <li class="zemanta-article-ul-li"><a href="http://www.techmeme.com/100510/p67">Firefox 4: fast, powerful, and empowering (Mike Beltzner/beltzner) (techmeme.com) <li class="zemanta-article-ul-li"><a href="http://blogs.chron.com/techblog/archives/2010/05/firefox_4_coming_soon_beta_as_early_as_june_1.html">Firefox 4 coming soon; beta as early as June (blogs.chron.com) <li class="zemanta-article-ul-li"><a href="http://r.zemanta.com/?u=http%3A//www.cbsnews.com/8301-501465_162-20004666-501465.html&a=17869870&rid=73c491d4-0778-448a-ba05-b7758f91e1c9&e=e813a95fa56524108572b5f7c80e8075">An Early Look at the Next Version of Firefox (cbsnews.com) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/73c491d4-0778-448a-ba05-b7758f91e1c9/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b85.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

Easier Reinstalls

2010-05-10 1 min read Bash Fedora Linux

<span style="font-size: x-large;"><a href="http://www.howtoforge.com/easier-reinstalls">E<a href="http://www.howtoforge.com/easier-reinstalls">asier Reinstalls

Easier Reinstalls

I typically reinstall my computer operating system every six months. The reasons for this are that it cleans out the system and reinstalls require me to be in front of the computer for a total of about ten minutes so it&#8217;s painless. Notice I said &#8221;in front of the computer&#8221;, the system does all of the work for me with some specially crafted bash scripts.

Continue reading

coproc help - a new feature in bash

2010-05-10 0 min read Bash Fedora Linux
\"Screenshot
Image via Wikipedia

In the <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash version 4.0, there is a new concept called coproc. This is very useful for some of the daily tasks.

co-<a class="zem_slink freebase/guid/9202a8c04000641f800000000005a409" title="Process (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Process_%28computing%29">process starts a process in the background, optionally with a NAME, with which other processes can communicate. This can be a very <a class="zem_slink freebase/en/substitute_good" title="Substitute good" rel="wikipedia" href="http://en.wikipedia.org/wiki/Substitute_good">good substitution for <a class="zem_slink freebase/guid/9202a8c04000641f800000000048fac5" title="Pipeline (Unix)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Pipeline_%28Unix%29">pipes in lots of cases. You can learn more about coproc in the link below:

Continue reading

Download with browse with bash and wget

2010-05-09 1 min read Bash Fedora

Been pretty busy for last couple of days. Will be busy for another few days, but here&#8217;s something to munch in the meantime (Script may need changes depending on the type of file you want to download or the site you are browsing, but the chnages should be minimal):

file=&#8221;/tmp/temp.dir&#8221;
url=&#8221;URL Here&#8221;
IFS=&#8217;
&#8217;
cont=&#8221;y&#8221;
while [ $cont != &#8221;n&#8221; ]
do
name=&#8221;&#8221;
wget &#8221;$url&#8221; -O $file -o /dev/null
for i in $(grep href $file |grep -v Parent)
do
name=${i##href=&#8221;}
name=${name%%&#8221;>
}
echo $name
if [[ $name == *gz ]]
then
cont=&#8221;n&#8221;
fi
done
if [ ! $name ]
then
echo &#8221;No files here.. Exiting&#8221;
exit -1
fi
echo
if [ $cont == &#8221;n&#8221; ]
then
echo &#8221;Enter the filename for download :&#8221;
read file
fi
echo &#8221;Select one of the options:&#8221;
read product
url=&#8221;$url/$product&#8221;
echo &#8221;About to get $url&#8221;
done
wget &#8221;$url&#8221; -O $file -o /dev/null

Continue reading
Older posts Newer posts