xpam.pl

Category: Other

  • Love hate relationship with conan.io

    Introduction conan was supposed to finally solve the decade long issue of getting your build dependencies on Windows (and Linux but to a lesser extent because package managers have already solved that problem there). Before that you either had to build from source or find pre-built binaries from sometimes questionable sources. Building from source is…

  • Using extra mouse buttons to quickly switch to a task in KDE

    I had a bright idea to use my extra 2 mouse buttons to quickly switch to a task in Debian KDE, for example to terminal or browser. Since the mouse is in the palm of your hand most of the time this is quite a bit faster than actually clicking on a task or hitting…

  • An OpenSprinkler success story

    I wanted to automate the watering system at home preferably using open-source and DIY systems. The initial plan was to go with plain RPi, OpenHAB and some GPIO code driving the sprinkler valves but the problem was creating a useful UI to control the system since OpenHAB is too clunky and generic looking. I was…

  • Apache http to https redirect – use 307

    Who knew that a simple thing like HTTP redirects would be so complicated? It turns out clients will just change POST to GET on 301 (Postman, curl, everyone?), same with 302 which really behaves like 303 and that is also an old implementation “bug”. Yeah, seriously. If you have a REST API with POST (or…

  • resize Fedora root partition

    Default root partition size on my Fedora installs usually becomes too small down the line to the point I can no longer install packages or perform the upgrades without removing packages or clearing dnf cache. Therefore I wanted to shrink my home partition and add that space to root. We can’t perform the resize while…

  • Tenant resource authorization in JAX-RS

    You have a book REST resource and each book has an owner. Only the owner of the book can access an owned book. JAX-RS specification has no answer to this problem since it only provides a role based security with @RolesAllowed annotation. It is unfortunate JavaEE spec does not offer at last some interfaces which…

  • Creating a new torrent and seeding with Transmission

    You have setup a Transmission server on your Linux box together with Transmisison Web or something along those lines and now you are wondering.. how can I actually seed a NEW file? I couldn’t find a straightforward answer on the web so here is the short tutorial: Upload your file to your transmission download directory…

  • Watching beIN SPORTS Direct Spain from anywhere in the world

    Update 2023: this is a very old blog post now and most probably does not work anymore It’s 2017 and it is almost impossible for a regular human being to watch Champions League without being subscribed to cable or internet TV and pay exorbitant fees for hundreds of bundled channels you don’t really need or…

  • Oh FileZilla…

    I have encountered a weird problem when connecting to our FreeBSD server with FileZilla over SFTP. Either with password or key authentication I would get: Error:    Server sent disconnect message Error:    type 2 (protocol error): Error:    “Too many authentication failures” So let’s turn on debugging shall we?   Trace:    Pageant is running. Requesting keys. Trace:  …

  • Expose your dev machine to the public via reverse SSH tunnel

    Scenario: you are creating a REST service which needs to be exposed to the public even in early stage of development due to an upstream provider which sends back feedback data from a webhook API. You are also behind a NAT so you’d have to port forward yourself out but you can’t do that for…