Skip to content

Instantly share code, notes, and snippets.

View ChipCE's full-sized avatar

Chip ChipCE

View GitHub Profile
@frankbags
frankbags / MeshPrintSize.py
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",
@ApexArray
ApexArray / generate-bom.py
Last active November 21, 2021 10:21
Generate list of fasteners from FreeCAD files
"""
Run with FreeCAD's bundled interpreter.
Example:
"C:/Program Files/FreeCAD 0.19/bin/python.exe" generate-bom.py
"""
from pathlib import Path
import re
import FreeCAD
@kmobs
kmobs / DampingRatio.md
Last active April 7, 2024 20:16
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:

https://github.com/Klipper3d/klipper/issues/4560
https://github.com/dmbutyugin/klipper/tree/resonance-test-methods

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.

@xujiaao
xujiaao / android-set-ntp-server.md
Last active April 17, 2024 03:40
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@yeokm1
yeokm1 / Octoprint on read-only Arch Linux ARM for Raspberry Pi.md
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.

##Instructions

  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.
@kylemcdonald
kylemcdonald / post-server.py
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 = self.rfile.read(content_len)
@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active April 15, 2024 14:27
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)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request: