This is a short tutorial on connecting a zigbee device (an Aqara cube) to an MQTT server, so you can control your zigbee devices from the network.

If you're anything like me, you're probably a sucker for IoT devices. For a long time, I've been using WiFi-enabled lights, and Amazon …

Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.

1
2
3
4
5
hdmi_drive=2
hdmi_group=2
hdmi_mode=42
disable_overscan=1
config_hdmi_boost=7

PPTP VPN connections will fail on a vanilla openwrt installation. You need to install this module:

1
opkg install kmod-nf-nathelper-extra

tqdm is a nice way to add progress bars in the command line or in a jupyter notebook.

1
2
3
4
5
from tqdm import tqdm
import time

for i in tqdm(range(100)):
    time.sleep(1)

Black screen and LightDM doesn't unlock

Add this to your /etc/lightdm/lightdm.conf file:

1
2
[LightDM]
logind-check-graphical=true

Show plain text version

1
(font-lock-mode)

Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.

As part of moving to emacs, I starting using the incredibly useful gh.el. When you first use it, the extension saves either your …

Zotero is an Open Source tool that lets you organise your bibliography, syncing it with the cloud. Unlike other alternatives such as Mendeley, Zotero can upload the attachments and data to a private cloud via WebDav.

If you use nginx as your web server, know that even though it provides …

This is a quick note on proxying a local python application (e.g. flask) to a subdirectory in Apache. This assumes that the file wsgi.py contains a WSGI application with the name application. Hence, wsgi:application.

Gunicorn

1
2
3
4
5
<Location /myapp/>
    ProxyPass http://127.0.0 …

Developing a python module and publishing it on Github is cool, but most of the times you want others to download and use it easily. That is the role of PyPi, the python package repository. In this post I show you how to publish your package in less than 10 …