pascal jungblut
Hello, here you find some blog posts and short thoughts (like BDD, ...) from me.

shutup for macOS

Often I’m working in quiet places like libraries or shared office spaces. This led to the desire to have my laptop muted everytime I open it. And it should be muted not with 2 seconds delay but instant, no matter the load. Years ago I created a very small piece of software to mute macOS everytime it is going into sleep mode or gets shutdown. It works pretty well for me and since people kept asking about it, I published it to Github. More...

Migrate a FreeBSD server with a ZFS root filesystem

ZFS is one of the best parts of FreeBSD and it is widely used for installations of all size. Since a few years it’s possible to have the complete root fileystem on ZFS. The snapshotting capabilities and the builtin zfs send and zfs recv commands make it easy to transfer a server to another system (given a compatible hardware). This short guide will show you how to migrate a running FreeBSD installation to another server. More...

More on backups

I already wrote something about how I do backups of my important data. However, some things changed and as the article gets quite a lot of traffic, I wanted to give an update on the details. A major change is that I use BitTorrent Sync only for syncing, not for backups. In fact I don’t use btsync any more but I’ll get to that. While btsync works pretty well to keep data in multiple places up to date, it is simply not designed to do good backups. More...

You should try FreeBSD!

You have probably heard of FreeBSD (or any other BSD). Have you used it? If yes: stop reading right here. If no: read on, maybe you want to try it. I know plenty of developers who feel very comfortable with Linux (especially Ubuntu is common these days). They have their developer server and probably production server running on Linux. But why Linux and not FreeBSD? There are several reasons, maybe one applies to you. More...

Object Injection Vulnerability in tt_news

*Disclaimer: I reported this vulnerability on September 12th, 2013 and got a response by September 16th. Nothing happened since. I asked for an update on February 4th and haven’t received a response, yet. Update February 12th: The TYPO3 security team released a security bulletin and a fixed version for the issue. Thanks!* Object Injection What is object injection and why is it a problem? An object injection vulnerability allows the attacker to instantiate arbitrary objects. More...

How I backup

The day you lose important data due to a head crash of your hard disk, you start getting a little paranoid about backups. It’s not only important to have backups at all, they should also be the right ones. After some experimenting I’ve found a setup that works for my needs. So here’s how I backup my workstations and servers. Macs I use Macs and therefore OS X. The obvious choice here is OS X’s build-in mechanism: Time Machine. More...

Vagrant with FreeBSD as guest OS (update)

When you’re working with Vagrant and your production servers are running FreeBSD, chances are that you also want to use FreeBSD as the Vagrant guest OS so the behaviour is consistent. The combination will not work out-of-the-box because FreeBSD doesn’t support the standard synced folder method Vagrant uses. So you need to switch to NFS sharing which needs a host-only (:private_network) network. Once you enable that, Vagrant cannot connect anymore to the virtual machine over SSH and it will look as if the machine halted. More...

Devise SSL error on FreeBSD

Using Devise to authenticate users with OAuth and Facebook I was having a problem with SSL. I got a verification error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed There’s lots of advice on how to fix the certificate verification error on Windows and Linux systems. However, providing a :ca_path doesn’t work on FreeBSD as the certificates are located in one file. You need to specify :ca_file in your config/initializers/devise. More...

(De)activate ipv6 on OS X

Ipv6 works pretty well and more content is availible every day. Still, sometimes you want to deactivate it completely - for me my SixXS was dropping too many packets, so I temporarily wanted ipv4 only. On OS X it’s easy to deactivate ipv6. First, find your network device: $ networksetup -listallnetworkservices An asterisk (*) denotes that a network service is disabled. Bluetooth DUN Ethernet FireWire Wi-Fi iPhone USB Bluetooth PAN Then deactivate ipv6 on that device: More...

Alchemy CMS

Last week I was searching for a CMS to implement a relatively simple project. There are plenty of these written in PHP in all flavors one can imagine. From the only-some-pages-Joomla to the enterprise-size TYPO3 and Drupal. Especially the latter are pretty mature. However, they all have a common disadvantage for me: PHP. I don’t want to get worked up over PHP, but compared to Ruby it’s just less fun and fun is an important part of programming to me. More...