Author Archives: NAB

Extract Maven Dependency Version as Property

Problem: You got a lot of <version> tags in your Maven pom.xml that you want to centralize in <properties> section. Solution: Use an editor with greedy RegEx functionality like Notepad++ 5.9+ to find and replace: Find: (<dependency>\s+<groupId>)(.+)(</groupId>\s+<artifactId>)(.+)(</artifactId>\s+<version>)([^\$]+?)(</version>[\s\S]*?\s+</dependency>) Replace: \1\2\3\4\5${\4.version}\7\n<\4.version>\6</\4.version> This puts property in line under the dependency to be cut and pasted. The property is […]

Categories: Stuff

Rescue Data via Recovery Mode in macOS

I recently had to help a friend of mine rescuing some data from her MacBook’s hard drive. macOS upgrade from Yosemite to Sierra failed and her last TimeMachine backup was a month ago – still better than mine a year ago… Here’s what we’ve done to save her data from MacBook’s internal to an external […]


Improving HTTPS Website Security Level

HTTPS finally spreads around the web and is getting more and more the de facto standard for websites. A few months ago Mozilla released its tool Observatory for testing website security level. It rates in form of grades from A+ (best) to F (worst). Following you’d see how to reach an A+ on your website […]


Adding Anchor Tags to Subheadlines in WordPress

If you want to have clickable subheadlines with auto scroll function on your WordPress blog you could do following. There are some plugins doing the same and much more but I thought they are kinda oversized. The little piece of code below does the trick. In admin panel go to Appearance > Editor > Theme […]


Connect to Server via SSH with Git

Given: an Ubuntu server with central Git repository and connection via SSH and an Ubuntu client with local Git repository. Deposit user’s SSH private key id_rsa in ~/.ssh (aka /home/user/.ssh) chmod 0600 ~/.ssh/id_rsa to prevent other users reading user’s private key If you also want to use Git with root user: cp /home/user/.ssh/id_rsa /root/.ssh/ Connect […]


Docker Cheat Sheet

Preamble Data directory of my Docker services is /var/docker/. It’s also root directory for all following commands I’m using service as a generic term for image and container doco is an abbreviation for docker-compose (see installation guide below) I’m using Git for versioning of Dockerfiles Basic commands Show status of containers docker ps -a Start […]


Creating a Blog Like This One

Interested in a fancy blog like this one? Just follow this guide and you’ll get an awesome lookalike! Okay, maybe it’s just a reminder for myself what I’ve got to do when I’ve finally broken my WordPress installation Install WordPress Download a fresh copy of WordPress from its download site Upload and unpack it to […]


Installing netatalk on Ubuntu 14.04 LTS

Follow this instruction if you want to use an Ubuntu server as macOS TimeMachine backup volume. Install netatalk Following steps are essentials from this instruction. Install dependencies via apt-get # apt-get install build-essential libevent-dev libssl-dev libgcrypt-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libtdb-dev libmysqlclient-dev avahi-daemon libavahi-client-dev libacl1-dev libldap2-dev libcrack2-dev systemtap-sdt-dev libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev tracker libtracker-sparql-0.16-dev libtracker-miner-0.16-dev Download […]


Enable Root Access in WinSCP

To enable root access to some server do following steps on this server: # nano /etc/ssh/sshd_config Uncomment line permitRootLogin without-password and save file # service ssh restart Eventually set new password for root user: # passwd root


Connect to svn+ssh with TortoiseSVN

TortoiseSVN is supporting SSH authentication via Putty’s Pageant. Thus: Start Pageant Add key (.ppk file, e. g. generated from OpenSSH key) (Minimize Pageant) Start TortoiseSVN, e. g. Repo-browser Type in URL, e. g. svn+ssh://user@server/path/to/svn. Important: set user in URL (user@) Connection should work