Skip to content

Instantly share code, notes, and snippets.

@lhns
lhns / afterPrintCancelled
Created December 23, 2018 14:44
OctoPrint GCODE Scripts
; disable motors
M84
; disable all heaters
{% snippet 'disable_hotends' %}
{% snippet 'disable_bed' %}
;disable fan
M106 S0
; relative XYZE
@NicolasBizzozzero
NicolasBizzozzero / comprehensive_header.py
Last active February 3, 2024 23:31
Python template of a comprehensive header, with shebang, docstring, GPLv3 license and all metadata.
#!/usr/bin/env python
""" Short description of this Python module.
Longer description of this module.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.