Code
-
AutoSleep sleep/awake status in Homey
Steps to connect the AutoSleep status from your Apple Watch to your Homey user status. Then you can run automation flows based on whether you are awake or asleep.
-
HomeKit presence detection in Homey
Steps to connect the HomeKit presence detection to a user’s home/away status in Homey.
-
Fix iOS tab bar background color bug
How to get around a tab bar accessibility bug where the button shape background stays on while color filter is off.
-
Node.js: Simple fetch() timeout
This code snippet tells `fetch()` to abort the request when it takes longer than the specified amount of time. It is only one line!
-
Plesk: Enable SFTP access for additional FTP users
By default only the main user of a domain can SFTP into a domain. Plesk does allow to add FTP users but for some reason not for access over encrypted SSH. That makes the whole feature broken given today’s security standards that don’t allow plain FTP access anymore. This guide helps you to properly set…
-
Note: WhatsApp url scheme
Collected deeplinks into WhatsApp to open the app and optionally start a chat.
-
Fix for not working accent menu macOS
Steps to resolve the non-functioning Accent Menu on macOS. On my Mac this feature disabled itself after one of the recent updates. No reboots required.
-
How to write screen output to a log file
How to have the screen command log its output in realtime to a file. Purely command line, no .screenrc file involved.
-
Speed up Synology DiskStation
Steps to make a Synology DiskStation run faster by disabling the memory compression.
-
Fix for Bad interpreter: Operation not permitted
Run this command to fix the Operation not permitted error on macOS.
-
Blocking vs non-blocking timers in Arduino and Particle
When coding for Arduino you may wish to run certain code once every N milliseconds. For a very simple program like blinking a LED with a 2 seconds interval using the delay() function will be sufficient. But what about multiple bits of code where each require a different interval? Using delay() they will slow each…
-
Fix errorless dead Postfix daemon
After upgrading the server to Ubuntu 17.10 Postfix had died without reporting any error. It just wont start, without giving any hint about what is going wrong.