Development
Debugging MQTT over websockets on Envoy 1.28.0
I have migrated our Envoy installation from Envoy 1.11.1 to 1.28.0, and am now also using SNI for selecting the correct certificate. A big part of that migration is upgrading the syntax of the configuration for Envoy from the v2 API to the v3 API. The upgrade went well, except for our websocket-based MQTT service…
WeiterlesenA PowerShell script to take a list of domains and output their A and AAAA records as CSV
This was the result of a colloboration between me (with programming skills, but not in PowerShell!) and ChatGPT. It blows my mind away, what can be done with ChatGPT – this is what work IS supposed to be! Quick, without researching every single line. Human and machine in perfect colloboration: be sure to adjust the…
WeiterlesenPractical coding questions answered by GPT3: is it ready for the prime time?
You can easily try GPT3 for yourself, simply register for an OpenAI account, and you will get (at the time of writing this) 18 USD of credit. Head on over to the following link: https://platform.openai.com/playground Here you can enter your question, and submit it. GPT3 will answer in the same text box. There are three…
WeiterlesenKemal routing redirecting a subtree
This code snippet shows you how to redirect an entire subtree and remove the first part of the subtree. This might come in useful, for example when you have outside links referencing different languages (e.g. /de /fr /it) and content paths in them, and you want to serve everything from the same endpoints. Crystal Lang…
WeiterlesenUsing Cloudflare’s APO to cache a mixed WordPress and Application website
picockpit.com is our Raspberry Pi web OS application – it has a WordPress blog (for content marketing and support) set up in a subdirectory, on picockpit.com/raspberry-pi/ Google Analytics showed me that the PiCockpit blog was loading slower in important countries, like the US. Here is a screenshot of a performance test, before optimizing the page…
WeiterlesenUsing plink (Pageant) on Windows 10 with Git for Windows
The current Git for Windows installer does not allow me to select Tortoise Plink during the installation, as was described here on Stackoverflow. Instead I followed the installation, and set an environment variable. Select “Use bundled OpenSSH” here. search for “enviro” in the Windows search. (my screenshot is in German, but it will find the…
Weiterlesenmailerlite API error code 422 for subscribers endpoint
Today, I was implementing the interfacing between PiCockpit.com and the Mailerlite API (which we use aus our newsletter software). https://api.mailerlite.com/api/v2/subscribers I got the following error message: The POST request was returning 422 as status code. Unfortunately there is little documentation about that on Mailerlite. My implementation was correct (this is Crystal Lang by the way):…
Weiterlesennpm Webpack code ELIFECYCLE errno 1
When building the PiCockpit frontend code (which is packaged using Webpack) on a different computer, I ran into the following issue: cross-env NODE_ENV=production webpack –progress –hide-modules –mode=productiontype: ‘object’,additionalProperties: true,properties: {apply: {description: ‘The run point of the plugin, required method.’,instanceof: ‘Function’,tsType: “(compiler: import(‘../lib/Compiler’)) => void”}},required: [ ‘apply’ ]}},title: ‘WebpackOptions’,description: ‘Options object as provided by the user.’,type:…
WeiterlesenIntegrating the BSEC in CircuitPython (A work in progress)
A short post about using a static C library inside CircuitPython and a progress report on wrapping the BSEC library in particular.
WeiterlesenSplitting envoy envoy.yaml configuration into multiple files (Docker only)
I am handling four different ports / cases with Envoy: IPv6 http IPv4 http IPv6 https IPv4 https For IPv6 and IPv4 the configuration is the same, whereas for http there is a different configuration than for https. To realize this, I have split my envoy configuration into several snippets, and add them together during…
Weiterlesen