Skip to content

Instantly share code, notes, and snippets.

View ChipCE's full-sized avatar

Chip ChipCE

View GitHub Profile
ApexArray /
Last active November 21, 2021 10:21
Generate list of fasteners from FreeCAD files
Run with FreeCAD's bundled interpreter.
"C:/Program Files/FreeCAD 0.19/bin/python.exe"
from pathlib import Path
import re
import FreeCAD
yeokm1 / Octoprint on read-only Arch Linux ARM for Raspberry
Last active October 15, 2022 13:18
Use Octoprint on Arch Linux ARM with read-only file system for Raspberry Pi

I wanted Octoprint (a 3D-printer management software) to start up fast without the bloatness of using Raspbian. I also regularly forgot to shutdown the Raspberry Pi hosting Octoprint properly leading to file system corruption and unbootable SD card.

This set of instructions should provide all that is needed to use Octoprint without fear of improper shutdown with Arch Linux ARM by using a read-only file system.

This instructions does not have the webcam setup as I didn't intend to use it. If you wish to use the webcam, please consult and try to port the official Raspbian FAQ.


  1. Convert the Arch Linux ARM file system to read-only. Please follow the instructions from my previous gist. The following instructions assume you are logged into with the root account.
frankbags /
Last active November 14, 2023 02:19
Cura post processing script to resize bed mesh to print size
import re #To perform the search and replace.
from ..Script import Script
class MeshPrintSize(Script):
def getSettingDataString(self):
return """{
"name": "Mesh Print Size",
kylemcdonald /
Created September 21, 2014 01:24
Python POST simple server
import SimpleHTTPServer
import SocketServer
PORT = 8000
class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_POST(self):
content_len = int(self.headers.getheader('content-length', 0))
post_body =
xujiaao /
Last active April 17, 2024 03:40
Set the NTP server of your android device
Android Things

Set the NTP server of your android device

kmobs /
Last active May 7, 2024 08:07
Calculating the damping ratio for your hardware:

Prerequisite - Outdated. I don't use the resonance testing branch or pulses method anymore.

I recommend running Dmitry’s latest resonance testing branch and using the pulses method outlined below:

I would only go down this path if you're getting ghosting with really high speed prints. On the Annex Engineering K3 for example, no matter how perfect the graphs looked, I was still getting some ghosting. That prompted me to go down this path. I'm now able to print at 20-30k acceleration, 250-350mm/s, and 15scv with perfect quality that can usually only be seen at significantly slower speeds.

The default settings in Klipper have the damping ratio set to .1. This should be fine for most people with sane settings. I like to go for the insane.

bradmontgomery /
Last active May 14, 2024 18:19
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
Very simple HTTP server in python (Updated for Python 3.7)
./ -h
./ -l localhost -p 8000
Send a GET request: