Skip to content

Instantly share code, notes, and snippets.

View CarlFK's full-sized avatar

Carl Karsten CarlFK

  • Click to edit
  • Chicago
View GitHub Profile
@CarlFK
CarlFK / a2.sh
Created October 2, 2023 06:10
python script to generate a2.sh shell script that tests gst v4l2jpegdec with permutations of caps
# a2.sh
set -ex
echo i=0 s='00000'
gst-launch-1.0 videotestsrc \! jpegenc \! jpegparse \! v4l2jpegdec \! videoconvert \! video/x-raw, \! fakesink num-buffers=9000
#
echo i=1 s='00001'
gst-launch-1.0 videotestsrc \! jpegenc \! jpegparse \! v4l2jpegdec \! videoconvert \! video/x-raw,colorimetry=bt709 \! fakesink num-buffers=9000
#
@CarlFK
CarlFK / utils.py
Created May 16, 2023 01:05
my first webserver
# veyepar/dj/googauth/utils.py
import argparse
import json
import os
from http.server import HTTPServer, BaseHTTPRequestHandler
from pprint import pprint
from urllib.parse import urlparse, parse_qs
carl@twist:~/src/evezor/Edge_Boards/poc$ git remote -v
carlfk git@github.com:CarlFK/Edge_Boards.git (fetch)
carlfk git@github.com:CarlFK/Edge_Boards.git (push)
origin git@github.com:evezor/Edge_Boards.git (fetch)
origin git@github.com:evezor/Edge_Boards.git (push)
carl@twist:~/src/evezor/Edge_Boards/poc$ git branch
feature/glossary
master
* poc/v1
@CarlFK
CarlFK / hmb.py
Created October 21, 2019 22:44
httm to mmqt bridge
import json
import os
from http.server import HTTPServer, BaseHTTPRequestHandler
from pprint import pprint
class web_server(BaseHTTPRequestHandler):
def do_POST(self):