📂 Minimize allocations in Go
A collection of tips for when you need to minimize the number of allocations in your Go programs.
Use the go profiler to identify which parts of your program are responsible for most allocations.
A collection of tips for when you need to minimize the number of allocations in your Go programs.
Use the go profiler to identify which parts of your program are responsible for most allocations.
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
strategy | server_net | server_port | isp | url_scheme | exit_code | img | error | |
---|---|---|---|---|---|---|---|---|
$key | Digital Ocean | 443 | Bee Line Cable | http | 0 | ✅ | ||
$key | Digital Ocean | 443 | Bee Line Cable | https | 0 | ✅ | ||
$key | Digital Ocean | 443 | MTS PJSC | http | 28 | ❌ | curl: (28) Operation timed out after 10006 milliseconds with 0 bytes received | |
$key | Digital Ocean | 443 | MTS PJSC | https | 28 | ❌ | curl: (28) Connection timed out after 10005 milliseconds | |
$key | Digital Ocean | 443 | PJSC MegaFon | http | 0 | ✅ | ||
$key | Digital Ocean | 443 | PJSC MegaFon | https | 56 | ❌ | curl: (56) Failure when receiving data from the peer | |
$key | Digital Ocean | 443 | Tele2 Russia | http | 0 | ✅ | ||
$key | Digital Ocean | 443 | Tele2 Russia | https | 0 | ✅ | ||
$key | Digital Ocean | 5555 | Bee Line Cable | http | 0 | ✅ |