Skip to content

Instantly share code, notes, and snippets.

@tedder
tedder / docker-compose.yml
Last active July 26, 2021 15:01
helium validator + watchtower (with consensus check) + exporter
# launch: docker-compose up -d
version: "3.7"
services:
validator:
image: quay.io/team-helium/validator:latest-validator-amd64
container_name: validator
init: true
restart: always
ports:
- "2154:2154"
@tedder
tedder / v01.scad
Created January 21, 2021 18:52
piqo
fff
@tedder
tedder / dbf.txt
Last active January 7, 2020 22:05
podcast parse show notes
2020-01-01 02:22:00Z
His Name Is Alan
http://dobyfriday.com/165
<p><strong>This week's challenge: continue the Holiday Party.</strong></p>
-----------------------------------------
2019-12-24 02:21:00Z
My Hog Is My Business
http://dobyfriday.com/164
<p><strong>This week’s challenge: have a holiday party.</strong></p>
@tedder
tedder / build.log
Last active February 13, 2019 12:26
++++ realpath -s /CustomPiOS/build
+++ dirname /CustomPiOS/build
++ BUILD_SCRIPT_PATH=/CustomPiOS
++ source /CustomPiOS/common.sh
++ install_cleanup_trap
++ set -e
++ trap cleanup SIGINT SIGTERM
++++ realpath -s /CustomPiOS/build
+++ dirname /CustomPiOS/build
++ CUSTOM_OS_PATH=/CustomPiOS
@tedder
tedder / Makefile
Last active November 22, 2018 17:20
avrdude for tiny43
TOOLPATH = /Applications/Arduino_187.app/Contents/Java/hardware/tools/avr/bin
DEVICE = t43u
SERIAL_PORT = -P /dev/cu.usbmodem00221792
PROGRAMMER = -c stk500v2
OBJECTS = main.o
FUSES =
CLOCK = 1000000 # 1 MHz
AVRDUDE = $(TOOLPATH)/avrdude $(PROGRAMMER) $(SERIAL_PORT) -p $(DEVICE) -C /Applications/Arduino_187.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
@tedder
tedder / vc2.py
Created November 2, 2018 23:13
py check throttling on raspberry pi
# the following is distilled (reduced) from `py-videocore`, which has a larger purpose but
# happens to include these methods. The following has a MIT license.
# source: https://github.com/nineties/py-videocore
import os
from array import array
from struct import calcsize, pack_into, unpack_from
from fcntl import ioctl
IOCTL_MAILBOX = 0xC0046400 # _IOWR(100, 0, char *)
@tedder
tedder / stock.gcode
Created September 10, 2018 21:59
monoprice mini delta starting gcode
; Monoprice Mini Delta
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M104 S[first_layer_temperature] T0 ; set extruder temp
M109 S[first_layer_temperature] T0 ; wait for extruder temp
G92 E0 ; reset extrusion distance
G28 ; Start from home position
G1 E-6 F900 ; retract 6mm of filament before starting the bed leveling process
G92 E0 ; reset extrusion distance
G4 S5 ; Pause for 5 seconds to allow time for removing extruded filament
@tedder
tedder / avrdude -vvv
Created August 27, 2018 20:24
avrdude: initialization failed, rc=-1
$ [..]avrdude -C[..]avrdude/6.3.0-arduino9/etc/avrdude.conf -vvv -pattiny85 -cstk500 -P/dev/cu.usbmodem00221792 -Uflash:w:/var/fo[..]/arduino_build_328240/Blink.ino.hex:i
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is [..]avrdude/6.3.0-arduino9/etc/avrdude.conf"
User configuration file is "/Users/ted/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
@tedder
tedder / serial.log.2018-06-24_16-37-34
Created June 25, 2018 16:41
M300/mini delta timeout
This file has been truncated, but you can view the full file.
2018-06-24 15:35:31,749 - Changing monitoring state from "Offline" to "Detecting serial port"
2018-06-24 15:35:31,775 - Serial port list: ['/dev/ttyACM0']
2018-06-24 15:35:31,776 - Connecting to: /dev/ttyACM0
2018-06-24 15:35:31,776 - Using Malyan/Monoprice Connection Fix Plugin to create serial connection
2018-06-24 15:35:31,780 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2018-06-24 15:35:31,782 - Connected to: Serial<id=0x6d758610, open=True>(port='/dev/ttyACM0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=30.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2018-06-24 15:35:31,785 - Starting baud rate detection
2018-06-24 15:35:31,794 - Changing monitoring state from "Opening serial port" to "Detecting baudrate"
2018-06-24 15:35:31,861 - Trying baudrate: 115200
@tedder
tedder / octoprint.log
Created January 21, 2018 21:35
octoprint 500 error from upload with invalid extension
2018-01-21 21:23:55,291 - octoprint - ERROR - Exception on /api/files/local [POST]
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()