• Python: requests - the right way

    The requests library is a very popular one for Python, when dealing with sending HTTP requests. No wonder, it’s simple and yet gives a lot of options when You really need them. There are however some popular misusages, that lead into unexpected trouble. Believe me, I’ve been there.

    Read on →

  • Linux: Mocking native system commands

    Recently I came across a problem of testing a Linux box from the outside - basically orchestrating the instance using scripts and checking if they work correctly.

    Read on →

  • Git: Useful commands

    Some aliases for $HOME/.gitconfig to make your work easier:

    [alias]
        unstage = reset HEAD
        discard = checkout --
        co = checkout
        cma = commit -a -m
        dc = diff --cached

    Read on →

  • AWS: Add a new volume to instance, create partitions and mount it

    If You need to add a new volume to an AWS Instance and You happen to be using CloudFormation then this should do the trick.

    Read on →

  • Python 3: Code Snippets

    Python allows one to write really concise code, which does some pretty nice input processing. It’s expressiveness is something that sets it apart from some other languages, especially for some obvious transformations. Here’s a few I came up with. Please do comment if You have something interesting or a shorter solution :) I’d love to give it a look. Here’s a few of mine.

    Read on →