Skip to content

Instantly share code, notes, and snippets.

@AndreKR
AndreKR / code.js
Created August 9, 2023 16:01
Find current date in timezone in Javascript
new Date().toLocaleDateString('sv', { timeZone: 'Europe/Berlin' }) // sv = ISO format
@AndreKR
AndreKR / FLSUN-QQ.cfg
Created August 29, 2023 16:08
Klipper config for FLSUN QQ (not QQ-S)
[include fluidd.cfg]
[include mainsail.cfg]
[virtual_sdcard]
path: /home/pi/FLSUN_data/gcodes
on_error_gcode: CANCEL_PRINT
# Comment copied from an old config I found on Facebook:
# > TFT 32 must be connected for Auto-Leveling to work correctly , it is used for +5v pullup z-min pin.
# > The value of z_offset in the [probe] section must be specified individually for your printer, the default value is 0.85
# > Step distance for your extruder must be specified in [extruder] section, the default value is 0.011363 for QQ default extruder.
@AndreKR
AndreKR / .wslconfig
Created April 5, 2025 01:39
My .wslconfig with fixes
[wsl2]
# Fix for:
# Insufficient system resources exist to complete the requested service. Error code: Wsl/Service/CreateInstance/CreateVm/HCS/0x800705aa
# https://github.com/microsoft/WSL/issues/5231#issuecomment-1512732316
processors=4
# Fix for hanging WSL after wakeup from hibernation (with vmmem CPU usage):
# https://github.com/carlfriedrich/wsl-kernel-build/issues/1
kernel=C:\\Users\\andre\\bzImage-5.15.153.2-microsoft-standard-WSL2