Skip to content

Instantly share code, notes, and snippets.

View wess's full-sized avatar
💭
When am I not writing code?

Wess Cope wess

💭
When am I not writing code?
View GitHub Profile
;(function(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defaults = _interopRequireDefault(require("axios/lib/defaults"));
; CR-1 Custom Start G-code
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M104 S160; start warming extruder to 160
G28 ; Home all axes
G29 ; Auto bed-level (BL-Touch)
G92 E0 ; Reset Extruder
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
@wess
wess / gist:c66382198d48238787718b9bb8e9f3d9
Created July 30, 2019 21:07
Start/End GCodes for BLTouch Ender 3
; Ender 3 Custom Start G-code
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M104 S160; start warming extruder to 160
G28 ; Home all axes
G29 ; Auto bed-level (BL-Touch)
G92 E0 ; Reset Extruder
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
How to Calibrate E-Steps (can be added to firmware)
M503 ; See current steps
M83 ; Set extruder to relative mode
M109 S240 ; Warm up the nozzle to 240C for PETG. Use 200 for PLA.
G1 E100 F100 ; Extrude 100mm at 100mm/min. In my case, only 89mm extruded and my current settings at the time was the default 93. 100 (desired) / 89 (actual) * 93 (current) = 104.49
M92 E104.49 ; Set steps to 104.49mm / 100mm
M500 ; Save settings to EEPROM
@wess
wess / ENDER 3 BLTOUCH SETUP
Last active April 27, 2022 03:18
BLTouch Config for Ender 3 (download from http://marlinfw.org)
Configuration.h
COMMENT 78: //#define SHOW_BOOTSCREEN // Save memory.
COMMENT 97: //#define CUSTOM_STATUS_SCREEN_IMAGE // Save memory.
EDIT 375: #define DEFAULT_Kp 32.24 // PID settings with Micro Swiss all metal hotend.
EDIT 376: #define DEFAULT_Ki 3.71 // PID settings with Micro Swiss all metal hotend.
EDIT 377: #define DEFAULT_Kd 69.98 // PID settings with Micro Swiss all metal hotend.
/**
* Disable all Volumetric extrusion options
*/
//#define NO_VOLUMETRICS
#if DISABLED(NO_VOLUMETRICS)
/**
* Volumetric extrusion default state
* Activate to make volumetric extrusion the default method,
#!/bin/bash
# Run this script in display 0 - the monitor
export DISPLAY=:0
# Hide the mouse from the display
unclutter &
# If Chrome crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
if [ "$confirmation" != y ] && [ "$confirmation" != Y ]; then
echo "Uninstall cancelled"
exit
fi
echo "Removing ~/.oh-my-zsh"
if [ -d ~/.oh-my-zsh ]; then
rm -rf ~/.oh-my-zsh
fi
Server Side Engineer
Metis Machine is looking for a motivated, high-energy and enthusiastic
personality to help build out a variety of solutions that are quite challenging.
Everything from API/Graphql endpoints to handling mass quantities of data.
Background
Metis Machine is a Charlottesville, VA based early-stage start-up whose
@wess
wess / howl.ex
Created May 16, 2017 12:57
A simple pubsub
defmodule Howl do
use GenServer
require Logger
@type type :: :n | :p | :c | :a | :r | :rc
@type scope :: :l | :g
@type name :: term
@type key :: {type, scope, name}
# Client API