Chrome Plugin to Block Game of Thrones Spoilers on 9gag

It seems to become quite popular, to post spoilers the day after an episode of some TV show has aired… I don’t know why this is, but it started to get on my nerves. Fortunately, writing a Plugin for Chrome turned out to be rather easy! In a matter of 3 hours, I had a […]

Download File From Controller in Angular

Ever had to download a file from your controller in angular? Then you know the struggle is real. You’ll encounter iframe tricks and filesaver.js and all sorts of stuff. But instead of an iframe trick, what you should really do is a link (<a href=”url”></a>) trick!!! var a = document.createElement(‘a’); a.href = yoururl; = […]

Deploying Multiple Meteor Apps on One Ubuntu Server

Meteor makes everything easy. Except for deploying your app on your own server, since they want you to use their solution “Galaxy”. Setting up your own infrastructure can be daunting, especially when you want to host multiple meteor apps on one server. Here I’m going to describe how this can be done using nginx. Step […]

Best WYSIWYG Editor for Web-Content

UPDATED: June 2017 There are different out of the box wysiwyg’s for the web. Prominent exponents of web-html-wysiwyg’s are the CKEditor or the TinyMCE. Paid (yet still extendable) solutions include Froala and Redactor. Which one’s right for you? TL;DR: If you’re commercial, use the Froala Editor. If you’re not or need an open source editor use […]

MathJax vs KaTeX vs MathML vs Latex2Img

There is a multitude of options to display mathematics on the web including MathJax, Katex, MathML and Latex2Image. Which one is right for you? TL;DR: Choose Mathjax. Mathjax Mathjax can work with latex or mathml input, then sends the code to the mathjax library which renders a “mathjax element”. This is a svg with fonts, […]

Password-protect Parts of Your Website

Prerequisites You will need a running ubuntu server to follow the steps in this article. Setup Enter in terminal: sudo apt-get update sudo apt-get install apache2 apache2-utils sudo htpasswd -c /etc/apache2/.htpasswd some-username sudo nano /etc/apache2/sites-enabled/000-default.conf Add: <Directory “/var/www/html”> AuthType Basic AuthName “Restricted Content” AuthUserFile /etc/apache2/.htpasswd Require valid-user </Directory> Replace /var/www/html with the path to the directory you want to […]

Host Static Files with Apache on Digitalocean

1. Setup Digital Ocean Server Login or create an account and spin up a new ubuntu 14.04 droplet at, it is pretty self explanatory. In the options, you should choose login through SSH if you want to follow this article step by step. Then login to your Server: ssh root@<yourIp> (e.g. ssh root@ 2. Install Apache […]

Install SSL certificate through letsencrypt on nginx

The days of expensive SSL Certificates are over. Letsencrypt is rapidly changing the way certificates are handled. The basic functionality is that you install the letsencrypt client on your server and from there it does its magic to authenticate your server. They also offer a lot of automation tools, which might scare you at first. […]