Pimp your ls

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 :

alias ll="ls -lhvrt"
lsd="ls -lUd */" # List directories only

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



Firefox Disables Microsoft .NET Addon

Firefox Disables Microsoft .NET Addon ZosX writes \”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 \’following addons have been known to cause stability or security issues with Firefox.\’ Thanks, Mozilla team, for hitting the kill switch and hopefully this will get Microsoft to release a patch sooner.\” Here\’s the Mozilla security blog entry announcing the block, which Mozilla implemented via its blocklisting mechanism.

Read more of this story at Slashdot.

URL: http://rss.slashdot.org/~r/slashdot/eqWf/~3/QK8qQbn4OPw/Firefox-Disables-Microsoftnobr-wbrnobrNET-Addon

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

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:  —
#          BUGS:  —
#         NOTES:  —
#        AUTHOR:  Amit Agarwal (AKA), amit.agarwal@amit-agarwal.co.in
#       COMPANY:  Individual
#       VERSION:  1.0
#       CREATED:  09/06/2009 09:19:19 PM IST
#      REVISION:  —
IFS=$(echo -e \’\\n\’)
for i in $(cat $file |grep \”^..line\”)
#echo $i |awk -F\”\’\” \'{print $2\” \” $3\” \”$4}\’|awk -F\”&\” \'{print $1\” \”$2}\’
echo $i |awk -F\”\’\” \'{
if ( NF >= 4 )
print ($2\”\\t ->\”$4\”\\t==>>\”$NF);
}\’  |sed \’s/\\h.*(/(/\’ |sed \’s/>.*&/>/\’ |sed \’s/\\t*-.>$//\’ |sed \’s/\\//\’