This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import bluetooth | |
from PIL import Image | |
import numpy as np | |
def convert_image_to_escpos_raster(filepath, width=384, dither=False): | |
# Load RGBA image and separate alpha mask | |
img_rgba = Image.open(filepath).convert("RGBA") | |
alpha = img_rgba.getchannel("A") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import bluetooth | |
from PIL import Image, ImageOps | |
import numpy as np | |
import os | |
def convert_image_to_bitpacked(filepath, width=384, height=390): | |
# Load the image with RGBA mode to preserve alpha | |
img = Image.open(filepath).convert("RGBA") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os | |
import re | |
import requests | |
import subprocess | |
from datetime import datetime, timezone | |
import shlex | |
# Relaunch in Konsole if not already in a terminal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pygame | |
import cv2 | |
import numpy as np | |
from onvif import ONVIFCamera | |
from threading import Thread, Lock | |
# ---- Config ---- | |
IP = '192.168.86.21' | |
RTSP_URL = f'rtsp://{IP}/live/ch00_1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder