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
This file contains 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 -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 |
This file contains 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
# 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 :
This file contains 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
#!/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' | |
;; | |
*) |
This file contains 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
// 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; | |
} |
This file contains 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
#pragma once | |
#define DYN_ARR_OF(type) struct { \ | |
type *data; \ | |
type *endptr; \ | |
uint32_t capacity; \ | |
} | |
#if !defined(__cplusplus) | |
#define decltype(x) void* |
This file contains 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
Write health | |
5600E1A8C7EF - 44 08 8C 16 988E0A00 - or [rsi+rdx+000A8E98],r9l | |
5600E1A8C7F7 - 8B 14 87 - mov edx,[rdi+rax*4] | |
5600E1A8C7FA - 89 94 86 B88E0A00 - mov [rsi+rax*4+000A8EB8],edx << | |
5600E1A8C801 - 48 83 C0 01 - add rax,01 | |
5600E1A8C805 - 48 3D 00010000 - cmp rax,00000100 | |
RAX=0000000000000000 | |
RBX=00005600E948BE70 |
This file contains 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
============================================================================ | |
Everything You Always Wanted To Know About GAMEBOY * | |
============================================================================ | |
* but were afraid to ask | |
Pan of -ATX- Document Updated by contributions from: | |
Marat Fayzullin, Pascal Felber, Paul Robson, Martin Korth |
NewerOlder