Skip to content

Instantly share code, notes, and snippets.

View maehler's full-sized avatar

Niklas Mähler maehler

View GitHub Profile
@andersevenrud
andersevenrud / 0_NEXA_BRIDGE_X.md
Last active November 10, 2025 14:10
Nexa Bridge X Documentation

Nexa Bridge X Documentation

The "Nexa Bridge X" is a Smart Home bridge device. The internal name is "Bridge2".

There is now also the Bridge3, which seems like it's mostly the same as Bridge2 except it has a separate adapter for Z-Wave!

It can be attached to a home network and monitor / control devices via an App/Cloud or Local Web UI. Supports assigning devices to rooms and various automations via the provided firmware.

Since this devices comes with a (semi) open API and Websocket it's custom to create custom integrations.

@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active December 26, 2025 19:49
Fix DNS resolution in WSL2

Permanent WSL DNS Fix (WSL 2.2.1+)

If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.

This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.

DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.

To upgrade WSL, follow these steps,

@goldsmith
goldsmith / numpy_os_x_10_9.sh
Last active January 6, 2024 07:25
How to install Numpy and Scipy on Mac OS X Mavericks (10.9) using Pip.
# set up flags for Numpy C extentions compiling
export CFLAGS="-arch i386 -arch x86_64"
export FFLAGS="-m32 -m64"
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
export CC=gcc-4.2
export CXX="g++ -arch i386 -arch x86_64"
pip install numpy
# success!