Some unrelated thoughts

?

Restore a SSH public key

I recently had the problem that I had on a system the private part of the SSH key but its public part got lost. Generating a new key pair wasn't possible as the public part was still installed on other systems for proper public key authentication and I could not change this.

So, I needed to restore the public part of the SSH key. After a bit of using my favourite search engine, I noticed that it is way easier than I expected:

ssh-keygen -y -f ~/.ssh/id_rsa

This command will print the public part of the key in ...

gpg-update-key

If you are using GnuPG, you may receive new signatures or do other changes to your GPG key and want to upload it to keyservers and/or your webserver to make it easier for other people to find it.

Since this is a tedious task, I wrote a little script "gpg-update-key" which does the job for me:

#!/bin/sh

KEY="CC03633F700990F2"
REMOTE_DIR="myserver.org:/var/www"

# upload the key to some key servers
gpg --keyserver subkeys.pgp.net --send-key ${KEY}
gpg --keyserver pool.sks-keyservers.net --send-key ${KEY}
gpg --keyserver pgp.uni-mainz.de --send-key ${KEY}
gpg --keyserver pgp.surfnet.nl --send-key ...

VzUbcMon

A simple monitor to regularly check for UBC failcount changes in OpenVZ/Virtuozzo containers. It's designed to run as a cronjob to mail the report to the admin if there are any changes.

The source code for download can be found at https://github.com/eht16/vzubcmon.

PyWsdlGen

PyWsdlGen is a little tool to generate a Web Services Description Language (WSDL) file from Python source files. It parses a given Python source file and reads all public methods defined in this file to generate a WSDL file to be used for example for SOAP services implemented in Python.

For more information please, check out the GIT repository, available at http://repo.or.cz/w/pywsdlgen.git.

Build GIT version of Xfce4

This is a little build script for Xfce4 to fetch and compile the sources from GIT (master). Short instructions:

You should start with an empty directory, where you put this script. Edit the script and modify the list of packages or modules, you want to install.

Then run the script with:

./xfce4-build.sh init

this fetches the sources from the Xfce GIT server and:

./xfce4-build.sh build

configures, builds and installs the sources. For more information read the script (it's really simple). The script can be downloaded at http://files.uvena.de/xfce4-build.sh.

Page 1 of 3 1 2 3 »