Skip to content

Instantly share code, notes, and snippets.

View thoraxe's full-sized avatar

Erik Jacobs thoraxe

View GitHub Profile
ERROR: Script does not inherit a Node: res://logger.cs
at: start (main/main.cpp:1832)
[15:07:29] [INFO] [main] Alpacas are coming!
ERROR: (Node not found: "/root/Logger" (absolute path attempted from "/root/Server").)
at: get_node (scene/main/node.cpp:1322)
@thoraxe
thoraxe / buttonled.ino
Created January 5, 2022 13:20
Pot rotation detection with Teensy (and some CAN junk)
// https://github.com/tonton81/FlexCAN_T4
#include <FlexCAN_T4.h>
// use CAN2 on pin 0/1
FlexCAN_T4<CAN2, RX_SIZE_256, TX_SIZE_16> Can2;
// Include the Bounce2 library found here :
// https://github.com/thomasfredericks/Bounce2
#include <Bounce2.h>
time="2021-09-23T16:05:37Z" level=info msg="scheduling ClusterServiceVersion for install" csv=blender-operator.v0.0.1 id=xiUfI namespace=default phase=Pending
I0923 16:05:37.865295 1 event.go:282] Event(v1.ObjectReference{Kind:"ClusterServiceVersion", Namespace:"default", Name:"blender-operator.v0.0.1", UID:"41f6a289-7197-456f-8cfa-dd05e01a709b", APIVersion:"operators.coreos.com/v1alpha1", ResourceVersion:"7552", FieldPath:""}): type: 'Normal' reason: 'AllRequirementsMet' all requirements found, attempting install
{"level":"error","ts":1632413137.926996,"logger":"controllers.operatorcondition","msg":"Error ensuring OperatorCondition Deployment EnvVars","request":"default/blender-operator.v0.0.1","error":"Deployment.apps \"blender-operator-controller-manager\" not found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/build/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/co
@thoraxe
thoraxe / trimpot_reader.ino
Created July 4, 2021 20:23
Terrible trimpot reader for Teens/Arduino
// Include the Bounce2 library found here :
// https://github.com/thomasfredericks/Bounce2
#include <Bounce2.h>
// INSTANTIATE A Button OBJECT
Bounce2::Button button = Bounce2::Button();
// WE WILL attach() THE BUTTON TO THE FOLLOWING PIN IN setup()
#define BUTTON_PIN 11
#define JOYSTICK_BUTTON 1
[root@t490s agones]# /home/thoraxe/bin/kind create cluster --config=kind-config.yaml
enabling experimental podman provider
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.21.1) 🖼
✗ Preparing nodes 📦 📦
ERROR: failed to create cluster: podman run error: command "podman run --hostname kind-worker --name kind-worker --label io.x-k8s.kind.role=worker --privileged --tmpfs /tmp --tmpfs /run --volume c380e174b074e1469c64caa4d8fd980eb522e44a5667ee969dd234089dffe3c9:/var:suid,exec,dev --volume /lib/modules:/lib/modules:ro --detach --tty --net kind --label io.x-k8s.kind.cluster=kind -e container=podman --volume /dev/mapper:/dev/mapper kindest/node@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6" failed with error: exit status 125
Command Output: Error: open /dev/dma_heap: permission denied
lutris-wrapper: /home/thoraxe/.local/share/lutris/runners/wine/lutris-6.1-x86_64/bin/wine
Running /home/thoraxe/.local/share/lutris/runners/wine/lutris-6.1-x86_64/bin/wine /home/thoraxe/Games/epic-games-store/drive_c/windows/explorer.exe /desktop=EGS,3840x2160 msiexec /i /home/thoraxe/.cache/lutris/installer/epic-games-store/epicsetup/EpicGamesLauncherInstaller.msi /q
Initial process has started with pid 32549
Start monitoring process.
0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0108:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0108:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0108:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
lutris
2021-05-20 11:45:30,716: Initializing lutris
2021-05-20 11:45:31,138: Downloading DXVK releases to /home/thoraxe/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-05-20 11:45:31,139: Runtime updated. Initialization complete.
2021-05-20 11:45:31,140: Lutris 0.5.8.3
2021-05-20 11:45:31,141: Running Intel Mesa driver 20.3.5 on Mesa Intel(R) UHD Graphics 620 (WHL GT2) (0x3ea0)
2021-05-20 11:45:31,141: GPU: 8086:3EA0 17AA:2286 (i915 drivers)
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
2021-05-20 11:45:46,735: Getting runner information for wine
2021-05-20 11:11:56,150: Initializing lutris
2021-05-20 11:11:56,577: Downloading DXVK releases to /home/thoraxe/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-05-20 11:11:56,578: Runtime updated. Initialization complete.
2021-05-20 11:11:56,579: Lutris 0.5.8.3
2021-05-20 11:11:56,579: Running Intel Mesa driver 20.3.5 on Mesa Intel(R) UHD Graphics 620 (WHL GT2) (0x3ea0)
2021-05-20 11:11:56,579: GPU: 8086:3EA0 17AA:2286 (i915 drivers)
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
class_name MyAssistant
extends HTTPRequest
var session_id
signal session_obtained
func get_session(assistant_id):
connect("request_completed", self, "_session_request_completed")
# set up authentication
- alias: Turn on main stairs and landing lights on stair sensor movement
trigger:
platform: state
entity_id: group.stairs_sensors
to: 'on'
action:
- service: light.turn_on
entity_id: light.main_stairs_light
data_template:
brightness: >-