This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# edit with 'visudo -f /etc/sudoers.d/10-octoprint' | |
# allow octoprint to restart/poweroff | |
octoprint ALL =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl halt,/usr/bin/systemctl reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# draw a Sierpinski triangle using the Chaos game algorithm | |
import random | |
import tkinter as tk | |
width = 640 | |
height = 640 | |
background_color = "#000000" | |
foreground_color = "#ffffff" | |
root = tk.Tk() |