Skip to content

Instantly share code, notes, and snippets.

View lukemarsden's full-sized avatar

lukemarsden

View GitHub Profile
luke@chunky:~/pm/helix/api/pkg/tools$ cat ../../../.env
export TOGETHER_API_KEY=b5d1fd8a7288935ae523a1673fe3055b16012c80e59eab58de5803b5258afd80
luke@chunky:~/pm/helix/api/pkg/tools$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
luke@chunky:~/pm/helix/api/pkg/tools$ go test
(*tools.RunActionResponse)(0x140003b1d40)({
Message: (string) (len=124) "Thanks for asking \"can I get info about the volvo truck?\", I'm am looking into it and will send you an email once I am done!",
RawMessage: (string) (len=124) "Thanks for asking \"can I get info about the volvo truck?\", I'm am looking into it and will send you an email once I am done!",
luke@prime:~/pm/helix$ go test ./...
? github.com/helixml/helix [no test files]
? github.com/helixml/helix/api [no test files]
? github.com/helixml/helix/api/cmd/helix [no test files]
? github.com/helixml/helix/api/pkg/apps [no test files]
? github.com/helixml/helix/api/pkg/auth [no test files]
? github.com/helixml/helix/api/pkg/cli/app [no test files]
? github.com/helixml/helix/api/pkg/cli/fs [no test files]
? github.com/helixml/helix/api/pkg/cli/knowledge [no test files]
? github.com/helixml/helix/api/pkg/client [no test files]
go test ./...
? github.com/helixml/helix [no test files]
? github.com/helixml/helix/api [no test files]
? github.com/helixml/helix/api/cmd/helix [no test files]
? github.com/helixml/helix/api/pkg/apps [no test files]
? github.com/helixml/helix/api/pkg/auth [no test files]
? github.com/helixml/helix/api/pkg/cli/app [no test files]
? github.com/helixml/helix/api/pkg/cli/knowledge [no test files]
? github.com/helixml/helix/api/pkg/client [no test files]
? github.com/helixml/helix/api/pkg/config [no test files]
luke@prime:~/pm/helix$ go test ./...
? github.com/helixml/helix [no test files]
? github.com/helixml/helix/api [no test files]
? github.com/helixml/helix/api/cmd/helix [no test files]
? github.com/helixml/helix/api/pkg/apps [no test files]
? github.com/helixml/helix/api/pkg/auth [no test files]
? github.com/helixml/helix/api/pkg/cli/app [no test files]
? github.com/helixml/helix/api/pkg/cli/fs [no test files]
? github.com/helixml/helix/api/pkg/cli/knowledge [no test files]
? github.com/helixml/helix/api/pkg/client [no test files]
[ 431.893825] intel-ipu6-isys intel-ipu6-isys0: hostlib: resp 07 PIN_DATA_READY, stream 0, timestamp 0x00000003fd789382, pin 0
[ 431.893856] intel-ipu6-isys intel-ipu6-isys0: buffer: Intel IPU6 BE SOC capture 0: received buffer fcf34000
[ 431.893868] intel-ipu6-isys intel-ipu6-isys0: buffer: found buffer 0x00000000fcf34000
[ 431.893879] intel-ipu6-isys intel-ipu6-isys0: sof: using seq nr 1649 for ts 0x00000003fd789382
[ 431.893888] intel-ipu6-isys intel-ipu6-isys0: buf: Intel IPU6 BE SOC capture 0: buffer done, CPU-timestamp:431515173852, sequence:1649
[ 431.893896] intel-ipu6-isys intel-ipu6-isys0: index:9, vbuf timestamp:431481669296, endl
[ 431.893939] intel-ipu6-isys intel-ipu6-isys0: hostlib: resp 09 FRAME_SOF, stream 0, timestamp 0x00000003fd8c1f49, pin 0
[ 431.893955] intel-ipu6-isys intel-ipu6-isys0: sof_event::csi2-1 sequence: 1650
[ 431.893961] intel-ipu6-isys intel-ipu6-isys0: sof: handle 0: (index 1650), timestamp 0x00000003fd8c1f49
[ 431.894074] intel-ipu6-isys intel-ipu6-isys0: buffer:
[ 0.000000] Linux version 6.5.10-200.fc38.x86_64 (mockbuild@cbf61e0e869d4c6d90ab7044b9ed9a96) (gcc (GCC) 13.2.1 20231011 (Red Hat 13.2.1-4), GNU ld version 2.39-15.fc38) #1 SMP PREEMPT_DYNAMIC Thu Nov 2 19:59:55 UTC 2023
[ 0.000000] Command line: BOOT_IMAGE=(hd0,gpt7)/boot/vmlinuz-6.5.10-200.fc38.x86_64 root=UUID=29d786b0-09cf-4979-a044-5bd511b69318 ro rhgb quiet
[ 0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000005462efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000005462f000-0x000000005522efff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x000000005522f000-0x00000000552fefff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000552ff000-0x0000000057cfefff] reserved
@lukemarsden
lukemarsden / dmesg-1.txt
Created October 4, 2023 16:54
sudo dmesg |grep ipu6
[ 7.852174] intel-ipu6 0000:00:05.0: enabling device (0000 -> 0002)
[ 7.852462] intel-ipu6 0000:00:05.0: Device 0xa75d (rev: 0x1)
[ 7.852488] intel-ipu6 0000:00:05.0: physical base address 0x603c000000
[ 7.852490] intel-ipu6 0000:00:05.0: mapped as: 0x000000009fa2581d
[ 7.852921] intel-ipu6 0000:00:05.0: IPU in secure mode
[ 7.852924] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0
[ 7.852925] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff
[ 7.875202] intel-ipu6 0000:00:05.0: IPC reset done
[ 7.875205] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin
[ 7.880202] intel-ipu6 0000:00:05.0: FW version: 20220510
@lukemarsden
lukemarsden / journal-1.txt
Created October 4, 2023 16:50
sudo journalctl -f > journal-1.txt 2>&1
Oct 04 17:45:51 fedora gnome-shell[2165]: libinput error: event6 - SYNA8017:00 06CB:CEB2 Touchpad: kernel bug: Touch jump detected and discarded.
Oct 04 17:45:51 fedora gnome-shell[2165]: See https://wayland.freedesktop.org/libinput/doc/1.23.0/touchpad-jumping-cursors.html for details
Oct 04 17:45:55 fedora gnome-shell[2165]: libinput error: event6 - SYNA8017:00 06CB:CEB2 Touchpad: kernel bug: Touch jump detected and discarded.
Oct 04 17:45:55 fedora gnome-shell[2165]: See https://wayland.freedesktop.org/libinput/doc/1.23.0/touchpad-jumping-cursors.html for details
Oct 04 17:45:58 fedora audit[4396]: USER_ACCT pid=4396 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="luke" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Oct 04 17:45:58 fedora audit[4396]: USER_CMD pid=4396 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/home/luke" cmd=6A6F75726
@lukemarsden
lukemarsden / gst-1.txt
Created October 4, 2023 16:48
sudo gst-launch-1.0 icamerasrc ! autovideosink > gst-1.txt 2>&1
Setting pipeline to PAUSED ...
[10-04 17:45:59.578] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-04 17:45:59.578] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
(gst-launch-1.0:4399): GStreamer-CRITICAL **: 17:45:59.624: Registering meta implementation 'GstCamerasrcMeta' without init function
[10-04 17:46:01.624] CamHAL[WAR] wait event time out, 1 requests processing, 5 requests in HAL
from pyspark.sql import SparkSession, Row, DataFrame
from pyspark.context import SparkContext
from pyspark import SparkConf
import time
import os
import python_pachyderm
conf = SparkConf()
minio = False
if minio: