Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:20.04
RUN apt update && apt -y upgrade
RUN apt update && apt -y upgrade
ARG DEBIAN_FRONTEND=noninteractive
RUN apt install -y ubuntu-minimal
RUN apt install -y ubuntu-standard
RUN apt install -y ubuntu-server
# reference:
# http://hitoriblog.com/kingroon_kp3s/docs/improving_speed_and_quality_by_using_klipper/
# https://3dprintbeginner.com/how-to-install-klipper-on-kingroon-kp3s/
# https://github.com/nehilo/klipper_KP3S
#####################################PRINTER##############################################
[printer]
kinematics: cartesian
# max_velocity: 220
# reference:
# http://hitoriblog.com/kingroon_kp3s/docs/improving_speed_and_quality_by_using_klipper/
# https://3dprintbeginner.com/how-to-install-klipper-on-kingroon-kp3s/
# https://github.com/nehilo/klipper_KP3S
#####################################PRINTER##############################################
[printer]
kinematics: cartesian
# max_velocity: 220
#include <M5Atom.h>
#include <BleMouse.h>
BleMouse bleMouse;
void setup() {
M5.begin(true, false, true);
delay(50);
// M5.dis.drawpix(2, 2, 0xf00000); // Green
- hosts: local
connection: local
gather_facts: no
tasks:
- name: apt update
become: true
apt:
update_cache: yes
- name: apt full-upgrade
# reference:
# http://hitoriblog.com/kingroon_kp3s/docs/improving_speed_and_quality_by_using_klipper/
# https://3dprintbeginner.com/how-to-install-klipper-on-kingroon-kp3s/
# https://github.com/nehilo/klipper_KP3S
#####################################PRINTER##############################################
[printer]
kinematics: cartesian
# max_velocity: 220
#include <M5StickC.h>
#define LGFX_AUTODETECT
#include <LovyanGFX.hpp>
static LGFX gfx;
void setup() {
M5.begin();
gfx.init();
#!/usr/bin/env python3
from montyscad import monty_symbols as ms
from decimal import Decimal
def circle_slits(radius, slits_num, width, sleleton_width=Decimal('0.0001')):
interval = radius * 2 / (slits_num + 1)
symbol = ms.Union()
for i in range(slits_num):
$fn = 24;
size = [170, 150];
interval = 5;
linear_extrude(3)
difference() {
translate(size / 2)
offset(r=interval)
square(size - [1, 1] * interval * 2, center=true);
// download Nut_job.scad from https://www.thingiverse.com/thing:193647
use <Nut_job.scad>
module for_nut_hole(hg, sth, clf, cod, crs) {
intersection() {
union() {
hex_countersink_ends(sth/2,cod,clf,crs,hg);
screw_thread(cod,sth,clf,hg,crs,-2);
}
translate([-cod / 2, -cod / 2])