Skip to content

Instantly share code, notes, and snippets.

@miloszwasacz
miloszwasacz / mac-to-windows-mapping.json
Last active September 15, 2026 22:04
MacBook to Windows special key Karabiner config
{
"description": "MacBook: Fn/Ctrl/Option/Command -> Windows physical layout",
"manipulators": [
{
"from": {
"key_code": "fn",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_command" }],
"type": "basic"
@0xdevalias
0xdevalias / reverse-engineering-golang.md
Last active September 15, 2026 21:57
Some notes, tools, and techniques for reverse engineering Golang binaries
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active September 15, 2026 21:56
Conventional Commits Cheatsheet
@mekarpeles
mekarpeles / ol_api_header_example.py
Created May 22, 2024 15:59
python example of adding app identification headers to openlibrary.org API calls
import requests
url = "https://openlibrary.org/search.json?q=test"
headers = {
"User-Agent": "MyAppName/1.0 (myemail@example.com)"
}
response = requests.get(url, headers=headers)
@mdeweerd
mdeweerd / !README.md
Last active September 15, 2026 21:50
WSL2 Port Forwarding to Windows localhost - Persistent rules for LmStudio, MySQL, etc. Tags: wsl2, port-forwarding, powershell, windows, lmstudio, firewall, netsh, localhost, networking, docker-alternative

AllowLmStudio.ps1 - WSL2 Port Forwarding Setup

Overview

This PowerShell script configures firewall and port forwarding rules to allow WSL2 to access services running on the Windows host's 127.0.0.1 (localhost), such as LmStudio, MySQL, or other services.

Problem: By default, WSL2 cannot access services bound to 127.0.0.1 on the Windows host. This script creates the necessary port forwarding rules to enable this access.

Important: The port forwarding rules created by netsh interface portproxy are not persistent across Windows restarts. This script provides solutions to make them permanent.

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@bunkbail
bunkbail / Install.md
Created January 23, 2026 00:40
Complete tutorial for installing Chimera Linux with GNOME, Btrfs on NVMe, and Hibernation

Complete tutorial for installing Chimera Linux with GNOME, Btrfs on NVMe, and Hibernation (Swapfile).

Phase 1: Partitioning & Formatting

  1. Switch to Root:

    doas -s
  2. Partition the NVMe Drive:

CavalryOnLinux

A guide to running the Cavalry motion graphics software on Linux using Wine.

This guide has been tested exclusively on Wine 11.

Initial setup

Set up a new prefix

@sajinct
sajinct / kiosk_printing.md
Created October 28, 2025 03:25
Kiosk Mode Silent Printing Guide:- Simple steps to run Chrome, Firefox, and Edge in full-screen kiosk mode and print without dialogs. Uses shortcuts and built-in flags. Prints to default printer. Great for kiosks, receipts, or tickets.

Overview

Kiosk mode in web browsers is designed for locked-down environments like public terminals, where the browser runs in full-screen with limited navigation. Silent printing (bypassing the print dialog) is often tied to this mode and prints directly to the default printer. This is useful for applications like POS systems, ticketing kiosks, or automated receipt printing. Below, I outline the setup for Google Chrome, Mozilla Firefox, and Microsoft Edge (Chromium-based) as of October 2025. These methods use command-line flags or configuration tweaks. Note: Always test on your target OS (e.g., Windows), and ensure the default printer is set correctly, as these features print to it without prompts.

Browser Kiosk Mode Command/Flag Silent Printing Method Key Notes
Google Chrome --kiosk [URL] (e.g., chrome.exe --kiosk https://example.com) Add --kiosk-printing to the command line Works in full

Activate Windows with PowerShell

This method demonstrates how to activate Windows using PowerShell in administrator mode.

Steps to Activate Windows:

  1. Open PowerShell as an administrator:

    • Press Win + S, type "PowerShell," then right-click on Windows PowerShell and select Run as administrator.
  2. Run the following command: