Skip to content

Instantly share code, notes, and snippets.

@Qteb
Qteb / printer.cfg
Last active June 21, 2024 11:16
Klipper configuration for SKR 1.4 PRO + 4x TMC2209 UART
# Specs:
# - SKR 1.4 PRO
# - TMC2209 UART
# - 1.8 stepper on XYZ
# - Physical endstops on XYZ
# - Fysetc Mini 12864 LCD Display v2.1 RGB
#
# Link to current version of this config: https://gist.github.com/Qteb/64baab2e57d65697633cc884dc783beb
# Klipper config reference: https://www.klipper3d.org/Config_Reference.html
# Gcode templates syntax: https://jinja.palletsprojects.com/en/2.10.x/templates/
; Start G-code
M107 ; turn off fan
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
G28 ; home all
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S[first_layer_temperature] ; wait for extruder temp
@Qteb
Qteb / simplify3d-post-script-jd
Created May 9, 2020 20:39
Junction deviation calibration post script for Simplify3D
{STRIP ";"}
{DELETE "M201\n"}
{DELETE "M204\n"}
{DELETE "M205\n"}
{DELETE "M900\n"}
{REPLACE "M117 Printing..." "M117 Printing...\nM900 K0\nM201 X3000 Y3000\n205 J0.02"}
{REPLACE "G1 Z5.000 F1002" "G1 Z5.000 F1002\nM205 J0.04"}
{REPLACE "G1 Z10.000 F1002" "G1 Z10.000 F1002\nM205 J0.06"}
{REPLACE "G1 Z15.000 F1002" "G1 Z15.000 F1002\nM205 J0.08"}
{REPLACE "G1 Z20.000 F1002" "G1 Z20.000 F1002\nM205 J0.10"}
@Qteb
Qteb / simplify3d-post-script-acc
Created May 9, 2020 20:38
Acceleration calibration post script for Simplify3D
{STRIP ";"}
{DELETE "M201\n"}
{DELETE "M204\n"}
{DELETE "M205\n"}
{DELETE "M900\n"}
{REPLACE "M117 Printing..." "M117 Printing...\nM900 K0\nM201 X9000 Y9000\nM205 J0.04\nM204 T1000 P1000"}
{REPLACE "G1 Z5.000 F1002" "G1 Z5.000 F1002\nM204 T1500 P1500"}
{REPLACE "G1 Z10.000 F1002" "G1 Z10.000 F1002\nM204 T2000 P2000"}
{REPLACE "G1 Z15.000 F1002" "G1 Z15.000 F1002\nM204 T2500 P2500"}
{REPLACE "G1 Z20.000 F1002" "G1 Z20.000 F1002\nM204 T3000 P3000"}
; Start G-code
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ;start with the fan off
M104 S[extruder0_temperature] T0 ; extrude heat wait
M140 S[bed0_temperature] T0 ; bed temperature heat wait
G92 E0 ; zero the extruded length
G28 ; home all
G1 F9000 X0 Y0 Z30 ; move to wait point
; Start G-code
M107 ; turn off fan
M82
G21 ; set units to millimeters
G90 ; use absolute coordinates
M104 S{material_print_temperature} ; set extruder temp
M140 S{material_bed_temperature} ; set bed temp
G28 ; home all
M190 S{material_bed_temperature} ; wait for bed temp
M109 S{material_print_temperature} ; wait for extruder temp
@Qteb
Qteb / git-clear.sh
Last active February 10, 2017 10:49
#!/usr/bin/env bash
daemon() {
PROJECT_NAME="$1"
PROJECT_DIRECTORY="/Users/mihailstepancenko/PhpstormProjects/$PROJECT_NAME"
COMMAND="git rev-parse --abbrev-ref HEAD"
branch1=""
if [ -d "$PROJECT_DIRECTORY" ]; then
cd $PROJECT_DIRECTORY
@Qteb
Qteb / style.css
Created February 9, 2017 13:18
Custom CSS styles for YouTrack
.youtrack-issues__issue-info {
display: inline;
}
.widget__content {
padding: 8px;
height: calc(100% - 26px);
}
.youtrack-report__chart_full-height {
height: calc(100% - 40px);
}
// ==UserScript==
// @name AlfaBankCustoms
// @namespace https://gist.github.com/Qteb/44829b16ff262f1748005b9bd52f5d46
// @updateURL https://gist.github.com/Qteb/44829b16ff262f1748005b9bd52f5d46/raw/AlfaBankCustoms.user.js
// @downloadURL https://gist.github.com/Qteb/44829b16ff262f1748005b9bd52f5d46/raw/AlfaBankCustoms.user.js
// @version 0.1
// @author Qteb
// @match https://click.alfabank.ru/*
// @grant none
// ==/UserScript==