Skip to content

Instantly share code, notes, and snippets.

@markwal
markwal / depth.py
Created March 19, 2025 20:48
Run Lotus from the command line and just keep the grayscale depth map
import logging
import os
import click
from pathlib import Path
from PIL import Image
from contextlib import nullcontext
import numpy as np
import torch
from tqdm.auto import tqdm
@markwal
markwal / serial.log
Created February 11, 2017 08:28
No Cancel GCODE Script Issue
2017-02-11 08:14:40,001 - Enabling serial logging
2017-02-11 08:14:42,299 - Send: M105
2017-02-11 08:14:42,323 - Recv: ok T:20.9/0.0 T1:0.0/0.0 T0:20.9/0.0 B:22.1/0.0 @:0.0
2017-02-11 08:14:47,308 - Send: M105
2017-02-11 08:14:47,330 - Recv: ok T:20.9/0.0 T1:0.0/0.0 T0:20.9/0.0 B:22.1/0.0 @:0.0
2017-02-11 08:14:52,332 - Send: M105
2017-02-11 08:14:52,356 - Recv: ok T:20.9/0.0 T1:0.0/0.0 T0:20.9/0.0 B:22.1/0.0 @:0.0
2017-02-11 08:14:52,786 - Changing monitoring state from 'Operational' to 'Printing'
2017-02-11 08:14:52,826 - Send: N0 M110 N0*125
2017-02-11 08:14:52,849 - Recv: ok
@markwal
markwal / octoprint.log
Created February 11, 2017 02:08
Log for cancel issue
2017-02-11 01:05:14,745 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available
2017-02-11 01:05:14,766 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 13 mixin implementations, 10 hook handlers
2017-02-11 01:05:14,923 - octoprint.plugin.core - INFO - Loading plugins from /usr/local/lib/python2.7/dist-packages/OctoPrint-1.3.1-py2.7.egg/octoprint/plugins, /home/octo/.octoprint/plugins and installed plugin packages...
2017-02-11 01:05:16,837 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 13 mixin implementations, 10 hook handlers
2017-02-11 01:05:16,860 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /usr/share/models...
2017-02-11 01:05:17,163 - octoprint.filemanager.storage - INFO - ... file metadata for /usr/share/models initialized successfully.
2017-02-11 01:05:17,558 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2017-02-11 01:05:33,813 - octoprint.util.pip - INFO - Using "
@markwal
markwal / polygon_2060.cfg
Created October 14, 2016 23:13
Start on Redeem configuration for the Polygon 2060
[System]
machine_type = Polygon_2060
[Geometry]
# Delta
axis_config = 3
# Set the total length each axis can travel
travel_x = -0.5
@markwal
markwal / -
Created October 7, 2015 09:34
commit 41b1e049322d5f5462fe89805b8591b157130c4b
Author: Mark Walker <markwal@hotmail.com>
Date: Wed Oct 7 02:32:47 2015 -0700
fix a couple of typos
diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py
index 39b7a04..5746721 100644
--- a/{{cookiecutter.repo_name}}/setup.py
+++ b/{{cookiecutter.repo_name}}/setup.py
@markwal
markwal / -
Created October 7, 2015 09:25
commit dbc3430b34f94acc4bc7b8d11ded0a41f01fc8c5
Author: Mark Walker <markwal@hotmail.com>
Date: Wed Oct 7 02:22:56 2015 -0700
Typos
diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py
index 39b7a04..a10abc6 100644
--- a/{{cookiecutter.repo_name}}/setup.py
+++ b/{{cookiecutter.repo_name}}/setup.py
@markwal
markwal / -
Created October 2, 2015 09:42
diff --git a/src/octoprint/static/js/app/viewmodels/connection.js b/src/octoprint/static/js/app/viewmodels/connection.js
index d501e7e..613a57e 100644
--- a/src/octoprint/static/js/app/viewmodels/connection.js
+++ b/src/octoprint/static/js/app/viewmodels/connection.js
@@ -121,6 +121,7 @@ $(function() {
OctoPrint.connection.connect(data)
.done(function() {
+ self.requestData();
self.settings.requestData();
@markwal
markwal / dabba.x3g.txt
Created July 11, 2015 19:28
s3g-decompiler translation of serial sent
Command count: (Command ID) Command description
1: (12) Read from EEPROM, offset 420, count 4
2: (12) Read from EEPROM, offset 424, count 4
3: (12) Read from EEPROM, offset 428, count 4
4: (12) Read from EEPROM, offset 432, count 4
5: (12) Read from EEPROM, offset 436, count 4
6: (12) Read from EEPROM, offset 528, count 4
7: (12) Read from EEPROM, offset 532, count 4
8: (12) Read from EEPROM, offset 536, count 4
9: (12) Read from EEPROM, offset 540, count 4
@markwal
markwal / gpx-g28.c
Created July 3, 2015 22:46
G28 handling in gpx
// G28 - Home given axes to machine defined endstop
case 28: {
unsigned endstop_max = 0;
unsigned endstop_min = 0;
if(gpx->command.flag & F_IS_SET) gpx->current.feedrate = gpx->command.f;
if(gpx->command.flag & X_IS_SET) {
if(gpx->machine.x.endstop) {
endstop_max |= X_IS_SET;
}
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <termios.h>
static unsigned char calculate_crc(unsigned char *addr, long len)
{
unsigned char data, crc = 0;
while(len--) {