Git visualization with gource
Sun, 06 May 2012 by Frank LazzariniAre you using git/svn/mercurial/bazaar as version control system and you ever wanted to visualize your work, how the project developed over time well Gource is there to visualize all this in a beautiful way. It takes the history of your svn/git/mercurial/bazaar repository and visualizes the changes over time, by whom they were done and so forth.
First we need to install gource if you are on Ubuntu/Debian do the following
sudo apt-get install gource
Now run the following with path/to/project being your projects root directory, and give gource the .git subfolder. Run it and you should see the animation being presented.
gource /path/to/project/.git/
Now to export this to an mpeg4 video do the following.
gource /path/to/project/.git/ --stop-at-end --output-ppm-stream - | ffmpeg -y -b 6000k -r 60 -f image2pipe -vcodec ppm -i - -vcodec mpeg4 /tmp/gource.mp4
Run through folder add files with a certain extension to a list - Python Oneliner
Here is great Python Oneliner I came across, to put a list of files ending with a certain extension or name to a list, all this in just one line...
import os
list = []
list += [each for each in os.listdir('path/to/files') if each.endswith('.jpg')]
Python resize image keeping aspect ratio
This time I am posting just a little snippet which came in handy with the latest web development I am doing. The problem was to resize an uploaded image on the fly and creating an according thumbnail for that image. For testing purposes I create a script that could be …
read morePython Kinterbasdb from source on ubuntu
This is a little tutorial about how to compiler python-kinterbasdb from source in ubuntu, due to the fact that the official packages are broke. First off you need the following dependencies build-essentials, python-dev, firebird2.1-dev.
root@linuxbox:~$ apt-get install build-essential python-dev firebird2.1-dev
Afterwords download the latest package from https …
read moreFirebird Nagios plugin check_firebird.py
At work we use a lot of Firebird databases, and so far our system admins checked the availability of a Firebird Database by simply trying to connect via telnet to the port 3050 and see if they would get a response. With this kind of check you can't really determine …
read moreRename white spaces in folders to dots
Don't you just hate when you get a copy of a scene release from somewhere and the guy that gave it to you "descened" the release folder, i.e out of Something.other.than.Potato.HDTV.XviD became Something other than Potato HDTV XviD. So how to fix this, in …
read more