Port: 18181
Receiver address: 192.168.1.111
ffmpeg -f pulse -i remote.monitor -ac 2 -acodec pcm_u8 -ar 48000 -f u8 udp://192.168.1.111:18181
// nolib ANSI RNG | |
export const m = 2 ** 31; // just outside of i32 | |
export const a = 1103515245; | |
export const c = 12345; | |
// returns integer [0; 2 ** 31 -1] | |
export function rand(seed: number): () => number { | |
return () => (seed = (a * seed + c) % m | 0); | |
} |
@keyframes bg { | |
0% { | |
background-position: var(--x0) var(--y0); | |
} | |
33% { | |
background-position: var(--x1) var(--y1); | |
} | |
66% { | |
background-position: var(--x2) var(--y2); | |
} |
#!/usr/bin/env bash | |
for arg in "$@" | |
do | |
printf '__bashfmt__(){\n%s\n}\ntype __bashfmt__' "$(cat "$arg")" | | |
bash | sed -n 's/^ \(.*\)$/\1/p' | |
done |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 | |
// see https://gitlab.com/merzin/mono/-/tree/mono/abi | |
const std = @import("std"); | |
pub fn build(b: *std.build.Builder) void { | |
const mode = b.standardReleaseOptions(); | |
const lib = b.addSharedLibrary("index", "index.zig", b.version(0, 0, 0)); | |
lib.setBuildMode(mode); | |
lib.setTarget(.{ .cpu_arch = .wasm32, .os_tag = .freestanding }); | |
lib.setOutputDir("zig-out"); |
import { LockMap, LockMapEvent } from "./lock-map"; | |
const { Release, Change, Acquire } = LockMapEvent; | |
describe("LockMap<void>", () => { | |
let events: LockMapEvent[]; | |
let lockSet: LockMap<void>; | |
beforeEach(() => { | |
events = []; |
https://nixos.org/manual/nixos/stable/index.html#sec-installation 2022-02-01
sudo nix-channel --update
Section "InputClass" | |
Identifier "Coordinate Transformation Matrix" | |
MatchIsTouchscreen "on" | |
MatchDevicePath "/dev/input/event*" | |
MatchDriver "libinput" | |
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1" | |
EndSection | |
Section "Monitor" | |
Identifier "Monitor0" |