Journal of my recent activities

Clean up /var/cache/PackageKit the right way.

$ sudo pkcon refresh force -c -1


How to change decimal comma to decimal period in numpad?

gsettings set org.gnome.desktop.input-sources xkb-options "['kpdl:comma']"


Invited to participate in the 2019 Qiskit Camp, produced by the Qiskit Community of IBM Research.


Moved the qiskit-tutorial Storing and operating on bitstrings on the quantum computer to the Qiskit Terra 0.7.0.

Barrier explanation according to Qiskit Backend Specifications

Developing Sphinx extension for generating suited version of product documentation for different clients.

Configuring subdomain for different IP in OVH admin panel by adding DNS A record, and NextCloud testing.

Securing my home RPi sshd /etc/ssh/sshd_config. and mounting connected usb drives via NFS.

# edit /etc/exports
root@rpi# systemctl restart nfs-server.service
[lukasz@rademenes]$ sudo mount -t nfs <rpi-ip>:/mnt/usb1 rpi_usb1


Mocking console for cli unittesting

user_input = ['6 1']
expected_output = '84 + 7 =\n' \
                  '    OK!\n'

with patch('builtins.input', side_effect=user_input):
    with patch('sys.stdout', new=io.StringIO()) as output:
        dodawanie(84, 7)
        self.assertEqual(expected_output, output.getvalue())

How to test input processing in Python 3

#python #testing