Skip to content

Instantly share code, notes, and snippets.

View shift's full-sized avatar

Vincent Palmer shift

View GitHub Profile
@shift
shift / config.yml
Last active March 18, 2020 13:12
Prometheus CORVID-19 Berlin
- name: coronavirus_berlin_deaths
type: object
path: $.features[*]
labels:
district: $.attributes.GEN
values:
count: $.attributes.Death
- name: coronavirus_berlin_cases
type: object
path: $.features[*]
; filament used [mm] = 8491.3
; filament used [cm3] = 20.4
; filament used [g] = 25.3
; filament cost = 0.6
; total filament used [g] = 25.3
; total filament cost = 0.6
; estimated printing time (normal mode) = 2h 50m 33s
; estimated printing time (silent mode) = 6h 5m 7s
; avoid_crossing_perimeters = 1
; bed_custom_model =
blueprint:
name: Motion-activated Light
domain: automation
source_url: https://gist.github.com/shift/d3225b4bb5d658893f70ea7b8358721c#file-motion_activated-_light-yaml
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
# generated by SuperSlicer 2.3.55 on 2020-12-27 at 18:45:50 UTC
[print:0.2mm]
allow_empty_layers = 0
avoid_crossing_not_first_layer = 1
avoid_crossing_perimeters = 0
bottom_fill_pattern = monotonic
bottom_solid_layers = 3
bottom_solid_min_thickness = 0
bridge_acceleration = 0
@shift
shift / afterburner
Created May 22, 2021 06:27
Extruders Klipper
microsteps: 128
full_steps_per_rotation: 200
rotation_distance: 7.68
run_current: .5
hold_current: 0.4
@shift
shift / gist:0cebeff20228ed3e79115f302235be4a
Created May 8, 2021 15:17
klipper arduino nano flashing command
avrdude -patmega328p -c arduino -b 57600 -P /dev/ttyUSB0 -v -D -Uflash:w:out/klipper.elf.hex:i
@shift
shift / output.log
Last active January 7, 2023 19:46
The output from OpenOCD flashing Klipper onto a SKR Pico board.
pi@dio-print:~/klipper $ openocd -f interface/raspberrypi-swd.cfg -f target/rp2040.cfg -c "program out/klipper.elf verify reset exit"
Open On-Chip Debugger 0.11.0-g4f2ae61-dirty (2023-01-07-19:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz
Info : Hardware thread awareness created
Info : Hardware thread awareness created
Info : RP2040 Flash Bank Command
https://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/iso/latest/archlinux-x86_64.iso
@shift
shift / rpi4_eufi_booting_flatcar.md
Created December 2, 2020 09:21
UEFI/iPXE booting Raspberry Pi for Flatcar Linux

UEFI/iPXE booting Raspberry Pi for Flatcar Linux

Download and compile the following https://github.com/pftf/RPi4.git. I made the following change to edk2-platforms to always enable 3GB RAM+ as TFTP booting this seems to cause issues with it remembering the options.

diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4/RPi4.dsc
index c481c35342..4b495b1fe8 100644
--- a/Platform/RaspberryPi/RPi4/RPi4.dsc
+++ b/Platform/RaspberryPi/RPi4/RPi4.dsc
@@ -495,7 +495,7 @@
@shift
shift / flake.nix
Last active January 8, 2024 16:33
Very bare flake example using the image builder for the dynalink_dl-wrx36 access point.
{
inputs = {
openwrt-imagebuilder.url = "github:astro/nix-openwrt-imagebuilder";
};
outputs = { self, nixpkgs, openwrt-imagebuilder }: {
packages.x86_64-linux.ap1 =
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
profiles = openwrt-imagebuilder.lib.profiles { inherit pkgs; };