DNScat works!
Sunday, October 31st, 2004pppd noauth debug nodetach passive 10.0.0.1:10.0.0.2 pty “./DNScatServer -o tadekp.afraid.org -p 50000″
pppd noauth debug nodetach pty “./DNScatClient -o tadekp.afraid.org”
pppd noauth debug nodetach passive 10.0.0.1:10.0.0.2 pty “./DNScatServer -o tadekp.afraid.org -p 50000″
pppd noauth debug nodetach pty “./DNScatClient -o tadekp.afraid.org”
I discovered that $Id$ tags won’t work in SVN by default. You need to add the following properties to the file you want the tags to be replaced:
svn propset svn:keywords Id “$file”
I found a nice webpage discussing SVN <-> CVS migration.
use re ‘eval’; #this evil command enables it!
$a = “bla”; $user_input = “(?{print “we’re executing this code ;-)\n”;})”; $a =~ /$user_input/;
@files=ls $ARGV[0];
print “file list: @files\n”;
perl -e ‘use URI::Escape; while(<>) { chop $_; print(uri_escape($_).”\n”);} ‘
Java 1.5 changed the implementation of StringBuffer and introduced a new StringBuilder (actually both inherit from AbstractStringBuilder). It looks + operator can be either compiled to use StringBuffer (slower, but synchronized) or StringBuilder (faster, thread unsafe). (more…)
Just a reminder:
A cool perl one-liners from Diego:
perl -ne ‘$name = $1 if /application name=(.);/; /text=(.(SELECT|INSERT|UPDATE|DELETE).*$)/i && print “$name => $1\n”;’ db2audit.txt | less
perl -ne ‘/text=(.(SELECT|INSERT|UPDATE|DELETE).$)/i && print “$1\n”‘ db2audit.txt
I found a nice program PQA written in Ruby to show query statistics based on database logs. That sound like almost exactly what I needed, so I tried it on MySQL MT log files and some other data. There were a few bugs that I fixed.
In addition I added a new report printing unique queries and when they occurred. It seems to work fine and with help of awk/make/gnuplot generated a few nice graphs.
Supposedly works, and there are three ways of doing it. Note that there can be a problem when using it with Javac and source lists:
“Beware of using regular source lists with this; javac may prune unchanged files, which excludes them from the compile process for ajc, which requires that all files affected by any aspects be listed explicitly.”
I haven’t tried it yet, but it looks like a nice thing to know.