- I use it on Arch Linux (systemd 257.3-1)
- Install dependency:
yay tpm2-tools(5.7-1)
kmille@linbox:~ journalctl --boot --dmesg --grep=tpm_tis
This is a software to extand the capabilities of a USB Switch Hub. It use the protocol DDC/CI to change the input of my monitor. I'm using the UGREEN Switch USB 3.0
| #!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
| # syntax = docker/dockerfile:1.4.0 | |
| FROM node:20 | |
| WORKDIR /root | |
| RUN npm install sqlite3 |
| # Windows (receiver) side: | |
| .\ffplay.exe -nodisp -ac 2 -acodec pcm_u8 -ar 48000 -analyzeduration 0 -probesize 32 -f u8 -i udp://0.0.0.0:18181?listen=1 | |
| # Linux (transmitter) side: | |
| pactl load-module module-null-sink sink_name=remote | |
| ffmpeg -f pulse -i "remote.monitor" -ac 2 -acodec pcm_u8 -ar 48000 -f u8 "udp://RECEIVER:18181" | |
| pavucontrol # Change the default output to the Null sink or move single applications to this "output" device. |
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
| #!/bin/bash | |
| # Default acpi script that takes an entry for all actions | |
| case "$1" in | |
| button/power) | |
| case "$2" in | |
| PBTN|PWRF) | |
| logger 'PowerButton pressed' | |
| ;; | |
| *) |
| // to run on each frame | |
| function lerp(position, targetPosition) { | |
| // update position by 20% of the distance between position and target position | |
| position.x += (targetPosition.x - position.x)*0.2; | |
| position.y += (targetPosition.y - position.y)*0.2; | |
| } |