While testing the Uppy.io file uploader I struggled with some CORS-errors. Almost the whole day was wasted troubleshooting and debugging. Trying different headers, debugging network-traffic and reading stack overflow. The browser returned a CORS-error and Uppy itself returned a network traffic error. 99% of all issues and google-results pointed to an api/server issue with my headers. The weird part was …
Docker proxy with self-signed certificates for local development
Found some great docker-images to use in local projects. It’s well documentet in github here: https://github.com/sebastienheyd/docker-self-signed-proxy-companion Here is an example of docker-compose from the github repo: This guide can help you to add the certificate in Chrome: https://www.pico.net/kb/how-do-you-get-chrome-to-accept-a-self-signed-certificate/
Ubiquiti Nanostation Loco M2, Tellstick and Mco Home Air Quality Monitor Co2
My girlfriend has a horse. The horse needed a house. So we built a house (stable). The stable is about 10 meters from our house. To smartify the stable (controlling lights and monitoring temperature, humidity and CO2) I needed cabled network and a new smarthome-gateway. I already have Home Assistant and a Z-wave network in the house, but the stable is …
Simple Git tutorial
Using default git-commands are easy enough (if you are used to it), but this month I have started up two new projects on a clean computer. Setting up git for the first time is not a big issue, but I always start Googling – so this is a simple «from scratch» guide for starting with git on a clean Windows-computer …
Analyze slow MySQL queries
One of the drawbacks of using MySQL community is the lack of tools to analyze the server and queries, but with a little help from the Percona Toolkit, this gets a little bit easier.
Telldus/Tellstick Local API with PHP
21.01.2016 Telldus announced a closed beta for their Local API on the ZNet Lite. 24.05.2016 they opened the Local API to public beta. Local API let’s you connect and fetch data directly from the Tellstick ZNet without going through Telldus Live, which can be a huge advantage as it’s faster and more stable.
jQuery Plugin Boilerplate
Just to make it easier for me to find, I’m posting a Jquery boilerplate from Stefan Gabos.
Setting up external hotspot with Ubiquiti (ubnt) and debugging
My setup: Webserver: Ubuntu 16.04 with default Apache2, PHP7 and MySQL. The webserver also has a local issued certificate with HTTPS. UniFi Controller: 4.8.18 (Running on a Windows 10 client) Laptop with wireless, running Windows 10, for testing. This article will focus more on debugging than on the setup itself, as there are multiple of howto-guides everywhere on the Internet. My guest …
How to Secure Apache with Let’s Encrypt on CentOS 6
Install the Let’s Encrypt client $ git clone https://github.com/letsencrypt/letsencrypt $ cd letsencrypt I didn’t have git installed, so I just downloaded it from Github and added it under /opt/letsencrypt on the server. So to the Centos 6 «fix» You’ll need to run the client in Pyhon 2.7. $ yum install centos-release-SCL $ yum install python27 Your python version should …
Some simple Powershell cmd
I will use this post to update some simple Powershell commands. A cheatsheet that I can share with others 🙂 To get the serial number from a computer run the following PowerShell command: gwmi win32_bios | fl SerialNumber To get more information e.g. bios version and manufacturer just run: gwmi win32_bios