Skip to content

Instantly share code, notes, and snippets.

@kylegordon
kylegordon / Configuration.h
Created October 17, 2021 22:46
Ender 5 4.2.2 with BLTouch
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
agpuss@lab-master:~$ docker run -d --restart=unless-stopped \
> -p 80:80 -p 443:443 \
> rancher/rancher:latest
Unable to find image 'rancher/rancher:latest' locally
latest: Pulling from rancher/rancher
f08d8e2a3ba1: Pull complete
3baa9cb2483b: Pull complete
94e5ff4c0b15: Pull complete
1860925334f9: Pull complete
ff9fca190532: Pull complete
[ 66%] Building CXX object aasdk/CMakeFiles/aasdk.dir/src/Transport/TCPTransport.cpp.o
[ 66%] Building CXX object aasdk/CMakeFiles/aasdk.dir/src/Transport/Transport.cpp.o
[ 66%] Building CXX object aasdk/CMakeFiles/aasdk.dir/src/Transport/USBTransport.cpp.o
In file included from /home/pi/OpenDsh/dash/aasdk/include/f1x/aasdk/USB/IUSBWrapper.hpp:24,
from /home/pi/OpenDsh/dash/aasdk/include/f1x/aasdk/USB/USBWrapper.hpp:21,
from /home/pi/OpenDsh/dash/aasdk/include/f1x/aasdk/USB/IUSBEndpoint.hpp:22,
from /home/pi/OpenDsh/dash/aasdk/include/f1x/aasdk/USB/IAOAPDevice.hpp:21,
from /home/pi/OpenDsh/dash/aasdk/include/f1x/aasdk/Transport/USBTransport.hpp:23,
from /home/pi/OpenDsh/dash/aasdk/src/Transport/USBTransport.cpp:19:
/usr/include/libusb-1.0/libusb.h:740:46: warning: ISO C++ forbids zero-size array ‘dev_capability_data’ [-Wpedantic]
└─(11:48:21)──> iperf -c 172.24.32.5 ──(Sun,May31)─┘
------------------------------------------------------------
Client connecting to 172.24.32.5, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.24.32.182 port 45608 connected with 172.24.32.5 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.2 sec 45.1 MBytes 37.0 Mbits/sec
┌─(~)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(kyleg@PC1227:pts/0)─┐
└─(11:48:35)──>
BEGIN MESSAGE.
7iiZYrVfdFaVBWH BWbIsAMHekKh4TH VD5lu5jl7G0binW KuprG10xwL2G1pL
84CTXnUOEU5Pu1g Medc3JpLFj5TCKq 6Xr2MZHgg6SeWi3 IbcXHfZqb8HSsDs
tTbIPcKwtD5ue5F fSup0469ddAgi2m 5j5vTwwAUi69eR6 L1RfRUlBTZNeCy2
y8k7JoSEnecskbM XYNV34Z6NQA2n5K SwDGm7tiSkCT.
END MESSAGE.
@kylegordon
kylegordon / billingalert.yaml
Created March 29, 2019 13:29
AWS Billing Alert
# aws cloudformation deploy --region us-east-1 --stack-name billing-alerts --template-file billingalert.yaml
Description: "Billing alerts"
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
DevAlarmThreshold:
Description: Development account alarm threshold.
Type: Number
Default: 20
[ 150.649908] WARNING: at ../../../../../../kernel/oneplus/msm8974/drivers/video/msm/mdss/mdss_mdp_intf_cmd.c:527 mdss_mdp_cmd_wait4pingpong+0x1d4/0x25c()
[ 150.650074] cmd kickoff timed out (0) ctl=0
[ 150.650148] [<c010b870>] (unwind_backtrace+0x0/0xf4) from [<c016e328>] (warn_slowpath_common+0x50/0x60)
[ 150.650260] [<c016e328>] (warn_slowpath_common+0x50/0x60) from [<c016e394>] (warn_slowpath_fmt+0x30/0x40)
[ 150.650372] [<c016e394>] (warn_slowpath_fmt+0x30/0x40) from [<c0384bd4>] (mdss_mdp_cmd_wait4pingpong+0x1d4/0x25c)
[ 150.650487] [<c0384bd4>] (mdss_mdp_cmd_wait4pingpong+0x1d4/0x25c) from [<c03771cc>] (mdss_mdp_display_commit+0x14c/0x2c4)
[ 150.650601] [<c03771cc>] (mdss_mdp_display_commit+0x14c/0x2c4) from [<c038a004>] (mdss_mdp_overlay_kickoff+0x204/0x554)
[ 150.650720] [<c038a004>] (mdss_mdp_overlay_kickoff+0x204/0x554) from [<c039cdbc>] (__mdss_fb_display_thread+0x9c/0x38c)
[ 150.650834] [<c039cdbc>] (__mdss_fb_display_thread+0x9c/0x38c) from [<c0188300>] (kthread+0x90/0x94)
[ 150.650900
filter {
if [sender] == "tcp-adapter" {
mutate {
add_field => {
"test_field" => "%{properties}"
}
}
json {
source => "test_field"
}
@kylegordon
kylegordon / sqs output
Created March 30, 2017 13:28
logstash sqs failure
# vim: tw=60 ts=2
input {
sqs {
queue => "linn-core-logging"
region => "eu-west-1"
# Once this is inside AWS, it should be switched using an IAM profile
# Policy detail at https://github.com/logstash-plugins/logstash-input-s3
access_key_id => "foo"
secret_access_key => "bar"
17-03-03 22:09:01 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform openhome
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:110600)
File "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)
File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)
File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/media_player/openhome.py", line 44, in setup_platform