Skip to content

Instantly share code, notes, and snippets.

@parkerlreed
parkerlreed / gist:fc86a67231203d1d9e8bf3abaf8c8ce8
Last active March 12, 2025 13:19
Quest 3 DP alt out not working still on March 12th v74 PTC
[parker@parker-framework ~]$ adb logcat -c
[parker@parker-framework ~]$ adb logcat | grep msm-dp
03-12 09:13:23.075 0 0 I [drm:dp_power_clk_enable][msm-dp-info][13911]core: on link:off strm0:off strm1:off
03-12 09:13:23.076 0 0 I : [drm:dp_display_host_init][msm-dp-info][13911][OK]
03-12 09:13:23.077 0 0 I : [drm:dp_display_host_ready][msm-dp-info][12604][OK]
03-12 09:13:23.134 0 0 I : [drm:dp_panel_read_sink_caps][msm-dp-info][12604]fec_en=0, dsc_en=0, widebus_en=1
03-12 09:13:23.135 0 0 I [drm:dp_link_process_request][msm-dp-info][12604]event: DP_LINK_STATUS_UPDATED
03-12 09:13:23.136 0 0 I [drm:dp_power_clk_enable][msm-dp-info][12604]core: on link:on strm0:off strm1:off
03-12 09:13:23.142 0 0 I : [drm:dp_ctrl_link_train][msm-dp-info][12604]link training #1 successful
03-12 09:13:23.145 0 0 I : [drm:dp_ctrl_link_train][msm-dp-info][12604]link training #2 successful
[Gui]
ExportCloudsDialog\assemble=true
ExportCloudsDialog\assemble_samples=0
ExportCloudsDialog\assemble_voxel=0.01
ExportCloudsDialog\bilateral=false
ExportCloudsDialog\bilateral_sigma_r=0.1
ExportCloudsDialog\bilateral_sigma_s=10
ExportCloudsDialog\binary=true
ExportCloudsDialog\cam_proj=true
ExportCloudsDialog\cam_proj_decimation=1
#!/usr/bin/env python
import sys
import bluepy.btle as btle
import crcmod
from PyQt6.QtWidgets import (
QApplication, QWidget, QPushButton, QVBoxLayout, QSlider, QLabel, QColorDialog
)
from PyQt6.QtCore import Qt
from PyQt6.QtGui import QColor
@parkerlreed
parkerlreed / led.py
Last active March 2, 2025 06:53
Vivitar Studio Light RGBW control
#!/usr/bin/env python
import bluepy.btle as btle
import crcmod
import sys
# Bluetooth device MAC address
DEVICE_MAC = "FC:58:FA:46:B1:77"
# Define CRC-16 function using crcmod
def calculate_crc(data):
@parkerlreed
parkerlreed / input_remap.c
Last active March 1, 2025 02:21
Remap CaptionCall buttons into single input device with remapping
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/input.h>
#include <linux/uinput.h>
#include <errno.h>
#include <string.h>
#include <poll.h>
#include <time.h>
Log created by: whipper 0.10.0 (internal logger)
Log creation date: 2024-11-06T20:14:53Z
Ripping phase information:
Drive: HL-DT-STDVD-RAM GSA-E60L (revision 1.00)
Extraction engine: cdparanoia III 10.2 libcdio 2.1.0 x86_64-pc-linux-gnu
Defeat audio cache: true
Read offset correction: 102
Overread into lead-out: false
Gap detection: cdrdao 1.2.5
@parkerlreed
parkerlreed / README.md
Last active January 20, 2025 04:37
RTAB-Map with librealsense v1
[parker@parker-framework build]$ dbus-monitor
signal time=1735505416.814230 sender=org.freedesktop.DBus -> destination=:1.132 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.132"
signal time=1735505416.814248 sender=org.freedesktop.DBus -> destination=:1.132 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.132"
method call time=1735505430.811058 sender=:1.127 -> destination=org.freedesktop.Notifications serial=38 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "songrec"
uint32 0
string ""
string "Song recognized"
[parker@parker-framework ~]$ ls /usr/bin | grep '^[A-Z][^/]*$'
BasiliskII
CreateDOMDocument
DOMCount
DOMPrint
DRAWEXE
DRAWEXE-7.8.1
EnumVal
ExpToCasExe
ExpToCasExe-7.8.1
@parkerlreed
parkerlreed / driftnet.py
Last active December 23, 2024 20:18
Driftnet Reborn - Run with `mitmdump -q -s driftnet.py`
from mitmproxy import ctx
import multiprocessing
# Define the run_gui function before it is used
def run_gui(queue):
from PyQt6.QtWidgets import (
QApplication, QLabel, QVBoxLayout, QWidget, QScrollArea, QGridLayout
)
from PyQt6.QtGui import QPixmap
from PyQt6.QtCore import Qt