Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Jacobs thoraxe

View GitHub Profile
View gist:01b84a15475c319a5ca3691beb0a66e4
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 Jul 4, 2021
Terrible trimpot reader for Teens/Arduino
View trimpot_reader.ino
// 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
View gist:d35dd1f063a44374193740546821716b
[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
View gist:747a5915c7739dc8e3a73138c234f129
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.
View gist:7ed0aead5fe4373a02bee685058d92c7
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
View gist:7c1d5106038e504e19ef0d6609964c3e
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
View MyAssistant.gd
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
View automation.yaml
- 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: >-
View automation.yaml
- alias: Turn on main stairs and landing lights on lower sensor movement
trigger:
platform: state
entity_id: binary_sensor.main_stairs_bottom_sensor_occupancy
to: 'on'
action:
- service: light.turn_on
entity_id: light.main_stairs_light
data_template:
brightness: >-
View catalogsource.yaml
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
creationTimestamp: "2021-01-29T16:19:50Z"
generation: 1
managedFields:
- apiVersion: operators.coreos.com/v1alpha1
fieldsType: FieldsV1
fieldsV1:
f:spec: