Christoph Polcin

GPG/GnuPG Spickzettel

Es folgt die 1001 GnuPG Kurzübersicht.
Read on →

Getting Your Notes Done

I stumbled upon a great idea: store quick notes in a private mailbox. It's a very smart solution especially because the notes are searchable and available from anywhere. The concept is quite easy to implement therefore it's adjustable to various toolchains.
Read on →

ZSH Archive Function

This simple shell function creates various archives dependent on the file extension.
Supported extensions: tar.bz2, tar.gz, tar.xz, tar.lzma, bz2, gz, tar, tbz2, tgz, zip, 7z

useage: pack archive.extension [file|dir]+
Read on →

Choosing A Camera Lense

Sometimes it's so hard to make a decision, even on a simple thing. Therefore I considered the metadata from old images to get an overview of my settings. The rate of focal length, exposure time and aperture values might help me to select a new lens which may fit my needs.
Read on →

Check Out dwm

If you're running a Linux box and your window manager feels to bloated? If you're bother with large con­fig­u­ra­tion files and ap­pli­ca­tion windows which pop up randomly where they like? If You would love to group windows by tags and manage them in tiled, monocle or custom layouts? Or if you're just looking for a light­weight and fast window manager?

Than go for dwm!

Hold on! I'm main­tain­ing udwm a fork with a few useful patches already applied. Right! Grab the latest snapshot and get your hands dirty.

dlgr - Datalogger For Time Series Data

Datalogger aka dlgr is a simple command-line ap­pli­ca­tion. It logs one floating point value per time. The ap­pli­ca­tion is written in C and uses a SQLite database.

Multiple trackers keeping various time value relations. It also provides an option to execute user-defined SQLite queries to filter, export or process your logs.

Use Datalogger to log tem­per­a­tures, stock prices, fuel cost, daily power meter values or working hours.
Read on →

bypass fastbot's redirection

fastbot.de is a german search engine and a useful addition to duckduckgo, ixquick and bigbrother, even if it lacks of a secure connection.

If you dislike the redi­rec­tion mechanism you can bypass it with this redirector (a Firefox add-on) rule:

Example url:      http://www.fastbot.de/red.php?red=2960615867551499627+ \
                        http://www.christoph-polcin.com
Include Pattern:  ^http://www\.fastbot\.de/red\.php\?red=\d+\+(http.*)$
Exclude Pattern:
Redirect to:      $1
Pattern Type:     Regular Expression

cfgkeeper - Keeps Your Configs Save

cfgkeeper is a bash script that stores your con­fig­u­ra­tion files in a revision control system like git or mercurial. I like the idea of etckeeper. It's a collection of tools to let /etc be stored in a source code repository. But I dislike two aspects, first to place the repositoy in /etc and the second to have no revision control outside of /etc.

Therefore I wrote a small bash script called cfgkeeper, which is able to put each file under revision control and to place the repository in con­fig­urable location. Fur­ther­more you can easily extend this script to get your favorite revision control system to work.

READ.ME, install the script and keep your files save. Sug­ges­tions and patches are welcome.

Roundcube Webmail Reverse Proxy Patch

To cut a long story short. I needed to get Roundcube webmail to work over a secure reverse proxy. I wrote a patch because it dosen't work out of the box.

  1. Grab one of the matching patches

  2. Apply the patch

    cd project && patch -p0 < file.patch
    
  3. Paste the following lines into your main config file

    // enable requests over a reverse proxy
    // eg: https://rproxy_host.rproxy_path.$_SERVER['REQUEST_URI']
    $rcmail_config['rproxy_host'] = null; // eg. 'ssl-account.com'
    $rcmail_config['rproxy_path'] = null; // eg. 'app.my-domain.com'
    

Sug­ges­tions are welcome.

SVNTask

SVNTask is a simple Apache Ant (TM) extension to interact with Subversion (SVN) repos­i­to­ries. The major advantage over SvnAnt is it's pure JAVA im­ple­men­ta­tion based on the SVNKit library.

I forked the original project and added support for au­then­ti­ca­tion and a few other useful commands. Get more in­for­ma­tion by browsing the project wiki.

Sug­ges­tions and patches are welcome.