Pimp your ls

2010-05-27 1 min read Bash

Here are some of the things that you can do with your ls command.

First off you can use alias’s to help you type the most typical ls commands. I will give you some examples:

alias ls =”ls –color –classify”
alias ls.=”ls -d .*”

Very commonly used :

  <td>
    <div class="text codecolorer">
      alias ll="ls -lhvrt"<br /> lsd="ls -lUd */" # List directories only
    </div>
  </td>
</tr>
1
2

And after all this you can download the l script from pixelbeat. Quite interesting:

Continue reading

Firefox Disables Microsoft .NET Addon

2010-05-27 1 min read Linux

Firefox Disables Microsoft .NET Addon ZosX writes &#8221;Around 11:45 PM Friday night, I was prompted by Firefox that it had disabled the addons that Microsoft has been including with .NET — specifically, the .NET Framework Assistant and the Windows Presentation Foundation. The popup announcing this said that the &#8217;following addons have been known to cause stability or security issues with Firefox.&#8217; Thanks, Mozilla team, for hitting the kill switch and hopefully this will get Microsoft to release a patch sooner.&#8221; Here&#8217;s the Mozilla security blog entry announcing the block, which Mozilla implemented via its blocklisting mechanism.

Continue reading

vim - get mappings from the help tex files available with the scripts.

2010-05-27 2 min read Fedora Learning Linux Vim Tips

Here is a simple script that will show all the vim mappings from the tex file (help file that comes with the vim scripts).

This will prove to be very useful in usin gthe mappings 🙂

#!/bin/bash –
#===============================================================================

#          FILE:  get_mappings_from_tex_for_vim.sh

#         USAGE:  ./get_mappings_from_tex_for_vim.sh

#   DESCRIPTION:  Get the mappings from tex file

#       OPTIONS:  —
#  REQUIREMENTS:  —
#          BUGS:  —
#         NOTES:  —
#        AUTHOR:  <a class="zem_slink" title="Amit Agarwal" rel="self" href="http://blog.amit-agarwal.co.in">Amit Agarwal (AKA), amit.agarwal@amit-agarwal.co.in
#       COMPANY:  Individual
#       VERSION:  1.0
#       CREATED:  09/06/2009 09:19:19 PM IST
#      REVISION:  —
#===============================================================================
file=$1
IFS=$(echo -e &#8217;\n&#8217;)
for i in $(cat $file |<a class="zem_slink freebase/en/grep" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep &#8221;^..line&#8221;)
do
#echo $i |<a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk -F&#8221;&#8217;&#8221; '{print $2&#8221; &#8221; $3&#8221; &#8221;$4}&#8217;|awk -F&#8221;&&#8221; '{print $1&#8221; &#8221;$2}&#8217;
echo $i |awk -F&#8221;&#8217;&#8221; '{
if ( NF >= 4 )
{
print ($2&#8221;\t ->&#8221;$4&#8221;\t==»&#8221;$NF);
}
else
{
print($2&#8221;\t–>&#8221;$3);
}
fi
}&#8217;  |<a class="zem_slink freebase/en/sed" title="Sed" rel="wikipedia" href="http://en.wikipedia.org/wiki/Sed">sed &#8217;s/\h.*(/(/&#8217; |sed &#8217;s/>.*&/>/&#8217; |sed &#8217;s/\t*-.>$//&#8217; |sed &#8217;s/\//&#8217;

Continue reading

more powerful grep – ack

2010-05-26 2 min read Bash Fedora

For last couple of days, I have been using ack instead of grep. Here is description of ack:

Ack is designed as a replacement for grep.

There are couple of reasons I am using ack. First and foremost being it does not require a filename. So, for seaching amit in all files recursively under the current directory I can simply use

ack amit

More reasons to use ack:

It supports pager option and there can be a rc file that can be used to define the default options that needs to be used with ack. Here is the contents of my $HOME/.ackrc file.

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

gnome-disk-manager – the easier way to manage disks in Gnome with Palimpsest

2010-05-25 1 min read Fedora GNOME Linux

I had been using quite different set of tools to this but this is really good. Just install the gnome-disk-manager with

sudo yum install gnome-disk-manager

The interface is very clean and easy to understand and is it very very fast when compared to the other Graphical utilities.

Here are some screenshots to take you through.

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001.jpe"><img class="alignnone size-full wp-image-1204" title="screenshot_001" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001.jpe" alt="screenshot_001" width="806" height="626" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_002.jpe"><img class="alignnone size-full wp-image-1205" title="screenshot_002" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_002.jpe" alt="screenshot_002" width="806" height="626" />

Continue reading
Older posts Newer posts