![]() |
| Graghviz in action |
May 18, 2012
Graphviz - dot source for my graph
For those who wandered what is the input file for my graph... The input files for graphviz are called "dot" files. Here is the input "dot" file for my graph from the last post:
May 16, 2012
Graphviz - data visualization
I had a problem to follow a logic in someones programming and I had to deliver... I had to come up with a solution to push the brick forward. I started to look for a visualization tool for my problem. And to my surprise I found a graphviz - a tool for data visualization.
After some time I was able to come up with this:
After some time I was able to come up with this:
![]() |
| Graphviz in action |
LiquiBase - the way to handle a database
I am in a middle of rework of an old script. Whole structure of a solution was cumbersome a lot so I had to step in to correct the stuff. I knew that the script has some data in a MySQL database. It uses few tables in a large db with tens and tens of other tables.
Apr 4, 2012
Long time no ... write....
I see I didn't put a link over here for almost two years. Yeah, a lot changed since my last update... I'll start to cover it soon topic by topic.
Aug 27, 2010
SVN backup script
Here something to drop to an SVN server:
#!/bin/bash
SUFIX=`date +%Y%m%d`
DIR_BASE=/tmp/`hostname`_svn_
DIR_WRK=$DIR_BASE$SUFIX
DIR_REPOS=/path/to/a/directory/with/svn/repositories
REPOS="SVNRepo1 SVNRepo2"
STORAGE=backup@int.storage.server:/path/to/backup/location
# -- init working directory
echo "`date` - Preparing backup directory"
rm -rf $DIR_BASE*
mkdir -p $DIR_WRK
echo "`date` - Changing into backup directory '$DIR_WRK'"
cd $DIR_WRK
for repo in $REPOS
do
path=$DIR_REPOS$repo
if [ -d $path ]; then
mkdir $repo
echo "`date` - Backing up '$repo' to '$repo/repository.dump'"
svnadmin dump $path > $repo/repository.dump
cp $path/access-policy $repo/.
cp $path/svn-auth-file $repo/.
echo "`date` - Compressing '$repo' to '$repo.tgz'"
tar -czf $repo.tgz $repo
echo "`date` - Deleting '$repo'"
rm -rf $repo
else
echo "`date` - Repository '$path' does not exist"
continue
fi
done
# -- transfer to a safe place
echo "`date` - Transfering backup directory to a remote location"
rsync -re ssh $DIR_WRK $STORAGE
echo "`date` - Cleaning up backup directory"
rm -rf $DIR_WRK
echo "`date` - Done"
Subscribe to:
Posts (Atom)
