Skip to content

Instantly share code, notes, and snippets.

@Theldus
Theldus / README.md
Last active November 4, 2026 13:49
The only proper way to debug 16-bit (x86) code on Qemu+GDB

The only proper way to debug 16-bit code on Qemu+GDB

(or nearly so...)

GDB is undeniably an extremely versatile debugger, with the ability to add breakpoints, watchpoints, dump memory, registers, and the source code (along with its corresponding assembly). These features make it the perfect Swiss Army knife for most programmers. In addition to that, the possibility of implementing a 'GDB Stub' and automatically supporting GDB in your application makes it an almost universal debugger for a variety of tasks.

Qemu, like other virtual machines (such as 86Box), also implements debugging via GDB Stub, which enormously facilitates the development of bootloaders, operating systems, and more. The support for 32-bit and 64-bit code is quite good, and I have never seen any complaints about it. However, for 16-bit/real mode...

Is debugging in 16-bit/real mode really that bad?

If you have ever tried to debug 16-bit code on Qemu, you know how painful it can be:

  1. GDB thinks your code is
@janeczku
janeczku / mac-os-trust-custom-ca.md
Last active November 4, 2026 13:47
How to trust custom, self-signed certificates by adding the CA cert to the macOS keychain

Method 1: Add the CA cert to the system certificate store

$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ca.crt

Method 2: Add the CA cert to the user's local keychain only

$ sudo security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain ca.crt
@AskinNet
AskinNet / kitty.md
Created May 10, 2024 07:29 — forked from pnsinha/kitty.md
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
@alsyundawy
alsyundawy / Microsoft-Office-For-MacOS.md
Last active November 4, 2026 13:37
Microsoft Office For MacOS

🖥️ Installer for Microsoft Office for macOS

Microsoft Office for macOS

image

Your ultimate resource for macOS Office installers, serializers, and troubleshooting.

Donate with PayPal Donate with Ko-fi Sponsor on GitHub Latest Version Maintenance Status [License](https://github.com/alsyun

@textarcana
textarcana / chow-ethnography.md
Last active November 4, 2026 13:36
state machines in test (Chow 1978)

Ethnography of T. S. Chow (1978) — Testing Software Design Modeled by Finite-State Machines

What the 1978 Paper Is (and Isn’t)

  • Core idea: Chow proposes an automata-theoretic testing method for software designs modeled as finite-state machines (FSMs). Tests are derived from the model itself, not from a prototype.
  • Publication: IEEE Transactions on Software Engineering, Vol. SE-4(3), May 1978, pp. 178–187.
  • Impact: Cited over 2,000 times; canonical in FSM-based testing and the origin of the W-method lineage.

Vocabulary & Concepts Introduced

@iMoD1998
iMoD1998 / Detour.cpp
Last active November 4, 2026 13:34
Xbox 360 Detours
#include "Detour.h"
BYTE Detour::TrampolineBuffer[ 200 * 20 ] = {};
SIZE_T Detour::TrampolineSize = 0;
@tdcosta100
tdcosta100 / WSL2GUIWSLg-XWayland-en.md
Last active November 4, 2026 13:32
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@omerfsen
omerfsen / nvidia-smi-cheat-sheet.md
Created November 6, 2025 11:58
nvidia-smi cheat sheet

NVIDIA-SMI Comprehensive Cheat Sheet

Overview

nvidia-smi (NVIDIA System Management Interface) is a command-line tool that provides monitoring, management, and diagnostic information for NVIDIA GPU devices.

It communicates directly with the NVIDIA driver and GPU, and can:

  • Monitor GPU performance, temperature, and utilization
  • Manage power, clock speeds, and ECC
  • Control persistence mode and compute modes
@geohot
geohot / syllabus.md
Last active November 4, 2026 13:31
Compilers for Machine Learning

Compilers for Machine Learning

A hands-on one semester course where students build their own compiler from scratch, starting from elementwise programs and ending with training SOTA LLMs on GPUs. This course aggressively builds on the previous week, and is an exercise in slop management. If you let any slop in early, it will compound and you will not finish the class.

Course description: This course covers the design and implementation of a modern machine learning compiler, and examines the interaction between IR design, hardware capabilities, and the structure of machine learning programs. Topics covered include term rewriting, code generation, movement operators, kernel fusion, memory hierarchies, GPU architecture, automatic differentiation, and flash attention. It is a project course, providing experience with performance-oriented programming, managing a codebase that grows all semester, and working in 1 or 2 person teams, culminating in a compiler capable of training modern LLMs.

Prerequisites: This c

@MotherSphere
MotherSphere / nikke-pc-launcher-compromise.md
Last active November 4, 2026 13:56
NIKKE PC launcher compromise (Nov 2026): Level Infinite CDN files modified, remote-control agent, indicators

NIKKE PC launcher compromise (November 2026)

한국어 번역 (Korean translation): nikke-pc-launcher-compromise_ko.md

Caution

From 2026-09-27, four official JavaScript files on Level Infinite's CDN contained attacker code. The NIKKE PC launcher loads these files. From Oct 23 at the latest, opening the launcher could install a remote-control agent: while the launcher was open, the attacker could run any command on your machine, read any file and take screenshots.

Update, 2026-11-04 12:11 GMT: Level Infinite confirmed a fix on Nov 4 in a statement on X (see Summary). Three of the files were replaced on Nov 3 between 17:04 and 17:23 GMT. The fourth, FeedList.feb647c9.js, was cleaned at the origin on Oct 28, but some CDN servers kept the modified copy until Nov 4 between 03:12 and 03:21 GMT. On Nov 4 at 11:20 GMT all four files were clean on the four CDN servers checked. The attacker's server no longer answered at 18:31 GMT on Nov 3. None of