Disable poweroff OpenElec remote

So I got my new Raspberry Pi 3 and installed OpenElec on it.
All working very nice and fast (finally!) and my Harmony one was working out of the box.

One thing that annoyed me: Whenever I switch scene or poweroff my system, the raspberry also powers off.
Which means next time I want to use it, I have to find it and disconnect/connect the usb cable.

But you can disable the poweroff by creating a custom remote keymap.
The file is located in /storage/.kodi/userdata/keymaps/remote.xml
Put the following in there to disable poweroff:

This makes the power button call NOOP (NO OPeration).


mutt-notmuch-py and multiple accounts

Like many other people, I have more than one email account.
A lot of accounts are setup to forward mail to my main email address, but I still have seperate accounts for my private and my work email.
The email comes to my notebook using offlineimap, and is indexed with notmuch for easy searching. (I should probably create pages documenting my setup so you can all enjoy this wonderful setup)

One thing that always bothered me is that searching returns matching emails from all accounts.
Most of the time I am only interested in emails in the account I'm currently working in.

But as of yesterday Honza was so kind to accept my pull-request against his mutt-notmuch-py repository and now one can limit the search results to a specific path!

Go HERE to get the latest version with this support.


Bye bye digital ocean

This site, and many more things have been hosted on a bunch of VPSes hosted by digital ocean.
We have always been very happy with their services, but it is time to move on.

All things hosted on digital ocean have now been moved to a new FreeBSD machine hosted on a 100mbit fiber connection.
Yes, our home connection.

Backups have been configured to go to the synology NAS (one thing that has always been missing on the VPSes)


CloudFront with AWS CLI

If you want to script AWS cloudfront actions you will notice this is not working.
For some reason, AWS still thinks this part of their API is in preview mode.

To get it to work add the following to your ~/.aws/config file:
cloudfront = true



A programmer once built a vast database containing all the literature,
facts, figures, and data in the world.
Then he built an advanced querying system that linked that knowledge
together, allowing him to wander through the database at will.
Satisfied and pleased, he sat down before his computer to enjoy the fruits
of his labor.

After three minutes, the programmer had a headache.
After three hours, the programmer felt ill.
After three days, the programmer destroyed his database.

When asked why, he replied:
'That system put the world at my fingertips. I could go anywhere, see
Because I was no longer limited by external conditions,
I had no excuse
for not knowing everything there is to know.
I could neither sleep nor eat. All I could do was wander through the
Now I can rest.'

-- Geoffrey James, The Zen of Programming.


Back to Top