Skip to content

Instantly share code, notes, and snippets.

View wight554's full-sized avatar
🇺🇦

Volodymyr Zhdanov wight554

🇺🇦
  • EPAM Systems
  • Kyiv, Ukraine
View GitHub Profile
# Support for probes that dock on the XZ plane, like on bedslingers
#
# Copyright (C) 2022 Lasse Dalegaard <dalegaard@gmail.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
#
# Place in `klippy/extras/` folder as `xz_dockable_probe.py`, then add
# the following line to your `.git/info/exclude` file:
# klippy/extras/xz_dockable_probe.py
#
@wight554
wight554 / cool_down_to_temp_and_hold.py
Last active April 27, 2026 11:50
Klipper (kalico only) annealing macros
def format_time(minutes):
hours = minutes // 60
mins = minutes % 60
if hours > 0 and mins > 0:
return f"{hours}h{mins}m"
elif hours > 0:
return f"{hours}h"
else:
return f"{mins}m"
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": true,
"skipLibCheck": false,
"module": "NodeNext",
{
configFile: '/Users/.../blog-template/tsconfig.server.json',
baseUrl: '.',
outDir: '/Users/.../blog-template/dist/server',
configDir: '/Users/.../blog-template',
outPath: '/Users/.../blog-template/dist/server',
confDirParentFolderName: 'blog-template',
hasExtraModule: false,
configDirInOutPath: null,
relConfDirPathInOutPath: null,
@wight554
wight554 / piesolutions
Last active August 16, 2018 15:54
Android P bringup
DISCLAIMER:
THIS SOLUTIONS ARE FOR SANE DUDES
THOSE WHO STUCK ON MAKEFILES SHOULD IGNORE
my solutions:
error: use of undeclared identifier 'EINVAL'
#include <cerrno>
error: use of undeclared identifier 'strerror'
@wight554
wight554 / changelog.txt
Last active July 22, 2025 14:59
ABC O Changelog (Kenzo)
====================
2018-04-07
====================
* device/xiaomi/chiron
a6c3d14 chiron: configs: update from MIUI 8.3.29 [Demon Singur]
* device/xiaomi/kenzo
218d799 kenzo: Guard XiaomiDoze and XiaomiParts packages [Wight554]
6c8525c camera: Properly include headers for new HALs' pathmap [Wight554]