Upstream issue: mchehab/rasdaemon#17
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 socket | |
UDP_IP = '::' | |
UDP_PORT = 5005 | |
sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) | |
sock.bind((UDP_IP, UDP_PORT)) | |
connection_oriented = True |
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
// Teensy Library to stream Optical TOSLINK input simultaenously to two outputs: | |
// * USB Audio | |
// * SPDIF | |
// | |
// | |
// Test Setup: | |
// * Input: Google Chromecast Audio TOSLINK Optical @ 48 KHz -> PLR135/T10 -> Teensy SPDIF_IN | |
// * INput: USB serial console to set gain | |
// * Output: Teensy SPDIF_OUT -> Khadas Tone Board RCA SPDIF input -> Analog Speaker Amp | |
// * Output: USB -> Arch Linux (5.10 kernel) with Pulseaudio + Audacity |
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
From e685e2ee9ce193d573e571e3be353af48ea371ac Mon Sep 17 00:00:00 2001 | |
From: Kyle Manna <[email protected]> | |
Date: Tue, 29 Dec 2020 09:10:32 -0800 | |
Subject: [PATCH] digitalocean-synchronize 2.7-1 | |
* Bump to latest version. | |
* Resolved issue with IPv6 config not working for me. | |
--- | |
.SRCINFO | 8 ++++---- | |
PKGBUILD | 10 ++++++---- |
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
esphome: | |
name: esp_tdisplay | |
platform: ESP32 | |
board: featheresp32 | |
wifi: | |
ssid: "some ssid" | |
password: "wifipassword" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
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 python3 | |
"""Do you _need_ to call threading.Thread.join() to clean-up threads on python if they exit cleanly? | |
""" | |
import threading | |
import time | |
def do_a_thing(idx): | |
print(f"starting {idx}") | |
time.sleep(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
class ZipInfoTimeless(zipfile.ZipInfo): | |
def __init__(self, *args, **kwargs): | |
# Patch year to 1980 if given a datetime before 1980. Also jump through hoops because tuples are | |
# immutable. | |
if 'date_time' in kwargs and kwargs['date_time'][0] < 1980: | |
dt = list(kwargs['date_time']) | |
dt[0] = 1980 | |
kwargs['date_time'] = tuple(dt) | |
elif len(args) > 1 and args[1][0] < 1980: | |
dt = list(args[1]) |
http://www.tpdz.net/productinfo/398300.html
Contents of card directory files under /proc/asound
for reference.
MX3
Contents of card directory files under /proc/asound
for reference.
Control
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 python3 | |
# | |
# Falcon + zipfile streaming content using os.pipe() to minimize RAM usage to a | |
# pipes worth of data. | |
# | |
# This test program generated a nearly 500 MB zip file with various compression | |
# arguments supported by the python3 standard library. | |
# | |
# Usage for debug webserver: | |
# $ ./app.py |