Donate CPU / GPU for Cancer, COVID-19 and co.

TL;DR: Run docker run -d johnktims/folding-at-home to donate your spare CPU power!

As a software developer, you probably rent some sweet little servers to host all your wonderful awesome services.
You probably also realized that there are not that many people using your services so the server is always running at 0.01 load.
So what should you do with all that idle compute power??

Click to read more ...

How to inspect a Python API

Imagine the following situation: There is a fancy, large, often changed Python API which is used sequentially and you wanna expose it to your favorite users via pretty user interface.

class FancyAPI:
    def cleans_room(self, room: str):
        """Cleans given room for you. You should call it every day."""
        pass

    def bake_pizza(self, size: int, flavor: str):
        """Even this function got a docstring"""
        pass
Click to read more ...

React.js with ES6 & Webpack 4 => React-Hot-Loader 4 as Middleware with Express 4

To start a tiny react-app (with the new ES6 features) I wanted to have a basic hot-reload development server with an expressJS backend server, to handle API calls in the future.
This should be bundled with webpack because it’s the most popular and kinda easy to handle react in my opinion.

Since I couldn’t find any good documentation on the internet, I decided to put all of this together with the newest versions out there in 2018.

Click to read more ...

Useful Nginx Server Blocks

In the past weeks I set up some different webservers with Nginx. Nginx is more leightweight and easy to handle than Apache2.

There are alot of different usages for webservers. Some are reverse proxy, https, static sites, clouds or php. In this article I wanna share my experiences with different server blocks for some of these cases. It’s basically more a little wiki.

Click to read more ...

Setup NextCloud Server with Nginx SSL Reverse-Proxy and Apache2 Backend

In the next few chapters we gonna setup a NextCloud Server from scratch.
There are alot of tutorials out there already covering this topic, but in our case we gonna use Nginx to serve the SSL-Certificates and proxy the connection to an Apache2 service which is serving NextCloud.
You can either use an existing Nginx configuration or follow the guide and deploy a new one.

Click to read more ...