Startup issue MySQL 5.5 on Mac OSX 10.6

January 3rd, 2011

How to resolve:

ssh-agent in Cygwin

August 4th, 2010

SSH_PRIVATE_KEY=”${HOME}/.ssh/id_rsa”
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS=”-s”

if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ];
then
eval `$SSHAGENT $SSHAGENTARGS`
trap “kill $SSH_AGENT_PID” 0
fi

echo “SSH_AUTH_SOCK: ” ${SSH_AUTH_SOCK}
echo “SSH_AGENT_PID: ” ${SSH_AGENT_PID}

ssh-add ${SSH_PRIVATE_KEY}

PuttyCM on Windows 7 - Main Window Disappears

May 28th, 2010

Putty Command Manager behaves badly when focus is lost. This is Windows7 specific. It disappears to the background and the only way to bring it back is to reactivate it through “Process Explorer”.

Deselect “Hide when minimized” in Options -> General
Seems to help.

Source: http://puttycm.free.fr/cms/index.php?option=com_wrapper&view=wrapper&Itemid=56

Maven ear building

May 19th, 2010

Good summary on the subject: Because I always forget how to use maven-ear-plugin

Find a Java class in a library, somewhere…

May 11th, 2010

Get the JFind jar here:
http://jfind.sourceforge.net/

and fix a quick launcher:


jan@laptop-janvb ~ $ cat bin/jfind.sh
if [ $# -ne 2 ]
then
echo “Usage: `basename $0` classname fromDir”
exit 1
fi
echo Search String: $1
SEARCH_LOCATION=`cygpath -w $2`
echo Windows Search Location: $SEARCH_LOCATION
java -jar `cygpath -w $HOME/bin/JFind.jar` “$1″ “$SEARCH_LOCATION”
echo

Fix ulimit issue on JBoss for OSX

May 11th, 2010

Add the following to run.sh:

if [ "$darwin" = "true" ]; then
MAX_FD_LIMIT=`sysctl -n kern.maxfilesperproc`
fi

Use Putty Connection Manager for local Cywin sessions

May 11th, 2010

Schedule a local sshd service, following the second approach in this article:

http://nfnaaron.posterous.com/tag/puttycyg

… as from then BUA

Groovy Shebang

January 4th, 2010

#!/usr/bin/env groovy
println "Hello " + args[0]

Skip tests during a Maven build

December 30th, 2009


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

Multi-Master Oracle Replication - admin scripts

November 30th, 2009

A set of commonly used Oracle Replication commands:

Read the rest of this entry »