wtorek, 16 czerwca 2009

How to get X.509 certificate from CMS/PKCS#7 signature

openssl pkcs7 -in signaturefile.sig -inform DER -print_certs -text

sobota, 13 czerwca 2009

Display a command result in new Xfce terminal window

Sometimes you just want to display a result, as for ls:

xfce4-terminal -H -e ls

But sometimes it makes sense to display results continuosly, like for htop or elinks:

xfce4-terminal -e htop

How to get executable shell scripts from Subversion repository

All you have to do is to set svn:executable property on the file

svn propset svn:executable on somescript.sh

svn commit

Especially important when done on Windows (SVN client should set this automatically if executable file is being added to version control on Linux)

Keyboard shortcut for "Add to version control" in eclipse

I am really fed up with right-clicking and choosing "Add to version control". I defined a keyboard shortcut then. 

Press Ctrl Shift L twice. On "Keys" preference page find "Add to version control", preferably using the relevant search box. When - "In windows". I chose "Ctrl+Shift+Alt+C" so that it won't interfere with anything (I hope).