Skip to content

Instantly share code, notes, and snippets.

View DanielOberlechner's full-sized avatar
🌍
We are the people that rule the world ...

Daniel Oberlechner DanielOberlechner

🌍
We are the people that rule the world ...
View GitHub Profile
@DanielOberlechner
DanielOberlechner / README.md
Last active December 9, 2025 21:43 — forked from vuon9/README.md
Powertoys -> Keyboard Manager -> Magic Keyboard with Touch ID macOS keys mapping | magic utilities alternative

What is this?

Map media keys of your Magic Keyboard with Touch ID from Apple on Windows. You can see the mapped keys below. It's at the moment not perfect, but maybe I'll improve it in the near future.

Reason for this?

I own a Macbook where I use the Magic Keyboard with Touch ID because it's very comfortable to me. I also own a Gaming PC. And because I don't want to use multiple keyboards I use for both the Apple one. But soon I noticed that the media keys of the Apple keyboard don't work on Windows 11. So I installed the Windows Power Tools and mapped the keys myself.

image
@DanielOberlechner
DanielOberlechner / webpConverter.sh
Created June 18, 2022 13:54
webp convert all files in current folder with best compression
#!/bin/bash
# -m maximize compression power
# -mt multithreading
# -q quality
# -af optimize with auto filter
# -size enter the wanted compression file size in bytes 250000 are 250 kiloBytes
PARAMS=('-m 6 -q 50 -mt -af -progress')
@DanielOberlechner
DanielOberlechner / index.js
Created May 19, 2022 21:30
Small Javascript Number Counter for Website's
const speed = 10; //Number from 1-? to set the counting speed
const counter = document.querySelector('.js_numberGen'); //query the div or span which shall count
counter.innerHTML += "1";
const updateCount = () => {
const target = parseInt(counter.getAttribute('data-target')); //Set the value to which it should count
const count = parseInt(counter.innerText);
const increment = Math.floor(Math.random() * 10);
if (count < target) {