GliderJan Varho

pylibscrypt v1.6.1

  • pylibscrypt
  • scrypt
  • crypto

Bugfix release 1.6.1

  • Fix hashlib.scrypt calls with large values

Github link: pylibscrypt v1.6.1

pylibscrypt v1.6.0

  • pylibscrypt
  • scrypt
  • crypto

Feature release 1.6.0

  • Use hashlib.scrypt on Python 3.6 + OpenSSL 1.1
  • Travis CI integration
  • Improved test coverage
  • Code and build cleanups

Github link: pylibscrypt v1.6.0

Python hug with apache mod_wsgi

I found it surprisingly difficult to find a plain explanation of setting up hug and apache mod_wsgi. So here is how I did it.

Minimal hug API

Writing an API with hug is really easy. You can write a "hello world" in four lines of code:

import hug

@hug.get('/hello') def hello(name: str) -> str: return "Hello " + name

Running this on a devserver is also trivial:

hug -f


Cloning a Linux Partition

  • linux
  • ubuntu
  • filesystem
  • partition

Whenever I want to test a new release of Ubuntu I find myself cloning the root partition so I can safely upgrade and still keep my old install.

However, I usually forget some step and end up needing to debug grub boot. So this is a summary of what needs to be done in order to clone the partition and make it work. (Almost all of the below need to be run as root of course.)

First you need the file systems in question to be unmounted, so likely you

New Site

  • website
  • JavaScript
  • Python

After my old WordPress setup broke one time too many I finally decided to convert the site to something nicer to work with. I ended up going with Pelican, which is a static site generator using Python.

It seems quite basic at first, though I'm sure there are features waiting to be discovered. The main advantage is that I no longer need to worry about software updates when not actually changing the site. Another is that