ansible with docker dynamic inventory

2017-01-09 2 min read bash Fedora Vurtualization
So, I have a few dockers. Every now and then I want to run some command on all of them. Doing ‘docker exec’ is tiresome. I found this neat solution with ansible that I thought I should share with you. To get started, you need to have the “docker.py” script. This script will be used as python script inventory for ansible. So, use the following command and get the script: Continue reading

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

meld – cvs diff with ease

2012-10-17 1 min read Fedora
Visualization of the “history tree” of a revision controlled project, showing branching, merging, tagging, etc. (Photo credit: Wikipedia) There are couple of ways to make life easier with CVS diff. But here is one that is really good. First if you haven’t, install meld: sudo yum install meld meld is basically a diff viewer and pretty good at it 😉 Now open meld from the menu or from the terminal. And then select New. Continue reading

Ignore CVS and svn directories in bash autocompletion.

2012-07-07 1 min read bash Linux
CVS and SVN directories are something that really cause lot of un-necessary nuisance. So, simple solution just ignore them 🙂 export FIGNORE=CVS:~:.o:.svn bind 'set match-hidden-files off' Related articles How to use TortoiseSVN to get files that under a specific version(stackoverflow.com) Quick (and messy) svn merge branch to trunk(hattb.wordpress.com) Acunetix Web Vulnerability Scanner Parses Version Control Systems(acunetix.com)