Archive for the ‘Uncategorized’ Category

ssh-agent in Cygwin

Wednesday, 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

Friday, 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

Wednesday, 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…

Tuesday, 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

Tuesday, 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

Tuesday, 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

Monday, January 4th, 2010

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

Skip tests during a Maven build

Wednesday, 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

Monday, November 30th, 2009

A set of commonly used Oracle Replication commands:

(more…)

Remote Desktop Connection: Access Windows from Mac

Sunday, November 29th, 2009

Get de RDC client for Mac from:
http://www.microsoft.com/mac/products/remote-desktop/default.mspx

or better, use CoRD
http://cord.sourceforge.net/
… CoRD seems to handle Windows keymap better (Function keys etc…)

To enable Concurrent Sessions on Vista, and to activate RDC on Vista Home Edition, see here:
http://www.missingremote.com/index.php?option=com_content&task=view&id=1220&Itemid=232

If Windows is running Vista SP1, take te Terminal Services DLL from here:
http://www.unet.fi/fransblog/2007/08/30/enable-remote-desktop-connection-on-vista-home-premium/

Also

  • Open up the Firewall
  • Make sure that the Termial Services serviceis running on Vista