Skip to content

Instantly share code, notes, and snippets.

View lemanschik's full-sized avatar
🚀
I Invent Coding Solutions. Languages, Tools, You name It

Frank Lemanschik lemanschik

🚀
I Invent Coding Solutions. Languages, Tools, You name It
View GitHub Profile
@lemanschik
lemanschik / hi.md
Created November 26, 2026 17:10
Report to urus

github.com/popovicu — Full 42-Repository Audit & AwesomeOS Integration Matrix

Important

Why popovicu (Uroš Popović) Matters to AwesomeOS: Across 42 public repositories, Popović explores the exact same foundational thesis as AwesomeOS — stripping away legacy GNU/glibc/systemd/X11 bloat and targeting the bare-metal CPU / Linux syscall / VM socket boundary directly using Zig, C, JS, Java, Rust, Go, and single-source-of-truth build specs.


1. Complete Categorization of All 42 popovicu Repositories

| Category | Repositories (42 Total) | Core Technical Pattern |

@lemanschik
lemanschik / Hello.md
Created November 19, 2026 12:10
Msg to bro

Awesome-OS × Gemini / Gemma & V8 / Chromium — Verified Engineering Brief (Gist)

Prepared for: Patrick Loeber (Google DeepMind DevRel — Gemini API, AI Studio & Gemma)
From: Frank Lemanschik & Awesome-OS (e:\awesome-os)
Date: 2026-11-19
Why we're sharing this: Thank you for your attention and your work making Gemini, AI Studio, and Gemma genuinely great for builders. Everything below is measured on real hardware and reproducible in-tree — sharing the highest-signal DevEx, small-model memory, and V8/Chromium wins we just verified.


1. The Missing Agentic OS Primitive: Inference Manager (Execution ↔ Projection)

@lemanschik
lemanschik / 2026-ECMAScript-packaging.md
Created December 8, 2025 05:11
How to do ECMAScript Packaging in 2026

Publishing

if you got a Typescript Project publish it over github developers will prefer it over the npm package because packaging already packaged eg isomorphic packages is a hell.

Ship a build script for your dependencys to bundle them with your script this allows other developers to integrate your pre existing bundling config.

You expect developers to install via npm? Then publish ESM only js + d.ts output most best only entrypoints and shared bundles per entryPoint. Again do not depend on package.json exports or resolve not even main! also not index.js

@lemanschik
lemanschik / cop.md
Created December 4, 2025 07:28
Final strike

To golf "Option 2" (Pure Bash) for a code challenge, we can aggressively reduce whitespace, inline the logic, and use standard Bash arithmetic tricks.

Here is the significantly shorter version (198 bytes):

mapfile -t G
while c=0;for y in ${!G[@]};do
for((x=0;x<${#G};x++));do
[[ ${G[y]:x:1} == @ ]]&&{
n=0;for k in {0..8};do
@lemanschik
lemanschik / me.sh
Last active December 4, 2025 08:23
for cop
mapfile -t G < input.txt
for y in ${!G[@]};do
for((x=0;x<${#G};x++));do
[[ ${G[y]:x:1} < @ ]]||{
n=0;for i in {0..8};do
(( (Y=y+i/3-1) >= 0 & (X=x+i%3-1) >= 0 )) && \
[[ ${G[Y]:X:1} == @ ]] && ((n++));done
((n<5))&&((t++));}
done;done;echo $t
awk -F"" '{for(i=1;i<=NF;i++)g[NR,i]=$i}END{do{c=0;for(y=1;y<=NR;y++)for(x=1;x<=NF;x++)if(g[y,x]=="@"){n=0;for(j=-1;j<2;j++)for(k=-1;k<2;k++)n+=(g[y+j,x+k]=="@");if(n<5){g[y,x]=".";c++}}t+=c}while(c);print t}' input_file

Achieving synchronized audio and video playback is a complex but crucial task in multimedia programming. With a framework like PipeWire, which is designed to handle all types of media streams, synchronization is a core concept. The key to this is understanding the role of Presentation Timestamps (PTS) and a shared clock.

Here’s a breakdown of the concepts and a step-by-step guide on how to approach A/V sync when creating a C++ player with PipeWire.

The Core Concept: A Common Clock and Timestamps

Imagine you have two separate players: one for video frames and one for audio samples. To keep them in sync, you can't just play them as fast as possible. Instead, you need a shared "wall clock" that both players can look at.

  1. The Clock: PipeWire provides a global clock for the entire media graph. This clock is typically driven by an audio device (like your sound card) because audio playback is very sensitive to timing errors. If audio samples aren't delivered at a precise, steady rate, you get

Of course. Exposing a full Wayland compositor like Hyprland from inside a Docker container is an advanced and interesting challenge. It goes against Docker's typical use case of isolating server applications, as it requires deep access to the host's hardware (GPU, input devices) and a way to stream the graphical output.

This is a great educational exercise in understanding container isolation and how to selectively break it for specific purposes like testing a desktop environment. I will guide you through the concepts and a practical, safe example.

Disclaimer: This process involves giving the Docker container privileged access to your host's hardware devices (/dev/dri, /dev/input). This significantly reduces the security and isolation benefits of Docker. Only run trusted images with these flags.

The Core Challenges

  1. Graphics Hardware Access: Hyprland needs to communicate directly with the GPU to render frames. A standard Docker container has no access to /dev/dri (Direct Rendering Inf

Perfect — Fallout Tactics then. 👍

In Fallout Tactics, .MIS files are mission/map files, basically containers for:

  • Header info → version, map size, checksum.
  • Tiles → terrain grid, elevation, blocking.
  • Entities → units, items, containers, scenery, doors.
  • Triggers → scripts/events, mission objectives.
  • Strings → text (mission descriptions, dialogue references).
@lemanschik
lemanschik / hier.md
Created September 15, 2025 11:24
woocomerce

Of course. This is a very common and excellent goal for creating custom landing pages or unique store layouts.

The "easy way" depends on which WordPress editor you are using. I'll break it down from the most modern and recommended method to the classic one.

The key misunderstanding to clear up first is that WooCommerce does not have individual shortcodes for every single element like [product_price id="99"] out of the box.

Instead, you either use the main [product_page] shortcode (which has limitations) or, much more effectively, you use blocks or page builder widgets.