cvs add files recursively – not already in repository

2013-11-12 1 min read Linux

When you have a lot of files in some repository and you have added a couple of new, in CVS there is no command to add just the new ones to the repository, so here is a workaround for that.

cvs status 2>/dev/null | awk '{if ($1=="?")print "cvs add -kb " $2}'

Well, if you are adding text files then you might want to remove the “-kB” in the cvs command above.

Continue reading

configure firewall – the easy way.

2013-04-24 1 min read Fedora Linux

It is good practice to keep iptables/firewall enabled. But configuring it is difficult, do you agree. Not any more 🙂

Install firewall-config

sudo yum install firewall-config

This will install a GUI application, which you can run with “Firewall” application in the dash or with “firewall-config” in terminal. It is pretty straight forward to use this tool, even if you don’t have much knowledge on Firewall/iptables.

Continue reading

Battery performance improvement with powertop and using xidel.

2012-12-24 1 min read Fedora Linux

For those of you, who have not heard about powertop, it is a tool to monitor the power consumption on your system. It has a tab which shows the tuneable parameters. Doing the changes suggested in those would improve the life to quite an extent. Here is the description of powertop:

PowerTOP is a tool that finds the software component(s) that makeyour computer use more power than necessary while it is idle.

Continue reading

Ubuntu – Really force remove a package.

2012-09-17 1 min read Linux

I was trying to remove a package on one of the Ubuntu installations the other day and was not able to do so. I tried google and tried all the options mentioned in various forums like “-f”, purge, reinstall and few others but nothing helped. I kept getting some errors about some files being already deleted. I also tried “set -e” in the prompt but the only result I got was terminal also getting killed.

Continue reading

snmpd -verify if the mibs are loaded.

2012-09-10 1 min read Fedora Linux

If you are setting up the snmpd server and have added your own mibs and do not really know if the mibs are loaded or not then simply go to the directory:

/var/lib/net-snmp/mib-indexes

This can save you a lot of time, if you are not getting results with snmpwalk. You can even use snmpwalk as :

snmpwalk -v  -c

Well, these little things can save you a lot of time 🙂

Continue reading

gqlplus – sqlplus with readline (tab completion)

2012-08-03 1 min read Database

Tab completion is something which is missing in the sqlplus and if you have lot of tables with long names or lot of columns then it is sufficiently  difficult to type them 🙂

Here is a solution for this problem. Download and install gqlplus. gqlplus is a replcement for sqlplus which supports completion for commands/tablenames and column names. Quite useful.

Oracle SQL*Plus
Oracle SQL*Plus (Photo credit: Manuel Cernuda)
Enhanced by Zemanta
Older posts